OSDN Git Service

Add a way to configure an OMX encoder to emit SPS/PPS before IDR frames.
authorAndreas Huber <andih@google.com>
Fri, 28 Sep 2012 18:32:16 +0000 (11:32 -0700)
committerAndreas Huber <andih@google.com>
Fri, 28 Sep 2012 18:33:17 +0000 (11:33 -0700)
Change-Id: I71ce254533c8e99bc54d199d8a9828397fe3d99d
related-to-bug: 7245308

include/media/hardware/HardwareAPI.h

index 6d5b727..cc43bf6 100644 (file)
@@ -105,6 +105,16 @@ struct GetAndroidNativeBufferUsageParams {
 // colorformat will be relayed by the GRalloc Buffers.
 // OMX_COLOR_FormatAndroidOpaque  = 0x7F000001,
 
+// A pointer to this struct is passed to OMX_SetParameter when the extension
+// index for the 'OMX.google.android.index.prependSPSPPSToIDRFrames' extension
+// is given.
+// A successful result indicates that future IDR frames will be prefixed by
+// SPS/PPS.
+struct PrependSPSPPSToIDRFramesParams {
+    OMX_U32 nSize;
+    OMX_VERSIONTYPE nVersion;
+    OMX_BOOL bEnable;
+};
 
 }  // namespace android