OMX_VideoExt.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*
  2. * Copyright (c) 2010 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. /** OMX_VideoExt.h - OpenMax IL version 1.1.2
  24. * The OMX_VideoExt header file contains extensions to the
  25. * definitions used by both the application and the component to
  26. * access video items.
  27. */
  28. #ifndef OMX_VideoExt_h
  29. #define OMX_VideoExt_h
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif /* __cplusplus */
  33. /* Each OMX header shall include all required header files to allow the
  34. * header to compile without errors. The includes below are required
  35. * for this header file to compile successfully
  36. */
  37. #include <OMX_Core.h>
  38. /** NALU Formats */
  39. typedef enum OMX_NALUFORMATSTYPE {
  40. OMX_NaluFormatStartCodes = 1,
  41. OMX_NaluFormatOneNaluPerBuffer = 2,
  42. OMX_NaluFormatOneByteInterleaveLength = 4,
  43. OMX_NaluFormatTwoByteInterleaveLength = 8,
  44. OMX_NaluFormatFourByteInterleaveLength = 16,
  45. OMX_NaluFormatCodingMax = 0x7FFFFFFF
  46. } OMX_NALUFORMATSTYPE;
  47. /** NAL Stream Format */
  48. typedef struct OMX_NALSTREAMFORMATTYPE{
  49. OMX_U32 nSize;
  50. OMX_VERSIONTYPE nVersion;
  51. OMX_U32 nPortIndex;
  52. OMX_NALUFORMATSTYPE eNaluFormat;
  53. } OMX_NALSTREAMFORMATTYPE;
  54. /** Enum for standard video codingtype extensions */
  55. typedef enum OMX_VIDEO_CODINGEXTTYPE {
  56. OMX_VIDEO_ExtCodingUnused = OMX_VIDEO_CodingKhronosExtensions,
  57. OMX_VIDEO_CodingVP8, /**< VP8/WebM */
  58. } OMX_VIDEO_CODINGEXTTYPE;
  59. /** VP8 profiles */
  60. typedef enum OMX_VIDEO_VP8PROFILETYPE {
  61. OMX_VIDEO_VP8ProfileMain = 0x01,
  62. OMX_VIDEO_VP8ProfileUnknown = 0x6EFFFFFF,
  63. OMX_VIDEO_VP8ProfileMax = 0x7FFFFFFF
  64. } OMX_VIDEO_VP8PROFILETYPE;
  65. /** VP8 levels */
  66. typedef enum OMX_VIDEO_VP8LEVELTYPE {
  67. OMX_VIDEO_VP8Level_Version0 = 0x01,
  68. OMX_VIDEO_VP8Level_Version1 = 0x02,
  69. OMX_VIDEO_VP8Level_Version2 = 0x04,
  70. OMX_VIDEO_VP8Level_Version3 = 0x08,
  71. OMX_VIDEO_VP8LevelUnknown = 0x6EFFFFFF,
  72. OMX_VIDEO_VP8LevelMax = 0x7FFFFFFF
  73. } OMX_VIDEO_VP8LEVELTYPE;
  74. /** VP8 Param */
  75. typedef struct OMX_VIDEO_PARAM_VP8TYPE {
  76. OMX_U32 nSize;
  77. OMX_VERSIONTYPE nVersion;
  78. OMX_U32 nPortIndex;
  79. OMX_VIDEO_VP8PROFILETYPE eProfile;
  80. OMX_VIDEO_VP8LEVELTYPE eLevel;
  81. OMX_U32 nDCTPartitions;
  82. OMX_BOOL bErrorResilientMode;
  83. } OMX_VIDEO_PARAM_VP8TYPE;
  84. /** Structure for configuring VP8 reference frames */
  85. typedef struct OMX_VIDEO_VP8REFERENCEFRAMETYPE {
  86. OMX_U32 nSize;
  87. OMX_VERSIONTYPE nVersion;
  88. OMX_U32 nPortIndex;
  89. OMX_BOOL bPreviousFrameRefresh;
  90. OMX_BOOL bGoldenFrameRefresh;
  91. OMX_BOOL bAlternateFrameRefresh;
  92. OMX_BOOL bUsePreviousFrame;
  93. OMX_BOOL bUseGoldenFrame;
  94. OMX_BOOL bUseAlternateFrame;
  95. } OMX_VIDEO_VP8REFERENCEFRAMETYPE;
  96. /** Structure for querying VP8 reference frame type */
  97. typedef struct OMX_VIDEO_VP8REFERENCEFRAMEINFOTYPE {
  98. OMX_U32 nSize;
  99. OMX_VERSIONTYPE nVersion;
  100. OMX_U32 nPortIndex;
  101. OMX_BOOL bIsIntraFrame;
  102. OMX_BOOL bIsGoldenOrAlternateFrame;
  103. } OMX_VIDEO_VP8REFERENCEFRAMEINFOTYPE;
  104. #ifdef __cplusplus
  105. }
  106. #endif /* __cplusplus */
  107. #endif /* OMX_VideoExt_h */
  108. /* File EOF */