diff options
author | Ronghua Wu <ronghuawu@google.com> | 2014-09-24 14:55:23 -0700 |
---|---|---|
committer | Ronghua Wu <ronghuawu@google.com> | 2014-09-24 16:44:15 -0700 |
commit | d5a2f55034022f2d0425fa0701894d0c4787b726 (patch) | |
tree | 083ced109691ba794c8c4e595cc55e5f57314a96 /media/libstagefright/include | |
parent | 80ec934ae7d4e3a78af87554fdb77a58f6386ba0 (diff) | |
download | frameworks_av-d5a2f55034022f2d0425fa0701894d0c4787b726.zip frameworks_av-d5a2f55034022f2d0425fa0701894d0c4787b726.tar.gz frameworks_av-d5a2f55034022f2d0425fa0701894d0c4787b726.tar.bz2 |
stagefright: fix cropping handling for SoftAVC and SoftMEPEG4.
Bug: 17326758
Change-Id: I9b0c281d92cf1803e275b1768e9edab9404ea577
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r-- | media/libstagefright/include/SoftVideoDecoderOMXComponent.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/media/libstagefright/include/SoftVideoDecoderOMXComponent.h b/media/libstagefright/include/SoftVideoDecoderOMXComponent.h index 37b1fe1..9e97ebd 100644 --- a/media/libstagefright/include/SoftVideoDecoderOMXComponent.h +++ b/media/libstagefright/include/SoftVideoDecoderOMXComponent.h @@ -68,9 +68,14 @@ protected: uint32_t outputBufferWidth(); uint32_t outputBufferHeight(); + enum CropSettingsMode { + kCropUnSet = 0, + kCropSet, + kCropChanged, + }; void handlePortSettingsChange( bool *portWillReset, uint32_t width, uint32_t height, - bool cropChanged = false, bool fakeStride = false); + CropSettingsMode cropSettingsMode = kCropUnSet, bool fakeStride = false); void copyYV12FrameToOutputBuffer( uint8_t *dst, const uint8_t *srcY, const uint8_t *srcU, const uint8_t *srcV, |