diff options
author | Praveen Chavan <pchavan@codeaurora.org> | 2015-03-16 10:52:14 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-03-28 03:48:32 -0700 |
commit | a6e339be6cbfccd9dd08ef3bba9442cae93c521d (patch) | |
tree | 44c0e40b7ad94166359823a6503c3c8fc98d880f | |
parent | a8fbcdc67c956daa39373f1b8beaaf3ca87932b0 (diff) | |
download | android_frameworks_native-staging/cm-12.1.tar.gz android_frameworks_native-staging/cm-12.1.tar.bz2 android_frameworks_native-staging/cm-12.1.zip |
media/hardware/HardwareAPI.h: make MediaImage 64-bit compatiblestaging/cm-12.1
Use OMX_U32 in place of arch-dependant size_t.
Change-Id: Ib715bd959072bfbb8075c3105e027474af5c931e
-rw-r--r-- | include/media/hardware/HardwareAPI.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/media/hardware/HardwareAPI.h b/include/media/hardware/HardwareAPI.h index d5f42befe..4b6cd73e5 100644 --- a/include/media/hardware/HardwareAPI.h +++ b/include/media/hardware/HardwareAPI.h @@ -173,17 +173,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 + OMX_U32 mNumPlanes; // number of planes + OMX_U32 mWidth; // width of largest plane (unpadded, as in nFrameWidth) + OMX_U32 mHeight; // height of largest plane (unpadded, as in nFrameHeight) + OMX_U32 mBitDepth; // useable bit depth struct PlaneInfo { - size_t mOffset; // offset of first pixel of the plane in bytes + OMX_U32 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 + OMX_U32 mColInc; // column increment in bytes + OMX_U32 mRowInc; // row increment in bytes + OMX_U32 mHorizSubsampling; // subsampling compared to the largest plane + OMX_U32 mVertSubsampling; // subsampling compared to the largest plane }; PlaneInfo mPlane[MAX_NUM_PLANES]; }; |