1 /* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18 /** 19 * Copyright (c) 2008 The Khronos Group Inc. 20 * 21 * Permission is hereby granted, free of charge, to any person obtaining 22 * a copy of this software and associated documentation files (the 23 * "Software"), to deal in the Software without restriction, including 24 * without limitation the rights to use, copy, modify, merge, publish, 25 * distribute, sublicense, and/or sell copies of the Software, and to 26 * permit persons to whom the Software is furnished to do so, subject 27 * to the following conditions: 28 * The above copyright notice and this permission notice shall be included 29 * in all copies or substantial portions of the Software. 30 * 31 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 32 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 33 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 34 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 35 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 36 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 37 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 38 * 39 */ 40 41 /** 42 * @file OMX_Video.h - OpenMax IL version 1.1.2 43 * The structures is needed by Video components to exchange parameters 44 * and configuration data with OMX components. 45 */ 46 #ifndef OMX_Video_h 47 #define OMX_Video_h 48 49 /** @defgroup video OpenMAX IL Video Domain 50 * @ingroup iv 51 * Structures for OpenMAX IL Video domain 52 * @{ 53 */ 54 55 #ifdef __cplusplus 56 extern "C" { 57 #endif /* __cplusplus */ 58 59 60 /** 61 * Each OMX header must include all required header files to allow the 62 * header to compile without errors. The includes below are required 63 * for this header file to compile successfully 64 */ 65 66 #include <OMX_IVCommon.h> 67 68 69 /** 70 * Enumeration used to define the possible video compression codings. 71 * NOTE: This essentially refers to file extensions. If the coding is 72 * being used to specify the ENCODE type, then additional work 73 * must be done to configure the exact flavor of the compression 74 * to be used. For decode cases where the user application can 75 * not differentiate between MPEG-4 and H.264 bit streams, it is 76 * up to the codec to handle this. 77 */ 78 typedef enum OMX_VIDEO_CODINGTYPE { 79 OMX_VIDEO_CodingUnused, /**< Value when coding is N/A */ 80 OMX_VIDEO_CodingAutoDetect, /**< Autodetection of coding type */ 81 OMX_VIDEO_CodingMPEG2, /**< AKA: H.262 */ 82 OMX_VIDEO_CodingH263, /**< H.263 */ 83 OMX_VIDEO_CodingMPEG4, /**< MPEG-4 */ 84 OMX_VIDEO_CodingWMV, /**< all versions of Windows Media Video */ 85 OMX_VIDEO_CodingRV, /**< all versions of Real Video */ 86 OMX_VIDEO_CodingAVC, /**< H.264/AVC */ 87 OMX_VIDEO_CodingMJPEG, /**< Motion JPEG */ 88 OMX_VIDEO_CodingKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 89 OMX_VIDEO_CodingVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 90 OMX_VIDEO_CodingMax = 0x7FFFFFFF 91 } OMX_VIDEO_CODINGTYPE; 92 93 94 /** 95 * Data structure used to define a video path. The number of Video paths for 96 * input and output will vary by type of the Video component. 97 * 98 * Input (aka Source) : zero Inputs, one Output, 99 * Splitter : one Input, 2 or more Outputs, 100 * Processing Element : one Input, one output, 101 * Mixer : 2 or more inputs, one output, 102 * Output (aka Sink) : one Input, zero outputs. 103 * 104 * The PortDefinition structure is used to define all of the parameters 105 * necessary for the compliant component to setup an input or an output video 106 * path. If additional vendor specific data is required, it should be 107 * transmitted to the component using the CustomCommand function. Compliant 108 * components will prepopulate this structure with optimal values during the 109 * GetDefaultInitParams command. 110 * 111 * STRUCT MEMBERS: 112 * cMIMEType : MIME type of data for the port 113 * pNativeRender : Platform specific reference for a display if a 114 * sync, otherwise this field is 0 115 * nFrameWidth : Width of frame to be used on channel if 116 * uncompressed format is used. Use 0 for unknown, 117 * don't care or variable 118 * nFrameHeight : Height of frame to be used on channel if 119 * uncompressed format is used. Use 0 for unknown, 120 * don't care or variable 121 * nStride : Number of bytes per span of an image 122 * (i.e. indicates the number of bytes to get 123 * from span N to span N+1, where negative stride 124 * indicates the image is bottom up 125 * nSliceHeight : Height used when encoding in slices 126 * nBitrate : Bit rate of frame to be used on channel if 127 * compressed format is used. Use 0 for unknown, 128 * don't care or variable 129 * xFramerate : Frame rate to be used on channel if uncompressed 130 * format is used. Use 0 for unknown, don't care or 131 * variable. Units are Q16 frames per second. 132 * bFlagErrorConcealment : Turns on error concealment if it is supported by 133 * the OMX component 134 * eCompressionFormat : Compression format used in this instance of the 135 * component. When OMX_VIDEO_CodingUnused is 136 * specified, eColorFormat is used 137 * eColorFormat : Decompressed format used by this component 138 * pNativeWindow : Platform specific reference for a window object if a 139 * display sink , otherwise this field is 0x0. 140 */ 141 typedef struct OMX_VIDEO_PORTDEFINITIONTYPE { 142 OMX_STRING cMIMEType; 143 OMX_NATIVE_DEVICETYPE pNativeRender; 144 OMX_U32 nFrameWidth; 145 OMX_U32 nFrameHeight; 146 OMX_S32 nStride; 147 OMX_U32 nSliceHeight; 148 OMX_U32 nBitrate; 149 OMX_U32 xFramerate; 150 OMX_BOOL bFlagErrorConcealment; 151 OMX_VIDEO_CODINGTYPE eCompressionFormat; 152 OMX_COLOR_FORMATTYPE eColorFormat; 153 OMX_NATIVE_WINDOWTYPE pNativeWindow; 154 } OMX_VIDEO_PORTDEFINITIONTYPE; 155 156 /** 157 * Port format parameter. This structure is used to enumerate the various 158 * data input/output format supported by the port. 159 * 160 * STRUCT MEMBERS: 161 * nSize : Size of the structure in bytes 162 * nVersion : OMX specification version information 163 * nPortIndex : Indicates which port to set 164 * nIndex : Indicates the enumeration index for the format from 165 * 0x0 to N-1 166 * eCompressionFormat : Compression format used in this instance of the 167 * component. When OMX_VIDEO_CodingUnused is specified, 168 * eColorFormat is used 169 * eColorFormat : Decompressed format used by this component 170 * xFrameRate : Indicates the video frame rate in Q16 format 171 */ 172 typedef struct OMX_VIDEO_PARAM_PORTFORMATTYPE { 173 OMX_U32 nSize; 174 OMX_VERSIONTYPE nVersion; 175 OMX_U32 nPortIndex; 176 OMX_U32 nIndex; 177 OMX_VIDEO_CODINGTYPE eCompressionFormat; 178 OMX_COLOR_FORMATTYPE eColorFormat; 179 OMX_U32 xFramerate; 180 } OMX_VIDEO_PARAM_PORTFORMATTYPE; 181 182 183 /** 184 * This is a structure for configuring video compression quantization 185 * parameter values. Codecs may support different QP values for different 186 * frame types. 187 * 188 * STRUCT MEMBERS: 189 * nSize : Size of the structure in bytes 190 * nVersion : OMX specification version info 191 * nPortIndex : Port that this structure applies to 192 * nQpI : QP value to use for index frames 193 * nQpP : QP value to use for P frames 194 * nQpB : QP values to use for bidirectional frames 195 */ 196 typedef struct OMX_VIDEO_PARAM_QUANTIZATIONTYPE { 197 OMX_U32 nSize; 198 OMX_VERSIONTYPE nVersion; 199 OMX_U32 nPortIndex; 200 OMX_U32 nQpI; 201 OMX_U32 nQpP; 202 OMX_U32 nQpB; 203 } OMX_VIDEO_PARAM_QUANTIZATIONTYPE; 204 205 206 /** 207 * Structure for configuration of video fast update parameters. 208 * 209 * STRUCT MEMBERS: 210 * nSize : Size of the structure in bytes 211 * nVersion : OMX specification version info 212 * nPortIndex : Port that this structure applies to 213 * bEnableVFU : Enable/Disable video fast update 214 * nFirstGOB : Specifies the number of the first macroblock row 215 * nFirstMB : specifies the first MB relative to the specified first GOB 216 * nNumMBs : Specifies the number of MBs to be refreshed from nFirstGOB 217 * and nFirstMB 218 */ 219 typedef struct OMX_VIDEO_PARAM_VIDEOFASTUPDATETYPE { 220 OMX_U32 nSize; 221 OMX_VERSIONTYPE nVersion; 222 OMX_U32 nPortIndex; 223 OMX_BOOL bEnableVFU; 224 OMX_U32 nFirstGOB; 225 OMX_U32 nFirstMB; 226 OMX_U32 nNumMBs; 227 } OMX_VIDEO_PARAM_VIDEOFASTUPDATETYPE; 228 229 230 /** 231 * Enumeration of possible bitrate control types 232 */ 233 typedef enum OMX_VIDEO_CONTROLRATETYPE { 234 OMX_Video_ControlRateDisable, 235 OMX_Video_ControlRateVariable, 236 OMX_Video_ControlRateConstant, 237 OMX_Video_ControlRateVariableSkipFrames, 238 OMX_Video_ControlRateConstantSkipFrames, 239 OMX_Video_ControlRateKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 240 OMX_Video_ControlRateVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 241 OMX_Video_ControlRateMax = 0x7FFFFFFF 242 } OMX_VIDEO_CONTROLRATETYPE; 243 244 245 /** 246 * Structure for configuring bitrate mode of a codec. 247 * 248 * STRUCT MEMBERS: 249 * nSize : Size of the struct in bytes 250 * nVersion : OMX spec version info 251 * nPortIndex : Port that this struct applies to 252 * eControlRate : Control rate type enum 253 * nTargetBitrate : Target bitrate to encode with 254 */ 255 typedef struct OMX_VIDEO_PARAM_BITRATETYPE { 256 OMX_U32 nSize; 257 OMX_VERSIONTYPE nVersion; 258 OMX_U32 nPortIndex; 259 OMX_VIDEO_CONTROLRATETYPE eControlRate; 260 OMX_U32 nTargetBitrate; 261 } OMX_VIDEO_PARAM_BITRATETYPE; 262 263 264 /** 265 * Enumeration of possible motion vector (MV) types 266 */ 267 typedef enum OMX_VIDEO_MOTIONVECTORTYPE { 268 OMX_Video_MotionVectorPixel, 269 OMX_Video_MotionVectorHalfPel, 270 OMX_Video_MotionVectorQuarterPel, 271 OMX_Video_MotionVectorEighthPel, 272 OMX_Video_MotionVectorKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 273 OMX_Video_MotionVectorVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 274 OMX_Video_MotionVectorMax = 0x7FFFFFFF 275 } OMX_VIDEO_MOTIONVECTORTYPE; 276 277 278 /** 279 * Structure for configuring the number of motion vectors used as well 280 * as their accuracy. 281 * 282 * STRUCT MEMBERS: 283 * nSize : Size of the struct in bytes 284 * nVersion : OMX spec version info 285 * nPortIndex : port that this structure applies to 286 * eAccuracy : Enumerated MV accuracy 287 * bUnrestrictedMVs : Allow unrestricted MVs 288 * bFourMV : Allow use of 4 MVs 289 * sXSearchRange : Search range in horizontal direction for MVs 290 * sYSearchRange : Search range in vertical direction for MVs 291 */ 292 typedef struct OMX_VIDEO_PARAM_MOTIONVECTORTYPE { 293 OMX_U32 nSize; 294 OMX_VERSIONTYPE nVersion; 295 OMX_U32 nPortIndex; 296 OMX_VIDEO_MOTIONVECTORTYPE eAccuracy; 297 OMX_BOOL bUnrestrictedMVs; 298 OMX_BOOL bFourMV; 299 OMX_S32 sXSearchRange; 300 OMX_S32 sYSearchRange; 301 } OMX_VIDEO_PARAM_MOTIONVECTORTYPE; 302 303 304 /** 305 * Enumeration of possible methods to use for Intra Refresh 306 */ 307 typedef enum OMX_VIDEO_INTRAREFRESHTYPE { 308 OMX_VIDEO_IntraRefreshCyclic, 309 OMX_VIDEO_IntraRefreshAdaptive, 310 OMX_VIDEO_IntraRefreshBoth, 311 OMX_VIDEO_IntraRefreshKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 312 OMX_VIDEO_IntraRefreshVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 313 OMX_VIDEO_IntraRefreshMax = 0x7FFFFFFF 314 } OMX_VIDEO_INTRAREFRESHTYPE; 315 316 317 /** 318 * Structure for configuring intra refresh mode 319 * 320 * STRUCT MEMBERS: 321 * nSize : Size of the structure in bytes 322 * nVersion : OMX specification version information 323 * nPortIndex : Port that this structure applies to 324 * eRefreshMode : Cyclic, Adaptive, or Both 325 * nAirMBs : Number of intra macroblocks to refresh in a frame when 326 * AIR is enabled 327 * nAirRef : Number of times a motion marked macroblock has to be 328 * intra coded 329 * nCirMBs : Number of consecutive macroblocks to be coded as "intra" 330 * when CIR is enabled 331 */ 332 typedef struct OMX_VIDEO_PARAM_INTRAREFRESHTYPE { 333 OMX_U32 nSize; 334 OMX_VERSIONTYPE nVersion; 335 OMX_U32 nPortIndex; 336 OMX_VIDEO_INTRAREFRESHTYPE eRefreshMode; 337 OMX_U32 nAirMBs; 338 OMX_U32 nAirRef; 339 OMX_U32 nCirMBs; 340 } OMX_VIDEO_PARAM_INTRAREFRESHTYPE; 341 342 343 /** 344 * Structure for enabling various error correction methods for video 345 * compression. 346 * 347 * STRUCT MEMBERS: 348 * nSize : Size of the structure in bytes 349 * nVersion : OMX specification version information 350 * nPortIndex : Port that this structure applies to 351 * bEnableHEC : Enable/disable header extension codes (HEC) 352 * bEnableResync : Enable/disable resynchronization markers 353 * nResynchMarkerSpacing : Resynch markers interval (in bits) to be 354 * applied in the stream 355 * bEnableDataPartitioning : Enable/disable data partitioning 356 * bEnableRVLC : Enable/disable reversible variable length 357 * coding 358 */ 359 typedef struct OMX_VIDEO_PARAM_ERRORCORRECTIONTYPE { 360 OMX_U32 nSize; 361 OMX_VERSIONTYPE nVersion; 362 OMX_U32 nPortIndex; 363 OMX_BOOL bEnableHEC; 364 OMX_BOOL bEnableResync; 365 OMX_U32 nResynchMarkerSpacing; 366 OMX_BOOL bEnableDataPartitioning; 367 OMX_BOOL bEnableRVLC; 368 } OMX_VIDEO_PARAM_ERRORCORRECTIONTYPE; 369 370 371 /** 372 * Configuration of variable block-size motion compensation (VBSMC) 373 * 374 * STRUCT MEMBERS: 375 * nSize : Size of the structure in bytes 376 * nVersion : OMX specification version information 377 * nPortIndex : Port that this structure applies to 378 * b16x16 : Enable inter block search 16x16 379 * b16x8 : Enable inter block search 16x8 380 * b8x16 : Enable inter block search 8x16 381 * b8x8 : Enable inter block search 8x8 382 * b8x4 : Enable inter block search 8x4 383 * b4x8 : Enable inter block search 4x8 384 * b4x4 : Enable inter block search 4x4 385 */ 386 typedef struct OMX_VIDEO_PARAM_VBSMCTYPE { 387 OMX_U32 nSize; 388 OMX_VERSIONTYPE nVersion; 389 OMX_U32 nPortIndex; 390 OMX_BOOL b16x16; 391 OMX_BOOL b16x8; 392 OMX_BOOL b8x16; 393 OMX_BOOL b8x8; 394 OMX_BOOL b8x4; 395 OMX_BOOL b4x8; 396 OMX_BOOL b4x4; 397 } OMX_VIDEO_PARAM_VBSMCTYPE; 398 399 400 /** 401 * H.263 profile types, each profile indicates support for various 402 * performance bounds and different annexes. 403 * 404 * ENUMS: 405 * Baseline : Baseline Profile: H.263 (V1), no optional modes 406 * H320 Coding : H.320 Coding Efficiency Backward Compatibility 407 * Profile: H.263+ (V2), includes annexes I, J, L.4 408 * and T 409 * BackwardCompatible : Backward Compatibility Profile: H.263 (V1), 410 * includes annex F 411 * ISWV2 : Interactive Streaming Wireless Profile: H.263+ 412 * (V2), includes annexes I, J, K and T 413 * ISWV3 : Interactive Streaming Wireless Profile: H.263++ 414 * (V3), includes profile 3 and annexes V and W.6.3.8 415 * HighCompression : Conversational High Compression Profile: H.263++ 416 * (V3), includes profiles 1 & 2 and annexes D and U 417 * Internet : Conversational Internet Profile: H.263++ (V3), 418 * includes profile 5 and annex K 419 * Interlace : Conversational Interlace Profile: H.263++ (V3), 420 * includes profile 5 and annex W.6.3.11 421 * HighLatency : High Latency Profile: H.263++ (V3), includes 422 * profile 6 and annexes O.1 and P.5 423 */ 424 typedef enum OMX_VIDEO_H263PROFILETYPE { 425 OMX_VIDEO_H263ProfileBaseline = 0x01, 426 OMX_VIDEO_H263ProfileH320Coding = 0x02, 427 OMX_VIDEO_H263ProfileBackwardCompatible = 0x04, 428 OMX_VIDEO_H263ProfileISWV2 = 0x08, 429 OMX_VIDEO_H263ProfileISWV3 = 0x10, 430 OMX_VIDEO_H263ProfileHighCompression = 0x20, 431 OMX_VIDEO_H263ProfileInternet = 0x40, 432 OMX_VIDEO_H263ProfileInterlace = 0x80, 433 OMX_VIDEO_H263ProfileHighLatency = 0x100, 434 OMX_VIDEO_H263ProfileKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 435 OMX_VIDEO_H263ProfileVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 436 OMX_VIDEO_H263ProfileMax = 0x7FFFFFFF 437 } OMX_VIDEO_H263PROFILETYPE; 438 439 440 /** 441 * H.263 level types, each level indicates support for various frame sizes, 442 * bit rates, decoder frame rates. 443 */ 444 typedef enum OMX_VIDEO_H263LEVELTYPE { 445 OMX_VIDEO_H263Level10 = 0x01, 446 OMX_VIDEO_H263Level20 = 0x02, 447 OMX_VIDEO_H263Level30 = 0x04, 448 OMX_VIDEO_H263Level40 = 0x08, 449 OMX_VIDEO_H263Level45 = 0x10, 450 OMX_VIDEO_H263Level50 = 0x20, 451 OMX_VIDEO_H263Level60 = 0x40, 452 OMX_VIDEO_H263Level70 = 0x80, 453 OMX_VIDEO_H263LevelKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 454 OMX_VIDEO_H263LevelVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 455 OMX_VIDEO_H263LevelMax = 0x7FFFFFFF 456 } OMX_VIDEO_H263LEVELTYPE; 457 458 459 /** 460 * Specifies the picture type. These values should be OR'd to signal all 461 * pictures types which are allowed. 462 * 463 * ENUMS: 464 * Generic Picture Types: I, P and B 465 * H.263 Specific Picture Types: SI and SP 466 * H.264 Specific Picture Types: EI and EP 467 * MPEG-4 Specific Picture Types: S 468 */ 469 typedef enum OMX_VIDEO_PICTURETYPE { 470 OMX_VIDEO_PictureTypeI = 0x01, 471 OMX_VIDEO_PictureTypeP = 0x02, 472 OMX_VIDEO_PictureTypeB = 0x04, 473 OMX_VIDEO_PictureTypeSI = 0x08, 474 OMX_VIDEO_PictureTypeSP = 0x10, 475 OMX_VIDEO_PictureTypeEI = 0x11, 476 OMX_VIDEO_PictureTypeEP = 0x12, 477 OMX_VIDEO_PictureTypeS = 0x14, 478 OMX_VIDEO_PictureTypeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 479 OMX_VIDEO_PictureTypeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 480 OMX_VIDEO_PictureTypeMax = 0x7FFFFFFF 481 } OMX_VIDEO_PICTURETYPE; 482 483 484 /** 485 * H.263 Params 486 * 487 * STRUCT MEMBERS: 488 * nSize : Size of the structure in bytes 489 * nVersion : OMX specification version information 490 * nPortIndex : Port that this structure applies to 491 * nPFrames : Number of P frames between each I frame 492 * nBFrames : Number of B frames between each I frame 493 * eProfile : H.263 profile(s) to use 494 * eLevel : H.263 level(s) to use 495 * bPLUSPTYPEAllowed : Indicating that it is allowed to use PLUSPTYPE 496 * (specified in the 1998 version of H.263) to 497 * indicate custom picture sizes or clock 498 * frequencies 499 * nAllowedPictureTypes : Specifies the picture types allowed in the 500 * bitstream 501 * bForceRoundingTypeToZero : value of the RTYPE bit (bit 6 of MPPTYPE) is 502 * not constrained. It is recommended to change 503 * the value of the RTYPE bit for each reference 504 * picture in error-free communication 505 * nPictureHeaderRepetition : Specifies the frequency of picture header 506 * repetition 507 * nGOBHeaderInterval : Specifies the interval of non-empty GOB 508 * headers in units of GOBs 509 */ 510 typedef struct OMX_VIDEO_PARAM_H263TYPE { 511 OMX_U32 nSize; 512 OMX_VERSIONTYPE nVersion; 513 OMX_U32 nPortIndex; 514 OMX_U32 nPFrames; 515 OMX_U32 nBFrames; 516 OMX_VIDEO_H263PROFILETYPE eProfile; 517 OMX_VIDEO_H263LEVELTYPE eLevel; 518 OMX_BOOL bPLUSPTYPEAllowed; 519 OMX_U32 nAllowedPictureTypes; 520 OMX_BOOL bForceRoundingTypeToZero; 521 OMX_U32 nPictureHeaderRepetition; 522 OMX_U32 nGOBHeaderInterval; 523 } OMX_VIDEO_PARAM_H263TYPE; 524 525 526 /** 527 * MPEG-2 profile types, each profile indicates support for various 528 * performance bounds and different annexes. 529 */ 530 typedef enum OMX_VIDEO_MPEG2PROFILETYPE { 531 OMX_VIDEO_MPEG2ProfileSimple = 0, /**< Simple Profile */ 532 OMX_VIDEO_MPEG2ProfileMain, /**< Main Profile */ 533 OMX_VIDEO_MPEG2Profile422, /**< 4:2:2 Profile */ 534 OMX_VIDEO_MPEG2ProfileSNR, /**< SNR Profile */ 535 OMX_VIDEO_MPEG2ProfileSpatial, /**< Spatial Profile */ 536 OMX_VIDEO_MPEG2ProfileHigh, /**< High Profile */ 537 OMX_VIDEO_MPEG2ProfileKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 538 OMX_VIDEO_MPEG2ProfileVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 539 OMX_VIDEO_MPEG2ProfileMax = 0x7FFFFFFF 540 } OMX_VIDEO_MPEG2PROFILETYPE; 541 542 543 /** 544 * MPEG-2 level types, each level indicates support for various frame 545 * sizes, bit rates, decoder frame rates. No need 546 */ 547 typedef enum OMX_VIDEO_MPEG2LEVELTYPE { 548 OMX_VIDEO_MPEG2LevelLL = 0, /**< Low Level */ 549 OMX_VIDEO_MPEG2LevelML, /**< Main Level */ 550 OMX_VIDEO_MPEG2LevelH14, /**< High 1440 */ 551 OMX_VIDEO_MPEG2LevelHL, /**< High Level */ 552 OMX_VIDEO_MPEG2LevelKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 553 OMX_VIDEO_MPEG2LevelVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 554 OMX_VIDEO_MPEG2LevelMax = 0x7FFFFFFF 555 } OMX_VIDEO_MPEG2LEVELTYPE; 556 557 558 /** 559 * MPEG-2 params 560 * 561 * STRUCT MEMBERS: 562 * nSize : Size of the structure in bytes 563 * nVersion : OMX specification version information 564 * nPortIndex : Port that this structure applies to 565 * nPFrames : Number of P frames between each I frame 566 * nBFrames : Number of B frames between each I frame 567 * eProfile : MPEG-2 profile(s) to use 568 * eLevel : MPEG-2 levels(s) to use 569 */ 570 typedef struct OMX_VIDEO_PARAM_MPEG2TYPE { 571 OMX_U32 nSize; 572 OMX_VERSIONTYPE nVersion; 573 OMX_U32 nPortIndex; 574 OMX_U32 nPFrames; 575 OMX_U32 nBFrames; 576 OMX_VIDEO_MPEG2PROFILETYPE eProfile; 577 OMX_VIDEO_MPEG2LEVELTYPE eLevel; 578 } OMX_VIDEO_PARAM_MPEG2TYPE; 579 580 581 /** 582 * MPEG-4 profile types, each profile indicates support for various 583 * performance bounds and different annexes. 584 * 585 * ENUMS: 586 * - Simple Profile, Levels 1-3 587 * - Simple Scalable Profile, Levels 1-2 588 * - Core Profile, Levels 1-2 589 * - Main Profile, Levels 2-4 590 * - N-bit Profile, Level 2 591 * - Scalable Texture Profile, Level 1 592 * - Simple Face Animation Profile, Levels 1-2 593 * - Simple Face and Body Animation (FBA) Profile, Levels 1-2 594 * - Basic Animated Texture Profile, Levels 1-2 595 * - Hybrid Profile, Levels 1-2 596 * - Advanced Real Time Simple Profiles, Levels 1-4 597 * - Core Scalable Profile, Levels 1-3 598 * - Advanced Coding Efficiency Profile, Levels 1-4 599 * - Advanced Core Profile, Levels 1-2 600 * - Advanced Scalable Texture, Levels 2-3 601 */ 602 typedef enum OMX_VIDEO_MPEG4PROFILETYPE { 603 OMX_VIDEO_MPEG4ProfileSimple = 0x01, 604 OMX_VIDEO_MPEG4ProfileSimpleScalable = 0x02, 605 OMX_VIDEO_MPEG4ProfileCore = 0x04, 606 OMX_VIDEO_MPEG4ProfileMain = 0x08, 607 OMX_VIDEO_MPEG4ProfileNbit = 0x10, 608 OMX_VIDEO_MPEG4ProfileScalableTexture = 0x20, 609 OMX_VIDEO_MPEG4ProfileSimpleFace = 0x40, 610 OMX_VIDEO_MPEG4ProfileSimpleFBA = 0x80, 611 OMX_VIDEO_MPEG4ProfileBasicAnimated = 0x100, 612 OMX_VIDEO_MPEG4ProfileHybrid = 0x200, 613 OMX_VIDEO_MPEG4ProfileAdvancedRealTime = 0x400, 614 OMX_VIDEO_MPEG4ProfileCoreScalable = 0x800, 615 OMX_VIDEO_MPEG4ProfileAdvancedCoding = 0x1000, 616 OMX_VIDEO_MPEG4ProfileAdvancedCore = 0x2000, 617 OMX_VIDEO_MPEG4ProfileAdvancedScalable = 0x4000, 618 OMX_VIDEO_MPEG4ProfileAdvancedSimple = 0x8000, 619 OMX_VIDEO_MPEG4ProfileKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 620 OMX_VIDEO_MPEG4ProfileVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 621 OMX_VIDEO_MPEG4ProfileMax = 0x7FFFFFFF 622 } OMX_VIDEO_MPEG4PROFILETYPE; 623 624 625 /** 626 * MPEG-4 level types, each level indicates support for various frame 627 * sizes, bit rates, decoder frame rates. No need 628 */ 629 typedef enum OMX_VIDEO_MPEG4LEVELTYPE { 630 OMX_VIDEO_MPEG4Level0 = 0x01, /**< Level 0 */ 631 OMX_VIDEO_MPEG4Level0b = 0x02, /**< Level 0b */ 632 OMX_VIDEO_MPEG4Level1 = 0x04, /**< Level 1 */ 633 OMX_VIDEO_MPEG4Level2 = 0x08, /**< Level 2 */ 634 OMX_VIDEO_MPEG4Level3 = 0x10, /**< Level 3 */ 635 OMX_VIDEO_MPEG4Level4 = 0x20, /**< Level 4 */ 636 OMX_VIDEO_MPEG4Level4a = 0x40, /**< Level 4a */ 637 OMX_VIDEO_MPEG4Level5 = 0x80, /**< Level 5 */ 638 OMX_VIDEO_MPEG4LevelKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 639 OMX_VIDEO_MPEG4LevelVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 640 OMX_VIDEO_MPEG4LevelMax = 0x7FFFFFFF 641 } OMX_VIDEO_MPEG4LEVELTYPE; 642 643 644 /** 645 * MPEG-4 configuration. This structure handles configuration options 646 * which are specific to MPEG4 algorithms 647 * 648 * STRUCT MEMBERS: 649 * nSize : Size of the structure in bytes 650 * nVersion : OMX specification version information 651 * nPortIndex : Port that this structure applies to 652 * nSliceHeaderSpacing : Number of macroblocks between slice header (H263+ 653 * Annex K). Put zero if not used 654 * bSVH : Enable Short Video Header mode 655 * bGov : Flag to enable GOV 656 * nPFrames : Number of P frames between each I frame (also called 657 * GOV period) 658 * nBFrames : Number of B frames between each I frame 659 * nIDCVLCThreshold : Value of intra DC VLC threshold 660 * bACPred : Flag to use ac prediction 661 * nMaxPacketSize : Maximum size of packet in bytes. 662 * nTimeIncRes : Used to pass VOP time increment resolution for MPEG4. 663 * Interpreted as described in MPEG4 standard. 664 * eProfile : MPEG-4 profile(s) to use. 665 * eLevel : MPEG-4 level(s) to use. 666 * nAllowedPictureTypes : Specifies the picture types allowed in the bitstream 667 * nHeaderExtension : Specifies the number of consecutive video packet 668 * headers within a VOP 669 * bReversibleVLC : Specifies whether reversible variable length coding 670 * is in use 671 */ 672 typedef struct OMX_VIDEO_PARAM_MPEG4TYPE { 673 OMX_U32 nSize; 674 OMX_VERSIONTYPE nVersion; 675 OMX_U32 nPortIndex; 676 OMX_U32 nSliceHeaderSpacing; 677 OMX_BOOL bSVH; 678 OMX_BOOL bGov; 679 OMX_U32 nPFrames; 680 OMX_U32 nBFrames; 681 OMX_U32 nIDCVLCThreshold; 682 OMX_BOOL bACPred; 683 OMX_U32 nMaxPacketSize; 684 OMX_U32 nTimeIncRes; 685 OMX_VIDEO_MPEG4PROFILETYPE eProfile; 686 OMX_VIDEO_MPEG4LEVELTYPE eLevel; 687 OMX_U32 nAllowedPictureTypes; 688 OMX_U32 nHeaderExtension; 689 OMX_BOOL bReversibleVLC; 690 } OMX_VIDEO_PARAM_MPEG4TYPE; 691 692 693 /** 694 * WMV Versions 695 */ 696 typedef enum OMX_VIDEO_WMVFORMATTYPE { 697 OMX_VIDEO_WMVFormatUnused = 0x01, /**< Format unused or unknown */ 698 OMX_VIDEO_WMVFormat7 = 0x02, /**< Windows Media Video format 7 */ 699 OMX_VIDEO_WMVFormat8 = 0x04, /**< Windows Media Video format 8 */ 700 OMX_VIDEO_WMVFormat9 = 0x08, /**< Windows Media Video format 9 */ 701 OMX_VIDEO_WMFFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 702 OMX_VIDEO_WMFFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 703 OMX_VIDEO_WMVFormatMax = 0x7FFFFFFF 704 } OMX_VIDEO_WMVFORMATTYPE; 705 706 707 /** 708 * WMV Params 709 * 710 * STRUCT MEMBERS: 711 * nSize : Size of the structure in bytes 712 * nVersion : OMX specification version information 713 * nPortIndex : Port that this structure applies to 714 * eFormat : Version of WMV stream / data 715 */ 716 typedef struct OMX_VIDEO_PARAM_WMVTYPE { 717 OMX_U32 nSize; 718 OMX_VERSIONTYPE nVersion; 719 OMX_U32 nPortIndex; 720 OMX_VIDEO_WMVFORMATTYPE eFormat; 721 } OMX_VIDEO_PARAM_WMVTYPE; 722 723 724 /** 725 * Real Video Version 726 */ 727 typedef enum OMX_VIDEO_RVFORMATTYPE { 728 OMX_VIDEO_RVFormatUnused = 0, /**< Format unused or unknown */ 729 OMX_VIDEO_RVFormat8, /**< Real Video format 8 */ 730 OMX_VIDEO_RVFormat9, /**< Real Video format 9 */ 731 OMX_VIDEO_RVFormatG2, /**< Real Video Format G2 */ 732 OMX_VIDEO_RVFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 733 OMX_VIDEO_RVFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 734 OMX_VIDEO_RVFormatMax = 0x7FFFFFFF 735 } OMX_VIDEO_RVFORMATTYPE; 736 737 738 /** 739 * Real Video Params 740 * 741 * STUCT MEMBERS: 742 * nSize : Size of the structure in bytes 743 * nVersion : OMX specification version information 744 * nPortIndex : Port that this structure applies to 745 * eFormat : Version of RV stream / data 746 * nBitsPerPixel : Bits per pixel coded in the frame 747 * nPaddedWidth : Padded width in pixel of a video frame 748 * nPaddedHeight : Padded Height in pixels of a video frame 749 * nFrameRate : Rate of video in frames per second 750 * nBitstreamFlags : Flags which internal information about the bitstream 751 * nBitstreamVersion : Bitstream version 752 * nMaxEncodeFrameSize: Max encoded frame size 753 * bEnablePostFilter : Turn on/off post filter 754 * bEnableTemporalInterpolation : Turn on/off temporal interpolation 755 * bEnableLatencyMode : When enabled, the decoder does not display a decoded 756 * frame until it has detected that no enhancement layer 757 * frames or dependent B frames will be coming. This 758 * detection usually occurs when a subsequent non-B 759 * frame is encountered 760 */ 761 typedef struct OMX_VIDEO_PARAM_RVTYPE { 762 OMX_U32 nSize; 763 OMX_VERSIONTYPE nVersion; 764 OMX_U32 nPortIndex; 765 OMX_VIDEO_RVFORMATTYPE eFormat; 766 OMX_U16 nBitsPerPixel; 767 OMX_U16 nPaddedWidth; 768 OMX_U16 nPaddedHeight; 769 OMX_U32 nFrameRate; 770 OMX_U32 nBitstreamFlags; 771 OMX_U32 nBitstreamVersion; 772 OMX_U32 nMaxEncodeFrameSize; 773 OMX_BOOL bEnablePostFilter; 774 OMX_BOOL bEnableTemporalInterpolation; 775 OMX_BOOL bEnableLatencyMode; 776 } OMX_VIDEO_PARAM_RVTYPE; 777 778 779 /** 780 * AVC profile types, each profile indicates support for various 781 * performance bounds and different annexes. 782 */ 783 typedef enum OMX_VIDEO_AVCPROFILETYPE { 784 OMX_VIDEO_AVCProfileBaseline = 0x01, /**< Baseline profile */ 785 OMX_VIDEO_AVCProfileMain = 0x02, /**< Main profile */ 786 OMX_VIDEO_AVCProfileExtended = 0x04, /**< Extended profile */ 787 OMX_VIDEO_AVCProfileHigh = 0x08, /**< High profile */ 788 OMX_VIDEO_AVCProfileHigh10 = 0x10, /**< High 10 profile */ 789 OMX_VIDEO_AVCProfileHigh422 = 0x20, /**< High 4:2:2 profile */ 790 OMX_VIDEO_AVCProfileHigh444 = 0x40, /**< High 4:4:4 profile */ 791 OMX_VIDEO_AVCProfileKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 792 OMX_VIDEO_AVCProfileVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 793 OMX_VIDEO_AVCProfileMax = 0x7FFFFFFF 794 } OMX_VIDEO_AVCPROFILETYPE; 795 796 797 /** 798 * AVC level types, each level indicates support for various frame sizes, 799 * bit rates, decoder frame rates. No need 800 */ 801 typedef enum OMX_VIDEO_AVCLEVELTYPE { 802 OMX_VIDEO_AVCLevel1 = 0x01, /**< Level 1 */ 803 OMX_VIDEO_AVCLevel1b = 0x02, /**< Level 1b */ 804 OMX_VIDEO_AVCLevel11 = 0x04, /**< Level 1.1 */ 805 OMX_VIDEO_AVCLevel12 = 0x08, /**< Level 1.2 */ 806 OMX_VIDEO_AVCLevel13 = 0x10, /**< Level 1.3 */ 807 OMX_VIDEO_AVCLevel2 = 0x20, /**< Level 2 */ 808 OMX_VIDEO_AVCLevel21 = 0x40, /**< Level 2.1 */ 809 OMX_VIDEO_AVCLevel22 = 0x80, /**< Level 2.2 */ 810 OMX_VIDEO_AVCLevel3 = 0x100, /**< Level 3 */ 811 OMX_VIDEO_AVCLevel31 = 0x200, /**< Level 3.1 */ 812 OMX_VIDEO_AVCLevel32 = 0x400, /**< Level 3.2 */ 813 OMX_VIDEO_AVCLevel4 = 0x800, /**< Level 4 */ 814 OMX_VIDEO_AVCLevel41 = 0x1000, /**< Level 4.1 */ 815 OMX_VIDEO_AVCLevel42 = 0x2000, /**< Level 4.2 */ 816 OMX_VIDEO_AVCLevel5 = 0x4000, /**< Level 5 */ 817 OMX_VIDEO_AVCLevel51 = 0x8000, /**< Level 5.1 */ 818 OMX_VIDEO_AVCLevelKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 819 OMX_VIDEO_AVCLevelVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 820 OMX_VIDEO_AVCLevelMax = 0x7FFFFFFF 821 } OMX_VIDEO_AVCLEVELTYPE; 822 823 824 /** 825 * AVC loop filter modes 826 * 827 * OMX_VIDEO_AVCLoopFilterEnable : Enable 828 * OMX_VIDEO_AVCLoopFilterDisable : Disable 829 * OMX_VIDEO_AVCLoopFilterDisableSliceBoundary : Disabled on slice boundaries 830 */ 831 typedef enum OMX_VIDEO_AVCLOOPFILTERTYPE { 832 OMX_VIDEO_AVCLoopFilterEnable = 0, 833 OMX_VIDEO_AVCLoopFilterDisable, 834 OMX_VIDEO_AVCLoopFilterDisableSliceBoundary, 835 OMX_VIDEO_AVCLoopFilterKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 836 OMX_VIDEO_AVCLoopFilterVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 837 OMX_VIDEO_AVCLoopFilterMax = 0x7FFFFFFF 838 } OMX_VIDEO_AVCLOOPFILTERTYPE; 839 840 841 /** 842 * AVC params 843 * 844 * STRUCT MEMBERS: 845 * nSize : Size of the structure in bytes 846 * nVersion : OMX specification version information 847 * nPortIndex : Port that this structure applies to 848 * nSliceHeaderSpacing : Number of macroblocks between slice header, put 849 * zero if not used 850 * nPFrames : Number of P frames between each I frame 851 * nBFrames : Number of B frames between each I frame 852 * bUseHadamard : Enable/disable Hadamard transform 853 * nRefFrames : Max number of reference frames to use for inter 854 * motion search (1-16) 855 * nRefIdxTrailing : Pic param set ref frame index (index into ref 856 * frame buffer of trailing frames list), B frame 857 * support 858 * nRefIdxForward : Pic param set ref frame index (index into ref 859 * frame buffer of forward frames list), B frame 860 * support 861 * bEnableUEP : Enable/disable unequal error protection. This 862 * is only valid of data partitioning is enabled. 863 * bEnableFMO : Enable/disable flexible macroblock ordering 864 * bEnableASO : Enable/disable arbitrary slice ordering 865 * bEnableRS : Enable/disable sending of redundant slices 866 * eProfile : AVC profile(s) to use 867 * eLevel : AVC level(s) to use 868 * nAllowedPictureTypes : Specifies the picture types allowed in the 869 * bitstream 870 * bFrameMBsOnly : specifies that every coded picture of the 871 * coded video sequence is a coded frame 872 * containing only frame macroblocks 873 * bMBAFF : Enable/disable switching between frame and 874 * field macroblocks within a picture 875 * bEntropyCodingCABAC : Entropy decoding method to be applied for the 876 * syntax elements for which two descriptors appear 877 * in the syntax tables 878 * bWeightedPPrediction : Enable/disable weighted prediction shall not 879 * be applied to P and SP slices 880 * nWeightedBipredicitonMode : Default weighted prediction is applied to B 881 * slices 882 * bconstIpred : Enable/disable intra prediction 883 * bDirect8x8Inference : Specifies the method used in the derivation 884 * process for luma motion vectors for B_Skip, 885 * B_Direct_16x16 and B_Direct_8x8 as specified 886 * in subclause 8.4.1.2 of the AVC spec 887 * bDirectSpatialTemporal : Flag indicating spatial or temporal direct 888 * mode used in B slice coding (related to 889 * bDirect8x8Inference) . Spatial direct mode is 890 * more common and should be the default. 891 * nCabacInitIdx : Index used to init CABAC contexts 892 * eLoopFilterMode : Enable/disable loop filter 893 */ 894 typedef struct OMX_VIDEO_PARAM_AVCTYPE { 895 OMX_U32 nSize; 896 OMX_VERSIONTYPE nVersion; 897 OMX_U32 nPortIndex; 898 OMX_U32 nSliceHeaderSpacing; 899 OMX_U32 nPFrames; 900 OMX_U32 nBFrames; 901 OMX_BOOL bUseHadamard; 902 OMX_U32 nRefFrames; 903 OMX_U32 nRefIdx10ActiveMinus1; 904 OMX_U32 nRefIdx11ActiveMinus1; 905 OMX_BOOL bEnableUEP; 906 OMX_BOOL bEnableFMO; 907 OMX_BOOL bEnableASO; 908 OMX_BOOL bEnableRS; 909 OMX_VIDEO_AVCPROFILETYPE eProfile; 910 OMX_VIDEO_AVCLEVELTYPE eLevel; 911 OMX_U32 nAllowedPictureTypes; 912 OMX_BOOL bFrameMBsOnly; 913 OMX_BOOL bMBAFF; 914 OMX_BOOL bEntropyCodingCABAC; 915 OMX_BOOL bWeightedPPrediction; 916 OMX_U32 nWeightedBipredicitonMode; 917 OMX_BOOL bconstIpred ; 918 OMX_BOOL bDirect8x8Inference; 919 OMX_BOOL bDirectSpatialTemporal; 920 OMX_U32 nCabacInitIdc; 921 OMX_VIDEO_AVCLOOPFILTERTYPE eLoopFilterMode; 922 } OMX_VIDEO_PARAM_AVCTYPE; 923 924 typedef struct OMX_VIDEO_PARAM_PROFILELEVELTYPE { 925 OMX_U32 nSize; 926 OMX_VERSIONTYPE nVersion; 927 OMX_U32 nPortIndex; 928 OMX_U32 eProfile; /**< type is OMX_VIDEO_AVCPROFILETYPE, OMX_VIDEO_H263PROFILETYPE, 929 or OMX_VIDEO_MPEG4PROFILETYPE depending on context */ 930 OMX_U32 eLevel; /**< type is OMX_VIDEO_AVCLEVELTYPE, OMX_VIDEO_H263LEVELTYPE, 931 or OMX_VIDEO_MPEG4PROFILETYPE depending on context */ 932 OMX_U32 nProfileIndex; /**< Used to query for individual profile support information, 933 This parameter is valid only for 934 OMX_IndexParamVideoProfileLevelQuerySupported index, 935 For all other indices this parameter is to be ignored. */ 936 } OMX_VIDEO_PARAM_PROFILELEVELTYPE; 937 938 /** 939 * Structure for dynamically configuring bitrate mode of a codec. 940 * 941 * STRUCT MEMBERS: 942 * nSize : Size of the struct in bytes 943 * nVersion : OMX spec version info 944 * nPortIndex : Port that this struct applies to 945 * nEncodeBitrate : Target average bitrate to be generated in bps 946 */ 947 typedef struct OMX_VIDEO_CONFIG_BITRATETYPE { 948 OMX_U32 nSize; 949 OMX_VERSIONTYPE nVersion; 950 OMX_U32 nPortIndex; 951 OMX_U32 nEncodeBitrate; 952 } OMX_VIDEO_CONFIG_BITRATETYPE; 953 954 /** 955 * Defines Encoder Frame Rate setting 956 * 957 * STRUCT MEMBERS: 958 * nSize : Size of the structure in bytes 959 * nVersion : OMX specification version information 960 * nPortIndex : Port that this structure applies to 961 * xEncodeFramerate : Encoding framerate represented in Q16 format 962 */ 963 typedef struct OMX_CONFIG_FRAMERATETYPE { 964 OMX_U32 nSize; 965 OMX_VERSIONTYPE nVersion; 966 OMX_U32 nPortIndex; 967 OMX_U32 xEncodeFramerate; /* Q16 format */ 968 } OMX_CONFIG_FRAMERATETYPE; 969 970 typedef struct OMX_CONFIG_INTRAREFRESHVOPTYPE { 971 OMX_U32 nSize; 972 OMX_VERSIONTYPE nVersion; 973 OMX_U32 nPortIndex; 974 OMX_BOOL IntraRefreshVOP; 975 } OMX_CONFIG_INTRAREFRESHVOPTYPE; 976 977 typedef struct OMX_CONFIG_MACROBLOCKERRORMAPTYPE { 978 OMX_U32 nSize; 979 OMX_VERSIONTYPE nVersion; 980 OMX_U32 nPortIndex; 981 OMX_U32 nErrMapSize; /* Size of the Error Map in bytes */ 982 OMX_U8 ErrMap[1]; /* Error map hint */ 983 } OMX_CONFIG_MACROBLOCKERRORMAPTYPE; 984 985 typedef struct OMX_CONFIG_MBERRORREPORTINGTYPE { 986 OMX_U32 nSize; 987 OMX_VERSIONTYPE nVersion; 988 OMX_U32 nPortIndex; 989 OMX_BOOL bEnabled; 990 } OMX_CONFIG_MBERRORREPORTINGTYPE; 991 992 typedef struct OMX_PARAM_MACROBLOCKSTYPE { 993 OMX_U32 nSize; 994 OMX_VERSIONTYPE nVersion; 995 OMX_U32 nPortIndex; 996 OMX_U32 nMacroblocks; 997 } OMX_PARAM_MACROBLOCKSTYPE; 998 999 /** 1000 * AVC Slice Mode modes 1001 * 1002 * OMX_VIDEO_SLICEMODE_AVCDefault : Normal frame encoding, one slice per frame 1003 * OMX_VIDEO_SLICEMODE_AVCMBSlice : NAL mode, number of MBs per frame 1004 * OMX_VIDEO_SLICEMODE_AVCByteSlice : NAL mode, number of bytes per frame 1005 */ 1006 typedef enum OMX_VIDEO_AVCSLICEMODETYPE { 1007 OMX_VIDEO_SLICEMODE_AVCDefault = 0, 1008 OMX_VIDEO_SLICEMODE_AVCMBSlice, 1009 OMX_VIDEO_SLICEMODE_AVCByteSlice, 1010 OMX_VIDEO_SLICEMODE_AVCKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 1011 OMX_VIDEO_SLICEMODE_AVCVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 1012 OMX_VIDEO_SLICEMODE_AVCLevelMax = 0x7FFFFFFF 1013 } OMX_VIDEO_AVCSLICEMODETYPE; 1014 1015 /** 1016 * AVC FMO Slice Mode Params 1017 * 1018 * STRUCT MEMBERS: 1019 * nSize : Size of the structure in bytes 1020 * nVersion : OMX specification version information 1021 * nPortIndex : Port that this structure applies to 1022 * nNumSliceGroups : Specifies the number of slice groups 1023 * nSliceGroupMapType : Specifies the type of slice groups 1024 * eSliceMode : Specifies the type of slice 1025 */ 1026 typedef struct OMX_VIDEO_PARAM_AVCSLICEFMO { 1027 OMX_U32 nSize; 1028 OMX_VERSIONTYPE nVersion; 1029 OMX_U32 nPortIndex; 1030 OMX_U8 nNumSliceGroups; 1031 OMX_U8 nSliceGroupMapType; 1032 OMX_VIDEO_AVCSLICEMODETYPE eSliceMode; 1033 } OMX_VIDEO_PARAM_AVCSLICEFMO; 1034 1035 /** 1036 * AVC IDR Period Configs 1037 * 1038 * STRUCT MEMBERS: 1039 * nSize : Size of the structure in bytes 1040 * nVersion : OMX specification version information 1041 * nPortIndex : Port that this structure applies to 1042 * nIDRPeriod : Specifies periodicity of IDR frames 1043 * nPFrames : Specifies internal of coding Intra frames 1044 */ 1045 typedef struct OMX_VIDEO_CONFIG_AVCINTRAPERIOD { 1046 OMX_U32 nSize; 1047 OMX_VERSIONTYPE nVersion; 1048 OMX_U32 nPortIndex; 1049 OMX_U32 nIDRPeriod; 1050 OMX_U32 nPFrames; 1051 } OMX_VIDEO_CONFIG_AVCINTRAPERIOD; 1052 1053 /** 1054 * AVC NAL Size Configs 1055 * 1056 * STRUCT MEMBERS: 1057 * nSize : Size of the structure in bytes 1058 * nVersion : OMX specification version information 1059 * nPortIndex : Port that this structure applies to 1060 * nNaluBytes : Specifies the NAL unit size 1061 */ 1062 typedef struct OMX_VIDEO_CONFIG_NALSIZE { 1063 OMX_U32 nSize; 1064 OMX_VERSIONTYPE nVersion; 1065 OMX_U32 nPortIndex; 1066 OMX_U32 nNaluBytes; 1067 } OMX_VIDEO_CONFIG_NALSIZE; 1068 1069 /** @} */ 1070 1071 #ifdef __cplusplus 1072 } 1073 #endif /* __cplusplus */ 1074 1075 #endif 1076 /* File EOF */ 1077 1078