summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include/SoftVideoDecoderOMXComponent.h
diff options
context:
space:
mode:
authorRonghua Wu <ronghuawu@google.com>2014-09-02 10:55:41 -0700
committerRonghua Wu <ronghuawu@google.com>2014-09-10 10:02:46 -0700
commitbf220f3e6e799f28d1599c3c5106e9e15631a91d (patch)
treee1f2f0be8d5082470b1d8b18a73694636ae24216 /media/libstagefright/include/SoftVideoDecoderOMXComponent.h
parent9007305003e689362749a264af2eafea80eb12a0 (diff)
downloadframeworks_av-bf220f3e6e799f28d1599c3c5106e9e15631a91d.zip
frameworks_av-bf220f3e6e799f28d1599c3c5106e9e15631a91d.tar.gz
frameworks_av-bf220f3e6e799f28d1599c3c5106e9e15631a91d.tar.bz2
stagefright: add adaptive playback support to SoftAVC decoder.
Also change SoftVPX decoder to use common handlePortSettingsChanged and copyYV12FrameToOutputBuffer method. Bug: 17326758 Change-Id: I6fb2ee8fb9291f69c70493b8558af341adc1f4b2
Diffstat (limited to 'media/libstagefright/include/SoftVideoDecoderOMXComponent.h')
-rw-r--r--media/libstagefright/include/SoftVideoDecoderOMXComponent.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/media/libstagefright/include/SoftVideoDecoderOMXComponent.h b/media/libstagefright/include/SoftVideoDecoderOMXComponent.h
index ee553d9..4a6ab63 100644
--- a/media/libstagefright/include/SoftVideoDecoderOMXComponent.h
+++ b/media/libstagefright/include/SoftVideoDecoderOMXComponent.h
@@ -63,7 +63,14 @@ protected:
OMX_U32 numOutputBuffers,
const char *mimeType);
- virtual void updatePortDefinitions();
+ virtual void updatePortDefinitions(bool updateCrop = true);
+
+ void handlePortSettingsChange(
+ bool *portWillReset, uint32_t width, uint32_t height, bool cropChanged = false);
+
+ void copyYV12FrameToOutputBuffer(
+ uint8_t *dst, const uint8_t *srcY, const uint8_t *srcU, const uint8_t *srcV,
+ size_t srcYStride, size_t srcUStride, size_t srcVStride);
enum {
kInputPortIndex = 0,