summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-09-28 11:32:16 -0700
committerAndreas Huber <andih@google.com>2012-09-28 11:33:17 -0700
commit7682a9c35a5e9acae738974ea3a73a4ca7796323 (patch)
treeb93da44c154bfffef78803729eacb76ece871a19 /include
parentcb094a783f14daae3378ac8aa7dc509980f037b2 (diff)
downloadframeworks_native-7682a9c35a5e9acae738974ea3a73a4ca7796323.zip
frameworks_native-7682a9c35a5e9acae738974ea3a73a4ca7796323.tar.gz
frameworks_native-7682a9c35a5e9acae738974ea3a73a4ca7796323.tar.bz2
Add a way to configure an OMX encoder to emit SPS/PPS before IDR frames.
Change-Id: I71ce254533c8e99bc54d199d8a9828397fe3d99d related-to-bug: 7245308
Diffstat (limited to 'include')
-rw-r--r--include/media/hardware/HardwareAPI.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/media/hardware/HardwareAPI.h b/include/media/hardware/HardwareAPI.h
index 6d5b727..cc43bf6 100644
--- a/include/media/hardware/HardwareAPI.h
+++ b/include/media/hardware/HardwareAPI.h
@@ -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