summaryrefslogtreecommitdiffstats
path: root/ppapi/api/dev
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-10 00:26:16 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-10 00:26:16 +0000
commit0f1388e5dac315f5f2057df49ba0ba1338bc3143 (patch)
tree4cf3579f42db02c6fd8a61b63a8e12118b278ae2 /ppapi/api/dev
parentd111e93688a8531eb6f3f48592dfbcb88a9a4fee (diff)
downloadchromium_src-0f1388e5dac315f5f2057df49ba0ba1338bc3143.zip
chromium_src-0f1388e5dac315f5f2057df49ba0ba1338bc3143.tar.gz
chromium_src-0f1388e5dac315f5f2057df49ba0ba1338bc3143.tar.bz2
<video> decode in hardware!
This uses the GpuVideoDecodeAccelerator machinery (already written to enable ppapi to take advantage of OpenMAX HW where available) to decode <video> data. This increases idle CPU from 20% to 45% on one particularly large (internal) test video (red0.mp4), on an ARM crosbook. HW decode is done on a best-effort basis; if the GPU code doesn't know how to deal with a codec/profile we still fall back to ffmpeg for decode. Because the vast majority of chrome installs will be on HW with no video decode support (yet) we only attempt HW video decode on platforms we know have a shot at it. BUG=104579 TEST=manual testing w/ video test matrix, trybots. Review URL: http://codereview.chromium.org/8686010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113895 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api/dev')
-rw-r--r--ppapi/api/dev/pp_video_dev.idl8
1 files changed, 5 insertions, 3 deletions
diff --git a/ppapi/api/dev/pp_video_dev.idl b/ppapi/api/dev/pp_video_dev.idl
index e505714..9c75d66 100644
--- a/ppapi/api/dev/pp_video_dev.idl
+++ b/ppapi/api/dev/pp_video_dev.idl
@@ -4,8 +4,7 @@
*/
/**
- * NOTE: these must be kept in sync with the versions in
- * media/video/video_decode_accelerator.h!
+ * NOTE: these must be kept in sync with the versions in media/!
*/
@@ -15,9 +14,11 @@
* Keep the values in this enum unique, as they imply format (h.264 vs. VP8,
* for example), and keep the values for a particular format grouped together
* for clarity.
+ * Note: Keep these in sync with media::VideoCodecProfile.
*/
[assert_size(4)]
enum PP_VideoDecoder_Profile {
+ PP_VIDEODECODER_PROFILE_UNKNOWN = -1,
PP_VIDEODECODER_H264PROFILE_NONE = 0,
PP_VIDEODECODER_H264PROFILE_BASELINE = 1,
PP_VIDEODECODER_H264PROFILE_MAIN = 2,
@@ -29,7 +30,8 @@ enum PP_VideoDecoder_Profile {
PP_VIDEODECODER_H264PROFILE_SCALABLEBASELINE = 8,
PP_VIDEODECODER_H264PROFILE_SCALABLEHIGH = 9,
PP_VIDEODECODER_H264PROFILE_STEREOHIGH = 10,
- PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH = 11
+ PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH = 11,
+ PP_VIDEODECODER_PROFILE_MAX = PP_VIDEODECODER_H264PROFILE_MULTIVIEWHIGH
};
/**