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