summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/m4v_h263/dec/src
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-01-24 13:36:30 -0800
committerAndreas Huber <andih@google.com>2011-01-24 13:36:30 -0800
commitb9ff4b4f631239a6a37fe6588e025cb387150c0e (patch)
treeaa07166839a4dde2a400155c816e3fdeb2a13d0a /media/libstagefright/codecs/m4v_h263/dec/src
parente20e15bcfd0317f63ecf76e6b8e9fbd9196fde0b (diff)
downloadframeworks_av-b9ff4b4f631239a6a37fe6588e025cb387150c0e.zip
frameworks_av-b9ff4b4f631239a6a37fe6588e025cb387150c0e.tar.gz
frameworks_av-b9ff4b4f631239a6a37fe6588e025cb387150c0e.tar.bz2
Support non-multiple-of-16 dimensions in MPEG4/H.263 software decoder
Change-Id: Ia22ebce66d9c35de4b04c3eedc9495847796901d related-to-bug: 3384367
Diffstat (limited to 'media/libstagefright/codecs/m4v_h263/dec/src')
-rw-r--r--media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp b/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp
index 0c354d9..844bd14 100644
--- a/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp
+++ b/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp
@@ -722,6 +722,12 @@ OSCL_EXPORT_REF void PVGetVideoDimensions(VideoDecControls *decCtrl, int32 *disp
*display_height = video->displayHeight;
}
+OSCL_EXPORT_REF void PVGetBufferDimensions(VideoDecControls *decCtrl, int32 *width, int32 *height) {
+ VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
+ *width = video->width;
+ *height = video->height;
+}
+
/* ======================================================================== */
/* Function : PVGetVideoTimeStamp() */
/* Date : 04/27/2000, 08/29/2000 */