summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/HardwareAPI.h
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2010-10-29 15:19:29 -0700
committerJamie Gennis <jgennis@google.com>2010-11-01 16:54:01 -0700
commit044ace6bde97eb71ca5a5cae12a93c5b101c55f3 (patch)
tree53993cc2a5d93df92d6ef1580bf1a9349b4d8d65 /include/media/stagefright/HardwareAPI.h
parent3521e2202d76141c1c5b6db75bcc4d3cf32b4217 (diff)
downloadframeworks_base-044ace6bde97eb71ca5a5cae12a93c5b101c55f3.zip
frameworks_base-044ace6bde97eb71ca5a5cae12a93c5b101c55f3.tar.gz
frameworks_base-044ace6bde97eb71ca5a5cae12a93c5b101c55f3.tar.bz2
Stop using OMX_COLOR_FormatAndroidPrivateStart.
This removes the use (and definition) of the Android-private range of OMX color formats from Stagefright. Instead we will just be interpreting the video color format of an OMX port as an Android pixel format if the port is in native buffer mode. Change-Id: I3ea50703336a88249e7563bc7022dfedbeac506e
Diffstat (limited to 'include/media/stagefright/HardwareAPI.h')
-rw-r--r--include/media/stagefright/HardwareAPI.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/include/media/stagefright/HardwareAPI.h b/include/media/stagefright/HardwareAPI.h
index b009e1b..4fd281b 100644
--- a/include/media/stagefright/HardwareAPI.h
+++ b/include/media/stagefright/HardwareAPI.h
@@ -37,11 +37,11 @@ namespace android {
// buffers. This is the mode that will be used when CPU access to the buffer is
// required.
//
-// When Android native buffer use has been enabled, the OMX node must support
-// only color formats in the range [OMX_COLOR_FormatAndroidPrivateStart,
-// OMX_COLOR_FormatAndroidPrivateEnd). The node should then expect to receive
+// When Android native buffer use has been enabled for a given port, the video
+// color format for the port is to be interpreted as an Android pixel format
+// rather than an OMX color format. The node should then expect to receive
// UseAndroidNativeBuffer calls (via OMX_SetParameter) rather than UseBuffer
-// calls.
+// calls for that port.
struct EnableAndroidNativeBuffersParams {
OMX_U32 nSize;
OMX_VERSIONTYPE nVersion;
@@ -75,16 +75,6 @@ struct StoreMetaDataInBuffersParams {
OMX_BOOL bStoreMetaData;
};
-// Color formats in the range [OMX_COLOR_FormatAndroidPrivateStart,
-// OMX_COLOR_FormatAndroidPrivateEnd) will be converted to a gralloc pixel
-// format when used to allocate Android native buffers via gralloc. The
-// conversion is done by subtracting OMX_COLOR_FormatAndroidPrivateStart from
-// the color format reported by the codec.
-enum {
- OMX_COLOR_FormatAndroidPrivateStart = 0xA0000000,
- OMX_COLOR_FormatAndroidPrivateEnd = 0xB0000000,
-};
-
// A pointer to this struct is passed to OMX_SetParameter when the extension
// index for the 'OMX.google.android.index.useAndroidNativeBuffer' extension is
// given. This call will only be performed if a prior call was made with the