diff options
author | Lajos Molnar <lajos@google.com> | 2015-07-21 00:37:21 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-21 00:37:21 +0000 |
commit | a6364e257d6b0be3c94819cd16fffa2d4d7c8150 (patch) | |
tree | 24f229db776a2971fa5167d8fe5ae813ca41ea0d /include | |
parent | 9ca52e34f742f6b8da936733626c334260c6edc8 (diff) | |
parent | f892f9141721a3805d18da2db0e1c17f1a99feb0 (diff) | |
download | frameworks_native-a6364e257d6b0be3c94819cd16fffa2d4d7c8150.zip frameworks_native-a6364e257d6b0be3c94819cd16fffa2d4d7c8150.tar.gz frameworks_native-a6364e257d6b0be3c94819cd16fffa2d4d7c8150.tar.bz2 |
am f892f914: Merge "omx: fix structure sizes to be the same on 32 and 64-bit builds" into mnc-dev
* commit 'f892f9141721a3805d18da2db0e1c17f1a99feb0':
omx: fix structure sizes to be the same on 32 and 64-bit builds
Diffstat (limited to 'include')
-rw-r--r-- | include/media/hardware/HardwareAPI.h | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/include/media/hardware/HardwareAPI.h b/include/media/hardware/HardwareAPI.h index 5d2201b..1008c22 100644 --- a/include/media/hardware/HardwareAPI.h +++ b/include/media/hardware/HardwareAPI.h @@ -100,7 +100,11 @@ struct StoreMetaDataInBuffersParams { // dynamic buffer handling. struct VideoGrallocMetadata { MetadataBufferType eType; // must be kMetadataBufferTypeGrallocSource +#ifdef OMX_ANDROID_COMPILE_AS_32BIT_ON_64BIT_PLATFORMS + OMX_PTR pHandle; +#else buffer_handle_t pHandle; +#endif }; // Legacy name for VideoGrallocMetadata struct. @@ -108,7 +112,11 @@ struct VideoDecoderOutputMetaData : public VideoGrallocMetadata {}; struct VideoNativeMetadata { MetadataBufferType eType; // must be kMetadataBufferTypeANWBuffer +#ifdef OMX_ANDROID_COMPILE_AS_32BIT_ON_64BIT_PLATFORMS + OMX_PTR pBuffer; +#else struct ANativeWindowBuffer* pBuffer; +#endif int nFenceFd; // -1 if unused }; @@ -196,17 +204,17 @@ struct MediaImage { }; Type mType; - size_t mNumPlanes; // number of planes - size_t mWidth; // width of largest plane (unpadded, as in nFrameWidth) - size_t mHeight; // height of largest plane (unpadded, as in nFrameHeight) - size_t mBitDepth; // useable bit depth + uint32_t mNumPlanes; // number of planes + uint32_t mWidth; // width of largest plane (unpadded, as in nFrameWidth) + uint32_t mHeight; // height of largest plane (unpadded, as in nFrameHeight) + uint32_t mBitDepth; // useable bit depth struct PlaneInfo { - size_t mOffset; // offset of first pixel of the plane in bytes - // from buffer offset - size_t mColInc; // column increment in bytes - size_t mRowInc; // row increment in bytes - size_t mHorizSubsampling; // subsampling compared to the largest plane - size_t mVertSubsampling; // subsampling compared to the largest plane + uint32_t mOffset; // offset of first pixel of the plane in bytes + // from buffer offset + uint32_t mColInc; // column increment in bytes + uint32_t mRowInc; // row increment in bytes + uint32_t mHorizSubsampling; // subsampling compared to the largest plane + uint32_t mVertSubsampling; // subsampling compared to the largest plane }; PlaneInfo mPlane[MAX_NUM_PLANES]; }; |