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