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_CodingVP8, /**< Google VP8, formerly known as On2 VP8 */ 72 OMX_VIDEO_CodingVP9, /**< Google VP9 */ 73 OMX_VIDEO_CodingHEVC, /**< ITU H.265/HEVC */ 74 OMX_VIDEO_CodingDolbyVision,/**< Dolby Vision */ 75 OMX_VIDEO_CodingImageHEIC, /**< HEIF image encoded with HEVC */ 76 OMX_VIDEO_CodingKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 77 OMX_VIDEO_CodingVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 78 OMX_VIDEO_CodingMax = 0x7FFFFFFF 79 } OMX_VIDEO_CODINGTYPE; 80 81 82 /** 83 * Data structure used to define a video path. The number of Video paths for 84 * input and output will vary by type of the Video component. 85 * 86 * Input (aka Source) : zero Inputs, one Output, 87 * Splitter : one Input, 2 or more Outputs, 88 * Processing Element : one Input, one output, 89 * Mixer : 2 or more inputs, one output, 90 * Output (aka Sink) : one Input, zero outputs. 91 * 92 * The PortDefinition structure is used to define all of the parameters 93 * necessary for the compliant component to setup an input or an output video 94 * path. If additional vendor specific data is required, it should be 95 * transmitted to the component using the CustomCommand function. Compliant 96 * components will prepopulate this structure with optimal values during the 97 * GetDefaultInitParams command. 98 * 99 * STRUCT MEMBERS: 100 * cMIMEType : MIME type of data for the port 101 * pNativeRender : Platform specific reference for a display if a 102 * sync, otherwise this field is 0 103 * nFrameWidth : Width of frame to be used on channel if 104 * uncompressed format is used. Use 0 for unknown, 105 * don't care or variable 106 * nFrameHeight : Height of frame to be used on channel if 107 * uncompressed format is used. Use 0 for unknown, 108 * don't care or variable 109 * nStride : Number of bytes per span of an image 110 * (i.e. indicates the number of bytes to get 111 * from span N to span N+1, where negative stride 112 * indicates the image is bottom up 113 * nSliceHeight : Height used when encoding in slices 114 * nBitrate : Bit rate of frame to be used on channel if 115 * compressed format is used. Use 0 for unknown, 116 * don't care or variable 117 * xFramerate : Frame rate to be used on channel if uncompressed 118 * format is used. Use 0 for unknown, don't care or 119 * variable. Units are Q16 frames per second. 120 * bFlagErrorConcealment : Turns on error concealment if it is supported by 121 * the OMX component 122 * eCompressionFormat : Compression format used in this instance of the 123 * component. When OMX_VIDEO_CodingUnused is 124 * specified, eColorFormat is used 125 * eColorFormat : Decompressed format used by this component 126 * pNativeWindow : Platform specific reference for a window object if a 127 * display sink , otherwise this field is 0x0. 128 */ 129 typedef struct OMX_VIDEO_PORTDEFINITIONTYPE { 130 OMX_STRING cMIMEType; 131 OMX_NATIVE_DEVICETYPE pNativeRender; 132 OMX_U32 nFrameWidth; 133 OMX_U32 nFrameHeight; 134 OMX_S32 nStride; 135 OMX_U32 nSliceHeight; 136 OMX_U32 nBitrate; 137 OMX_U32 xFramerate; 138 OMX_BOOL bFlagErrorConcealment; 139 OMX_VIDEO_CODINGTYPE eCompressionFormat; 140 OMX_COLOR_FORMATTYPE eColorFormat; 141 OMX_NATIVE_WINDOWTYPE pNativeWindow; 142 } OMX_VIDEO_PORTDEFINITIONTYPE; 143 144 /** 145 * Port format parameter. This structure is used to enumerate the various 146 * data input/output format supported by the port. 147 * 148 * STRUCT MEMBERS: 149 * nSize : Size of the structure in bytes 150 * nVersion : OMX specification version information 151 * nPortIndex : Indicates which port to set 152 * nIndex : Indicates the enumeration index for the format from 153 * 0x0 to N-1 154 * eCompressionFormat : Compression format used in this instance of the 155 * component. When OMX_VIDEO_CodingUnused is specified, 156 * eColorFormat is used 157 * eColorFormat : Decompressed format used by this component 158 * xFrameRate : Indicates the video frame rate in Q16 format 159 */ 160 typedef struct OMX_VIDEO_PARAM_PORTFORMATTYPE { 161 OMX_U32 nSize; 162 OMX_VERSIONTYPE nVersion; 163 OMX_U32 nPortIndex; 164 OMX_U32 nIndex; 165 OMX_VIDEO_CODINGTYPE eCompressionFormat; 166 OMX_COLOR_FORMATTYPE eColorFormat; 167 OMX_U32 xFramerate; 168 } OMX_VIDEO_PARAM_PORTFORMATTYPE; 169 170 171 /** 172 * This is a structure for configuring video compression quantization 173 * parameter values. Codecs may support different QP values for different 174 * frame types. 175 * 176 * STRUCT MEMBERS: 177 * nSize : Size of the structure in bytes 178 * nVersion : OMX specification version info 179 * nPortIndex : Port that this structure applies to 180 * nQpI : QP value to use for index frames 181 * nQpP : QP value to use for P frames 182 * nQpB : QP values to use for bidirectional frames 183 */ 184 typedef struct OMX_VIDEO_PARAM_QUANTIZATIONTYPE { 185 OMX_U32 nSize; 186 OMX_VERSIONTYPE nVersion; 187 OMX_U32 nPortIndex; 188 OMX_U32 nQpI; 189 OMX_U32 nQpP; 190 OMX_U32 nQpB; 191 } OMX_VIDEO_PARAM_QUANTIZATIONTYPE; 192 193 194 /** 195 * Structure for configuration of video fast update parameters. 196 * 197 * STRUCT MEMBERS: 198 * nSize : Size of the structure in bytes 199 * nVersion : OMX specification version info 200 * nPortIndex : Port that this structure applies to 201 * bEnableVFU : Enable/Disable video fast update 202 * nFirstGOB : Specifies the number of the first macroblock row 203 * nFirstMB : specifies the first MB relative to the specified first GOB 204 * nNumMBs : Specifies the number of MBs to be refreshed from nFirstGOB 205 * and nFirstMB 206 */ 207 typedef struct OMX_VIDEO_PARAM_VIDEOFASTUPDATETYPE { 208 OMX_U32 nSize; 209 OMX_VERSIONTYPE nVersion; 210 OMX_U32 nPortIndex; 211 OMX_BOOL bEnableVFU; 212 OMX_U32 nFirstGOB; 213 OMX_U32 nFirstMB; 214 OMX_U32 nNumMBs; 215 } OMX_VIDEO_PARAM_VIDEOFASTUPDATETYPE; 216 217 218 /** 219 * Enumeration of possible bitrate control types 220 */ 221 typedef enum OMX_VIDEO_CONTROLRATETYPE { 222 OMX_Video_ControlRateDisable, 223 OMX_Video_ControlRateVariable, 224 OMX_Video_ControlRateConstant, 225 OMX_Video_ControlRateVariableSkipFrames, 226 OMX_Video_ControlRateConstantSkipFrames, 227 OMX_Video_ControlRateConstantQuality, 228 OMX_Video_ControlRateKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 229 OMX_Video_ControlRateVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 230 OMX_Video_ControlRateMax = 0x7FFFFFFF 231 } OMX_VIDEO_CONTROLRATETYPE; 232 233 234 /** 235 * Structure for configuring bitrate mode of a codec. 236 * 237 * STRUCT MEMBERS: 238 * nSize : Size of the struct in bytes 239 * nVersion : OMX spec version info 240 * nPortIndex : Port that this struct applies to 241 * eControlRate : Control rate type enum 242 * nTargetBitrate : Target bitrate to encode with (used when eControlRate is 243 * not OMX_Video_ControlRateConstantQuality) 244 * nQualityFactor : Quality to encode with (used when eControlRate is 245 * OMX_Video_ControlRateConstantQuality only) 246 */ 247 typedef struct OMX_VIDEO_PARAM_BITRATETYPE { 248 OMX_U32 nSize; 249 OMX_VERSIONTYPE nVersion; 250 OMX_U32 nPortIndex; 251 OMX_VIDEO_CONTROLRATETYPE eControlRate; 252 union { 253 OMX_U32 nTargetBitrate; 254 OMX_U32 nQualityFactor; 255 }; 256 } OMX_VIDEO_PARAM_BITRATETYPE; 257 258 259 /** 260 * Enumeration of possible motion vector (MV) types 261 */ 262 typedef enum OMX_VIDEO_MOTIONVECTORTYPE { 263 OMX_Video_MotionVectorPixel, 264 OMX_Video_MotionVectorHalfPel, 265 OMX_Video_MotionVectorQuarterPel, 266 OMX_Video_MotionVectorEighthPel, 267 OMX_Video_MotionVectorKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 268 OMX_Video_MotionVectorVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 269 OMX_Video_MotionVectorMax = 0x7FFFFFFF 270 } OMX_VIDEO_MOTIONVECTORTYPE; 271 272 273 /** 274 * Structure for configuring the number of motion vectors used as well 275 * as their accuracy. 276 * 277 * STRUCT MEMBERS: 278 * nSize : Size of the struct in bytes 279 * nVersion : OMX spec version info 280 * nPortIndex : port that this structure applies to 281 * eAccuracy : Enumerated MV accuracy 282 * bUnrestrictedMVs : Allow unrestricted MVs 283 * bFourMV : Allow use of 4 MVs 284 * sXSearchRange : Search range in horizontal direction for MVs 285 * sYSearchRange : Search range in vertical direction for MVs 286 */ 287 typedef struct OMX_VIDEO_PARAM_MOTIONVECTORTYPE { 288 OMX_U32 nSize; 289 OMX_VERSIONTYPE nVersion; 290 OMX_U32 nPortIndex; 291 OMX_VIDEO_MOTIONVECTORTYPE eAccuracy; 292 OMX_BOOL bUnrestrictedMVs; 293 OMX_BOOL bFourMV; 294 OMX_S32 sXSearchRange; 295 OMX_S32 sYSearchRange; 296 } OMX_VIDEO_PARAM_MOTIONVECTORTYPE; 297 298 299 /** 300 * Enumeration of possible methods to use for Intra Refresh 301 */ 302 typedef enum OMX_VIDEO_INTRAREFRESHTYPE { 303 OMX_VIDEO_IntraRefreshCyclic, 304 OMX_VIDEO_IntraRefreshAdaptive, 305 OMX_VIDEO_IntraRefreshBoth, 306 OMX_VIDEO_IntraRefreshKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 307 OMX_VIDEO_IntraRefreshVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 308 OMX_VIDEO_IntraRefreshRandom, 309 OMX_VIDEO_IntraRefreshMax = 0x7FFFFFFF 310 } OMX_VIDEO_INTRAREFRESHTYPE; 311 312 313 /** 314 * Structure for configuring intra refresh mode 315 * 316 * STRUCT MEMBERS: 317 * nSize : Size of the structure in bytes 318 * nVersion : OMX specification version information 319 * nPortIndex : Port that this structure applies to 320 * eRefreshMode : Cyclic, Adaptive, or Both 321 * nAirMBs : Number of intra macroblocks to refresh in a frame when 322 * AIR is enabled 323 * nAirRef : Number of times a motion marked macroblock has to be 324 * intra coded 325 * nCirMBs : Number of consecutive macroblocks to be coded as "intra" 326 * when CIR is enabled 327 */ 328 typedef struct OMX_VIDEO_PARAM_INTRAREFRESHTYPE { 329 OMX_U32 nSize; 330 OMX_VERSIONTYPE nVersion; 331 OMX_U32 nPortIndex; 332 OMX_VIDEO_INTRAREFRESHTYPE eRefreshMode; 333 OMX_U32 nAirMBs; 334 OMX_U32 nAirRef; 335 OMX_U32 nCirMBs; 336 } OMX_VIDEO_PARAM_INTRAREFRESHTYPE; 337 338 339 /** 340 * Structure for enabling various error correction methods for video 341 * compression. 342 * 343 * STRUCT MEMBERS: 344 * nSize : Size of the structure in bytes 345 * nVersion : OMX specification version information 346 * nPortIndex : Port that this structure applies to 347 * bEnableHEC : Enable/disable header extension codes (HEC) 348 * bEnableResync : Enable/disable resynchronization markers 349 * nResynchMarkerSpacing : Resynch markers interval (in bits) to be 350 * applied in the stream 351 * bEnableDataPartitioning : Enable/disable data partitioning 352 * bEnableRVLC : Enable/disable reversible variable length 353 * coding 354 */ 355 typedef struct OMX_VIDEO_PARAM_ERRORCORRECTIONTYPE { 356 OMX_U32 nSize; 357 OMX_VERSIONTYPE nVersion; 358 OMX_U32 nPortIndex; 359 OMX_BOOL bEnableHEC; 360 OMX_BOOL bEnableResync; 361 OMX_U32 nResynchMarkerSpacing; 362 OMX_BOOL bEnableDataPartitioning; 363 OMX_BOOL bEnableRVLC; 364 } OMX_VIDEO_PARAM_ERRORCORRECTIONTYPE; 365 366 367 /** 368 * Configuration of variable block-size motion compensation (VBSMC) 369 * 370 * STRUCT MEMBERS: 371 * nSize : Size of the structure in bytes 372 * nVersion : OMX specification version information 373 * nPortIndex : Port that this structure applies to 374 * b16x16 : Enable inter block search 16x16 375 * b16x8 : Enable inter block search 16x8 376 * b8x16 : Enable inter block search 8x16 377 * b8x8 : Enable inter block search 8x8 378 * b8x4 : Enable inter block search 8x4 379 * b4x8 : Enable inter block search 4x8 380 * b4x4 : Enable inter block search 4x4 381 */ 382 typedef struct OMX_VIDEO_PARAM_VBSMCTYPE { 383 OMX_U32 nSize; 384 OMX_VERSIONTYPE nVersion; 385 OMX_U32 nPortIndex; 386 OMX_BOOL b16x16; 387 OMX_BOOL b16x8; 388 OMX_BOOL b8x16; 389 OMX_BOOL b8x8; 390 OMX_BOOL b8x4; 391 OMX_BOOL b4x8; 392 OMX_BOOL b4x4; 393 } OMX_VIDEO_PARAM_VBSMCTYPE; 394 395 396 /** 397 * H.263 profile types, each profile indicates support for various 398 * performance bounds and different annexes. 399 * 400 * ENUMS: 401 * Baseline : Baseline Profile: H.263 (V1), no optional modes 402 * H320 Coding : H.320 Coding Efficiency Backward Compatibility 403 * Profile: H.263+ (V2), includes annexes I, J, L.4 404 * and T 405 * BackwardCompatible : Backward Compatibility Profile: H.263 (V1), 406 * includes annex F 407 * ISWV2 : Interactive Streaming Wireless Profile: H.263+ 408 * (V2), includes annexes I, J, K and T 409 * ISWV3 : Interactive Streaming Wireless Profile: H.263++ 410 * (V3), includes profile 3 and annexes V and W.6.3.8 411 * HighCompression : Conversational High Compression Profile: H.263++ 412 * (V3), includes profiles 1 & 2 and annexes D and U 413 * Internet : Conversational Internet Profile: H.263++ (V3), 414 * includes profile 5 and annex K 415 * Interlace : Conversational Interlace Profile: H.263++ (V3), 416 * includes profile 5 and annex W.6.3.11 417 * HighLatency : High Latency Profile: H.263++ (V3), includes 418 * profile 6 and annexes O.1 and P.5 419 */ 420 typedef enum OMX_VIDEO_H263PROFILETYPE { 421 OMX_VIDEO_H263ProfileBaseline = 0x01, 422 OMX_VIDEO_H263ProfileH320Coding = 0x02, 423 OMX_VIDEO_H263ProfileBackwardCompatible = 0x04, 424 OMX_VIDEO_H263ProfileISWV2 = 0x08, 425 OMX_VIDEO_H263ProfileISWV3 = 0x10, 426 OMX_VIDEO_H263ProfileHighCompression = 0x20, 427 OMX_VIDEO_H263ProfileInternet = 0x40, 428 OMX_VIDEO_H263ProfileInterlace = 0x80, 429 OMX_VIDEO_H263ProfileHighLatency = 0x100, 430 OMX_VIDEO_H263ProfileKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 431 OMX_VIDEO_H263ProfileVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 432 OMX_VIDEO_H263ProfileMax = 0x7FFFFFFF 433 } OMX_VIDEO_H263PROFILETYPE; 434 435 436 /** 437 * H.263 level types, each level indicates support for various frame sizes, 438 * bit rates, decoder frame rates. 439 */ 440 typedef enum OMX_VIDEO_H263LEVELTYPE { 441 OMX_VIDEO_H263Level10 = 0x01, 442 OMX_VIDEO_H263Level20 = 0x02, 443 OMX_VIDEO_H263Level30 = 0x04, 444 OMX_VIDEO_H263Level40 = 0x08, 445 OMX_VIDEO_H263Level45 = 0x10, 446 OMX_VIDEO_H263Level50 = 0x20, 447 OMX_VIDEO_H263Level60 = 0x40, 448 OMX_VIDEO_H263Level70 = 0x80, 449 OMX_VIDEO_H263LevelKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 450 OMX_VIDEO_H263LevelVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 451 OMX_VIDEO_H263LevelMax = 0x7FFFFFFF 452 } OMX_VIDEO_H263LEVELTYPE; 453 454 455 /** 456 * Specifies the picture type. These values should be OR'd to signal all 457 * pictures types which are allowed. 458 * 459 * ENUMS: 460 * Generic Picture Types: I, P and B 461 * H.263 Specific Picture Types: SI and SP 462 * H.264 Specific Picture Types: EI and EP 463 * MPEG-4 Specific Picture Types: S 464 */ 465 typedef enum OMX_VIDEO_PICTURETYPE { 466 OMX_VIDEO_PictureTypeI = 0x01, 467 OMX_VIDEO_PictureTypeP = 0x02, 468 OMX_VIDEO_PictureTypeB = 0x04, 469 OMX_VIDEO_PictureTypeSI = 0x08, 470 OMX_VIDEO_PictureTypeSP = 0x10, 471 OMX_VIDEO_PictureTypeEI = 0x11, 472 OMX_VIDEO_PictureTypeEP = 0x12, 473 OMX_VIDEO_PictureTypeS = 0x14, 474 OMX_VIDEO_PictureTypeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 475 OMX_VIDEO_PictureTypeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 476 OMX_VIDEO_PictureTypeMax = 0x7FFFFFFF 477 } OMX_VIDEO_PICTURETYPE; 478 479 480 /** 481 * H.263 Params 482 * 483 * STRUCT MEMBERS: 484 * nSize : Size of the structure in bytes 485 * nVersion : OMX specification version information 486 * nPortIndex : Port that this structure applies to 487 * nPFrames : Number of P frames between each I frame 488 * nBFrames : Number of B frames between each I frame 489 * eProfile : H.263 profile(s) to use 490 * eLevel : H.263 level(s) to use 491 * bPLUSPTYPEAllowed : Indicating that it is allowed to use PLUSPTYPE 492 * (specified in the 1998 version of H.263) to 493 * indicate custom picture sizes or clock 494 * frequencies 495 * nAllowedPictureTypes : Specifies the picture types allowed in the 496 * bitstream 497 * bForceRoundingTypeToZero : value of the RTYPE bit (bit 6 of MPPTYPE) is 498 * not constrained. It is recommended to change 499 * the value of the RTYPE bit for each reference 500 * picture in error-free communication 501 * nPictureHeaderRepetition : Specifies the frequency of picture header 502 * repetition 503 * nGOBHeaderInterval : Specifies the interval of non-empty GOB 504 * headers in units of GOBs 505 */ 506 typedef struct OMX_VIDEO_PARAM_H263TYPE { 507 OMX_U32 nSize; 508 OMX_VERSIONTYPE nVersion; 509 OMX_U32 nPortIndex; 510 OMX_U32 nPFrames; 511 OMX_U32 nBFrames; 512 OMX_VIDEO_H263PROFILETYPE eProfile; 513 OMX_VIDEO_H263LEVELTYPE eLevel; 514 OMX_BOOL bPLUSPTYPEAllowed; 515 OMX_U32 nAllowedPictureTypes; 516 OMX_BOOL bForceRoundingTypeToZero; 517 OMX_U32 nPictureHeaderRepetition; 518 OMX_U32 nGOBHeaderInterval; 519 } OMX_VIDEO_PARAM_H263TYPE; 520 521 522 /** 523 * MPEG-2 profile types, each profile indicates support for various 524 * performance bounds and different annexes. 525 */ 526 typedef enum OMX_VIDEO_MPEG2PROFILETYPE { 527 OMX_VIDEO_MPEG2ProfileSimple = 0, /**< Simple Profile */ 528 OMX_VIDEO_MPEG2ProfileMain, /**< Main Profile */ 529 OMX_VIDEO_MPEG2Profile422, /**< 4:2:2 Profile */ 530 OMX_VIDEO_MPEG2ProfileSNR, /**< SNR Profile */ 531 OMX_VIDEO_MPEG2ProfileSpatial, /**< Spatial Profile */ 532 OMX_VIDEO_MPEG2ProfileHigh, /**< High Profile */ 533 OMX_VIDEO_MPEG2ProfileKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 534 OMX_VIDEO_MPEG2ProfileVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 535 OMX_VIDEO_MPEG2ProfileMax = 0x7FFFFFFF 536 } OMX_VIDEO_MPEG2PROFILETYPE; 537 538 539 /** 540 * MPEG-2 level types, each level indicates support for various frame 541 * sizes, bit rates, decoder frame rates. No need 542 */ 543 typedef enum OMX_VIDEO_MPEG2LEVELTYPE { 544 OMX_VIDEO_MPEG2LevelLL = 0, /**< Low Level */ 545 OMX_VIDEO_MPEG2LevelML, /**< Main Level */ 546 OMX_VIDEO_MPEG2LevelH14, /**< High 1440 */ 547 OMX_VIDEO_MPEG2LevelHL, /**< High Level */ 548 OMX_VIDEO_MPEG2LevelHP, /**< HighP Level */ 549 OMX_VIDEO_MPEG2LevelKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 550 OMX_VIDEO_MPEG2LevelVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 551 OMX_VIDEO_MPEG2LevelMax = 0x7FFFFFFF 552 } OMX_VIDEO_MPEG2LEVELTYPE; 553 554 555 /** 556 * MPEG-2 params 557 * 558 * STRUCT MEMBERS: 559 * nSize : Size of the structure in bytes 560 * nVersion : OMX specification version information 561 * nPortIndex : Port that this structure applies to 562 * nPFrames : Number of P frames between each I frame 563 * nBFrames : Number of B frames between each I frame 564 * eProfile : MPEG-2 profile(s) to use 565 * eLevel : MPEG-2 levels(s) to use 566 */ 567 typedef struct OMX_VIDEO_PARAM_MPEG2TYPE { 568 OMX_U32 nSize; 569 OMX_VERSIONTYPE nVersion; 570 OMX_U32 nPortIndex; 571 OMX_U32 nPFrames; 572 OMX_U32 nBFrames; 573 OMX_VIDEO_MPEG2PROFILETYPE eProfile; 574 OMX_VIDEO_MPEG2LEVELTYPE eLevel; 575 } OMX_VIDEO_PARAM_MPEG2TYPE; 576 577 578 /** 579 * MPEG-4 profile types, each profile indicates support for various 580 * performance bounds and different annexes. 581 * 582 * ENUMS: 583 * - Simple Profile, Levels 1-3 584 * - Simple Scalable Profile, Levels 1-2 585 * - Core Profile, Levels 1-2 586 * - Main Profile, Levels 2-4 587 * - N-bit Profile, Level 2 588 * - Scalable Texture Profile, Level 1 589 * - Simple Face Animation Profile, Levels 1-2 590 * - Simple Face and Body Animation (FBA) Profile, Levels 1-2 591 * - Basic Animated Texture Profile, Levels 1-2 592 * - Hybrid Profile, Levels 1-2 593 * - Advanced Real Time Simple Profiles, Levels 1-4 594 * - Core Scalable Profile, Levels 1-3 595 * - Advanced Coding Efficiency Profile, Levels 1-4 596 * - Advanced Core Profile, Levels 1-2 597 * - Advanced Scalable Texture, Levels 2-3 598 */ 599 typedef enum OMX_VIDEO_MPEG4PROFILETYPE { 600 OMX_VIDEO_MPEG4ProfileSimple = 0x01, 601 OMX_VIDEO_MPEG4ProfileSimpleScalable = 0x02, 602 OMX_VIDEO_MPEG4ProfileCore = 0x04, 603 OMX_VIDEO_MPEG4ProfileMain = 0x08, 604 OMX_VIDEO_MPEG4ProfileNbit = 0x10, 605 OMX_VIDEO_MPEG4ProfileScalableTexture = 0x20, 606 OMX_VIDEO_MPEG4ProfileSimpleFace = 0x40, 607 OMX_VIDEO_MPEG4ProfileSimpleFBA = 0x80, 608 OMX_VIDEO_MPEG4ProfileBasicAnimated = 0x100, 609 OMX_VIDEO_MPEG4ProfileHybrid = 0x200, 610 OMX_VIDEO_MPEG4ProfileAdvancedRealTime = 0x400, 611 OMX_VIDEO_MPEG4ProfileCoreScalable = 0x800, 612 OMX_VIDEO_MPEG4ProfileAdvancedCoding = 0x1000, 613 OMX_VIDEO_MPEG4ProfileAdvancedCore = 0x2000, 614 OMX_VIDEO_MPEG4ProfileAdvancedScalable = 0x4000, 615 OMX_VIDEO_MPEG4ProfileAdvancedSimple = 0x8000, 616 OMX_VIDEO_MPEG4ProfileKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 617 OMX_VIDEO_MPEG4ProfileVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 618 OMX_VIDEO_MPEG4ProfileMax = 0x7FFFFFFF 619 } OMX_VIDEO_MPEG4PROFILETYPE; 620 621 622 /** 623 * MPEG-4 level types, each level indicates support for various frame 624 * sizes, bit rates, decoder frame rates. No need 625 */ 626 typedef enum OMX_VIDEO_MPEG4LEVELTYPE { 627 OMX_VIDEO_MPEG4Level0 = 0x01, /**< Level 0 */ 628 OMX_VIDEO_MPEG4Level0b = 0x02, /**< Level 0b */ 629 OMX_VIDEO_MPEG4Level1 = 0x04, /**< Level 1 */ 630 OMX_VIDEO_MPEG4Level2 = 0x08, /**< Level 2 */ 631 OMX_VIDEO_MPEG4Level3 = 0x10, /**< Level 3 */ 632 /* normally levels are powers of 2s, but 3b was missed and levels must be properly ordered */ 633 OMX_VIDEO_MPEG4Level3b = 0x18, /**< Level 3a */ 634 OMX_VIDEO_MPEG4Level4 = 0x20, /**< Level 4 */ 635 OMX_VIDEO_MPEG4Level4a = 0x40, /**< Level 4a */ 636 OMX_VIDEO_MPEG4Level5 = 0x80, /**< Level 5 */ 637 OMX_VIDEO_MPEG4Level6 = 0x100, /**< Level 6 */ 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_AVCLevel52 = 0x10000, /**< Level 5.2 */ 819 OMX_VIDEO_AVCLevel6 = 0x20000, /**< Level 6 */ 820 OMX_VIDEO_AVCLevel61 = 0x40000, /**< Level 6.1 */ 821 OMX_VIDEO_AVCLevel62 = 0x80000, /**< Level 6.2 */ 822 OMX_VIDEO_AVCLevelKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 823 OMX_VIDEO_AVCLevelVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 824 OMX_VIDEO_AVCLevelMax = 0x7FFFFFFF 825 } OMX_VIDEO_AVCLEVELTYPE; 826 827 828 /** 829 * AVC loop filter modes 830 * 831 * OMX_VIDEO_AVCLoopFilterEnable : Enable 832 * OMX_VIDEO_AVCLoopFilterDisable : Disable 833 * OMX_VIDEO_AVCLoopFilterDisableSliceBoundary : Disabled on slice boundaries 834 */ 835 typedef enum OMX_VIDEO_AVCLOOPFILTERTYPE { 836 OMX_VIDEO_AVCLoopFilterEnable = 0, 837 OMX_VIDEO_AVCLoopFilterDisable, 838 OMX_VIDEO_AVCLoopFilterDisableSliceBoundary, 839 OMX_VIDEO_AVCLoopFilterKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 840 OMX_VIDEO_AVCLoopFilterVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 841 OMX_VIDEO_AVCLoopFilterMax = 0x7FFFFFFF 842 } OMX_VIDEO_AVCLOOPFILTERTYPE; 843 844 845 /** 846 * AVC params 847 * 848 * STRUCT MEMBERS: 849 * nSize : Size of the structure in bytes 850 * nVersion : OMX specification version information 851 * nPortIndex : Port that this structure applies to 852 * nSliceHeaderSpacing : Number of macroblocks between slice header, put 853 * zero if not used 854 * nPFrames : Number of P frames between each I frame 855 * nBFrames : Number of B frames between each I frame 856 * bUseHadamard : Enable/disable Hadamard transform 857 * nRefFrames : Max number of reference frames to use for inter 858 * motion search (1-16) 859 * nRefIdxTrailing : Pic param set ref frame index (index into ref 860 * frame buffer of trailing frames list), B frame 861 * support 862 * nRefIdxForward : Pic param set ref frame index (index into ref 863 * frame buffer of forward frames list), B frame 864 * support 865 * bEnableUEP : Enable/disable unequal error protection. This 866 * is only valid of data partitioning is enabled. 867 * bEnableFMO : Enable/disable flexible macroblock ordering 868 * bEnableASO : Enable/disable arbitrary slice ordering 869 * bEnableRS : Enable/disable sending of redundant slices 870 * eProfile : AVC profile(s) to use 871 * eLevel : AVC level(s) to use 872 * nAllowedPictureTypes : Specifies the picture types allowed in the 873 * bitstream 874 * bFrameMBsOnly : specifies that every coded picture of the 875 * coded video sequence is a coded frame 876 * containing only frame macroblocks 877 * bMBAFF : Enable/disable switching between frame and 878 * field macroblocks within a picture 879 * bEntropyCodingCABAC : Entropy decoding method to be applied for the 880 * syntax elements for which two descriptors appear 881 * in the syntax tables 882 * bWeightedPPrediction : Enable/disable weighted prediction shall not 883 * be applied to P and SP slices 884 * nWeightedBipredicitonMode : Default weighted prediction is applied to B 885 * slices 886 * bconstIpred : Enable/disable intra prediction 887 * bDirect8x8Inference : Specifies the method used in the derivation 888 * process for luma motion vectors for B_Skip, 889 * B_Direct_16x16 and B_Direct_8x8 as specified 890 * in subclause 8.4.1.2 of the AVC spec 891 * bDirectSpatialTemporal : Flag indicating spatial or temporal direct 892 * mode used in B slice coding (related to 893 * bDirect8x8Inference) . Spatial direct mode is 894 * more common and should be the default. 895 * nCabacInitIdx : Index used to init CABAC contexts 896 * eLoopFilterMode : Enable/disable loop filter 897 */ 898 typedef struct OMX_VIDEO_PARAM_AVCTYPE { 899 OMX_U32 nSize; 900 OMX_VERSIONTYPE nVersion; 901 OMX_U32 nPortIndex; 902 OMX_U32 nSliceHeaderSpacing; 903 OMX_U32 nPFrames; 904 OMX_U32 nBFrames; 905 OMX_BOOL bUseHadamard; 906 OMX_U32 nRefFrames; 907 OMX_U32 nRefIdx10ActiveMinus1; 908 OMX_U32 nRefIdx11ActiveMinus1; 909 OMX_BOOL bEnableUEP; 910 OMX_BOOL bEnableFMO; 911 OMX_BOOL bEnableASO; 912 OMX_BOOL bEnableRS; 913 OMX_VIDEO_AVCPROFILETYPE eProfile; 914 OMX_VIDEO_AVCLEVELTYPE eLevel; 915 OMX_U32 nAllowedPictureTypes; 916 OMX_BOOL bFrameMBsOnly; 917 OMX_BOOL bMBAFF; 918 OMX_BOOL bEntropyCodingCABAC; 919 OMX_BOOL bWeightedPPrediction; 920 OMX_U32 nWeightedBipredicitonMode; 921 OMX_BOOL bconstIpred ; 922 OMX_BOOL bDirect8x8Inference; 923 OMX_BOOL bDirectSpatialTemporal; 924 OMX_U32 nCabacInitIdc; 925 OMX_VIDEO_AVCLOOPFILTERTYPE eLoopFilterMode; 926 } OMX_VIDEO_PARAM_AVCTYPE; 927 928 typedef struct OMX_VIDEO_PARAM_PROFILELEVELTYPE { 929 OMX_U32 nSize; 930 OMX_VERSIONTYPE nVersion; 931 OMX_U32 nPortIndex; 932 OMX_U32 eProfile; /**< type is OMX_VIDEO_AVCPROFILETYPE, OMX_VIDEO_H263PROFILETYPE, 933 or OMX_VIDEO_MPEG4PROFILETYPE depending on context */ 934 OMX_U32 eLevel; /**< type is OMX_VIDEO_AVCLEVELTYPE, OMX_VIDEO_H263LEVELTYPE, 935 or OMX_VIDEO_MPEG4PROFILETYPE depending on context */ 936 OMX_U32 nProfileIndex; /**< Used to query for individual profile support information, 937 This parameter is valid only for 938 OMX_IndexParamVideoProfileLevelQuerySupported index, 939 For all other indices this parameter is to be ignored. */ 940 } OMX_VIDEO_PARAM_PROFILELEVELTYPE; 941 942 /** 943 * Structure for dynamically configuring bitrate mode of a codec. 944 * 945 * STRUCT MEMBERS: 946 * nSize : Size of the struct in bytes 947 * nVersion : OMX spec version info 948 * nPortIndex : Port that this struct applies to 949 * nEncodeBitrate : Target average bitrate to be generated in bps 950 */ 951 typedef struct OMX_VIDEO_CONFIG_BITRATETYPE { 952 OMX_U32 nSize; 953 OMX_VERSIONTYPE nVersion; 954 OMX_U32 nPortIndex; 955 OMX_U32 nEncodeBitrate; 956 } OMX_VIDEO_CONFIG_BITRATETYPE; 957 958 /** 959 * Defines Encoder Frame Rate setting 960 * 961 * STRUCT MEMBERS: 962 * nSize : Size of the structure in bytes 963 * nVersion : OMX specification version information 964 * nPortIndex : Port that this structure applies to 965 * xEncodeFramerate : Encoding framerate represented in Q16 format 966 */ 967 typedef struct OMX_CONFIG_FRAMERATETYPE { 968 OMX_U32 nSize; 969 OMX_VERSIONTYPE nVersion; 970 OMX_U32 nPortIndex; 971 OMX_U32 xEncodeFramerate; /* Q16 format */ 972 } OMX_CONFIG_FRAMERATETYPE; 973 974 typedef struct OMX_CONFIG_INTRAREFRESHVOPTYPE { 975 OMX_U32 nSize; 976 OMX_VERSIONTYPE nVersion; 977 OMX_U32 nPortIndex; 978 OMX_BOOL IntraRefreshVOP; 979 } OMX_CONFIG_INTRAREFRESHVOPTYPE; 980 981 typedef struct OMX_CONFIG_MACROBLOCKERRORMAPTYPE { 982 OMX_U32 nSize; 983 OMX_VERSIONTYPE nVersion; 984 OMX_U32 nPortIndex; 985 OMX_U32 nErrMapSize; /* Size of the Error Map in bytes */ 986 OMX_U8 ErrMap[1]; /* Error map hint */ 987 } OMX_CONFIG_MACROBLOCKERRORMAPTYPE; 988 989 typedef struct OMX_CONFIG_MBERRORREPORTINGTYPE { 990 OMX_U32 nSize; 991 OMX_VERSIONTYPE nVersion; 992 OMX_U32 nPortIndex; 993 OMX_BOOL bEnabled; 994 } OMX_CONFIG_MBERRORREPORTINGTYPE; 995 996 typedef struct OMX_PARAM_MACROBLOCKSTYPE { 997 OMX_U32 nSize; 998 OMX_VERSIONTYPE nVersion; 999 OMX_U32 nPortIndex; 1000 OMX_U32 nMacroblocks; 1001 } OMX_PARAM_MACROBLOCKSTYPE; 1002 1003 /** 1004 * AVC Slice Mode modes 1005 * 1006 * OMX_VIDEO_SLICEMODE_AVCDefault : Normal frame encoding, one slice per frame 1007 * OMX_VIDEO_SLICEMODE_AVCMBSlice : NAL mode, number of MBs per frame 1008 * OMX_VIDEO_SLICEMODE_AVCByteSlice : NAL mode, number of bytes per frame 1009 */ 1010 typedef enum OMX_VIDEO_AVCSLICEMODETYPE { 1011 OMX_VIDEO_SLICEMODE_AVCDefault = 0, 1012 OMX_VIDEO_SLICEMODE_AVCMBSlice, 1013 OMX_VIDEO_SLICEMODE_AVCByteSlice, 1014 OMX_VIDEO_SLICEMODE_AVCKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 1015 OMX_VIDEO_SLICEMODE_AVCVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */ 1016 OMX_VIDEO_SLICEMODE_AVCLevelMax = 0x7FFFFFFF 1017 } OMX_VIDEO_AVCSLICEMODETYPE; 1018 1019 /** 1020 * AVC FMO Slice Mode Params 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 * nNumSliceGroups : Specifies the number of slice groups 1027 * nSliceGroupMapType : Specifies the type of slice groups 1028 * eSliceMode : Specifies the type of slice 1029 */ 1030 typedef struct OMX_VIDEO_PARAM_AVCSLICEFMO { 1031 OMX_U32 nSize; 1032 OMX_VERSIONTYPE nVersion; 1033 OMX_U32 nPortIndex; 1034 OMX_U8 nNumSliceGroups; 1035 OMX_U8 nSliceGroupMapType; 1036 OMX_VIDEO_AVCSLICEMODETYPE eSliceMode; 1037 } OMX_VIDEO_PARAM_AVCSLICEFMO; 1038 1039 /** 1040 * AVC IDR Period Configs 1041 * 1042 * STRUCT MEMBERS: 1043 * nSize : Size of the structure in bytes 1044 * nVersion : OMX specification version information 1045 * nPortIndex : Port that this structure applies to 1046 * nIDRPeriod : Specifies periodicity of IDR frames 1047 * nPFrames : Specifies internal of coding Intra frames 1048 */ 1049 typedef struct OMX_VIDEO_CONFIG_AVCINTRAPERIOD { 1050 OMX_U32 nSize; 1051 OMX_VERSIONTYPE nVersion; 1052 OMX_U32 nPortIndex; 1053 OMX_U32 nIDRPeriod; 1054 OMX_U32 nPFrames; 1055 } OMX_VIDEO_CONFIG_AVCINTRAPERIOD; 1056 1057 /** 1058 * AVC NAL Size Configs 1059 * 1060 * STRUCT MEMBERS: 1061 * nSize : Size of the structure in bytes 1062 * nVersion : OMX specification version information 1063 * nPortIndex : Port that this structure applies to 1064 * nNaluBytes : Specifies the NAL unit size 1065 */ 1066 typedef struct OMX_VIDEO_CONFIG_NALSIZE { 1067 OMX_U32 nSize; 1068 OMX_VERSIONTYPE nVersion; 1069 OMX_U32 nPortIndex; 1070 OMX_U32 nNaluBytes; 1071 } OMX_VIDEO_CONFIG_NALSIZE; 1072 1073 1074 /** 1075 * Deinterlace Config 1076 * 1077 * STRUCT MEMBERS: 1078 * nSize : Size of the structure in bytes 1079 * nVersion : OMX specification version information 1080 * nPortIndex : Port that this structure applies to 1081 * nEnable : Specifies to enable deinterlace 1082 */ 1083 typedef struct OMX_VIDEO_CONFIG_DEINTERLACE { 1084 OMX_U32 nSize; 1085 OMX_VERSIONTYPE nVersion; 1086 OMX_U32 nPortIndex; 1087 OMX_U32 nEnable; 1088 } OMX_VIDEO_CONFIG_DEINTERLACE; 1089 1090 /** @} */ 1091 1092 #ifdef __cplusplus 1093 } 1094 #endif /* __cplusplus */ 1095 1096 #endif 1097 /* File EOF */ 1098