summaryrefslogtreecommitdiffstats
path: root/media/mojo/services
diff options
context:
space:
mode:
authorposciak <posciak@chromium.org>2015-01-06 22:37:59 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-07 06:38:41 +0000
commit3b87d51779440abedbf5fd0578b7ea02b988d876 (patch)
tree31272766cd5b178762729800fb1a2004100afbd5 /media/mojo/services
parent5eea335f462d8e8ae82dae916e426a63b070cb48 (diff)
downloadchromium_src-3b87d51779440abedbf5fd0578b7ea02b988d876.zip
chromium_src-3b87d51779440abedbf5fd0578b7ea02b988d876.tar.gz
chromium_src-3b87d51779440abedbf5fd0578b7ea02b988d876.tar.bz2
V4L2VDA: Generalize EGLImage import and query driver for output formats.
Generalize CreateEGLImage() from being NV12M-specific to support any format. Add a method to query whether current platform supports importing a given V4L2/DRM format into EGLImages and use it in V4L2VDA. Dynamically query the driver for supported V4L2 output formats and choose one we can use for EGLImage import. TEST=Video playback for affected platforms BUG=chromium:430638,chrome-os-partner:33728,chromium:350197 Review URL: https://codereview.chromium.org/839523002 Cr-Commit-Position: refs/heads/master@{#310241}
Diffstat (limited to 'media/mojo/services')
-rw-r--r--media/mojo/services/media_type_converters.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/mojo/services/media_type_converters.cc b/media/mojo/services/media_type_converters.cc
index b037f98..2735004 100644
--- a/media/mojo/services/media_type_converters.cc
+++ b/media/mojo/services/media_type_converters.cc
@@ -141,6 +141,7 @@ ASSERT_ENUM_EQ_RAW(VideoFrame::Format,
ASSERT_ENUM_EQ_RAW(VideoFrame::Format, VideoFrame::YV12J, VIDEO_FORMAT_YV12J);
ASSERT_ENUM_EQ_RAW(VideoFrame::Format, VideoFrame::NV12, VIDEO_FORMAT_NV12);
ASSERT_ENUM_EQ_RAW(VideoFrame::Format, VideoFrame::YV24, VIDEO_FORMAT_YV24);
+ASSERT_ENUM_EQ_RAW(VideoFrame::Format, VideoFrame::ARGB, VIDEO_FORMAT_ARGB);
ASSERT_ENUM_EQ_RAW(VideoFrame::Format,
VideoFrame::FORMAT_MAX,
VIDEO_FORMAT_FORMAT_MAX);