summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/on2/dec/SoftVPX.h
diff options
context:
space:
mode:
authorhkuang <hkuang@google.com>2013-06-24 11:21:17 -0700
committerHangyu Kuang <hkuang@google.com>2013-06-24 20:29:08 +0000
commit94705aff3c9eef58cbb72ec6fe5d2dcfd9481646 (patch)
treea6129de4a9abf49499bfc4639587a2627c0370ab /media/libstagefright/codecs/on2/dec/SoftVPX.h
parent078a540525f86517aefa4afc56e12fbd74e3823d (diff)
downloadframeworks_av-94705aff3c9eef58cbb72ec6fe5d2dcfd9481646.zip
frameworks_av-94705aff3c9eef58cbb72ec6fe5d2dcfd9481646.tar.gz
frameworks_av-94705aff3c9eef58cbb72ec6fe5d2dcfd9481646.tar.bz2
Adds VP9 decoding support for stagefright.
Also change the VP8 encoder role name from video_encoder.vpx to video_encoder.vp8 for future VP9 encoder support. Requires the change in frameworks/native and media_codecs.xml corresponding to the device. VP9 decoding test will be added to cts repo later.
Diffstat (limited to 'media/libstagefright/codecs/on2/dec/SoftVPX.h')
-rw-r--r--media/libstagefright/codecs/on2/dec/SoftVPX.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/on2/dec/SoftVPX.h b/media/libstagefright/codecs/on2/dec/SoftVPX.h
index 626307b..cd5eb28 100644
--- a/media/libstagefright/codecs/on2/dec/SoftVPX.h
+++ b/media/libstagefright/codecs/on2/dec/SoftVPX.h
@@ -24,6 +24,8 @@ namespace android {
struct SoftVPX : public SoftVideoDecoderOMXComponent {
SoftVPX(const char *name,
+ const char *componentRole,
+ OMX_VIDEO_CODINGTYPE codingType,
const OMX_CALLBACKTYPE *callbacks,
OMX_PTR appData,
OMX_COMPONENTTYPE **component);
@@ -38,6 +40,11 @@ private:
kNumBuffers = 4
};
+ enum {
+ MODE_VP8,
+ MODE_VP9
+ } mMode;
+
void *mCtx;
status_t initDecoder();