diff options
author | posciak@chromium.org <posciak@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-06 03:07:01 +0000 |
---|---|---|
committer | posciak@chromium.org <posciak@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-06 03:07:01 +0000 |
commit | 9bd72f5e2e02949d9c856e0021a47fcc7f9db32f (patch) | |
tree | 6e982c5afd008c8978f98154a02da21bb21cc4c9 /cc | |
parent | 3d38c27f68985ec04bc53be0e7e2c6d340678ea6 (diff) | |
download | chromium_src-9bd72f5e2e02949d9c856e0021a47fcc7f9db32f.zip chromium_src-9bd72f5e2e02949d9c856e0021a47fcc7f9db32f.tar.gz chromium_src-9bd72f5e2e02949d9c856e0021a47fcc7f9db32f.tar.bz2 |
Abstract and overhaul V4L2 HW encode classes.
The main goal of this CL is to abstract ExynosVideoEncodeAccelerator class into
a generic V4L2VideoEncodeAccelerator and extract the Exynos-specific image
processor (GSC) from it to a separate V4L2ImageProcessor class, and use it only
if the platform requires it.
Some remaining format hardcoding has to be addressed after adding proper device
capability enumeration.
- Add V4L2ImageProcessor class for interacting with hardware blocks that allow
image format conversion and/or scaling via the V4L2 API.
- Extract image conversion from ExynosVideoEncodeAccelerator.
- Turn ExynosVideoEncodeAccelerator into a generic V4L2VideoEncodeAccelerator
that can optionally use a V4L2ImageProcessor for color conversion if the
requested input format is not supported by the HW codec directly.
- Extend V4L2Device to understand different types of devices and add
format utility functions.
- Don't require EGLContext to create a V4L2Device.
- Make V4L2VideoEncodeAccelerator use V4L2Device.
- Add NV12 format to VideoFrame (but don't allow AllocateYUV() for it for now).
- Add an ability to wrap dmabufs in VideoFrame.
- Update veatest to use V4L2Device and vdatest for new changes.
BUG=345179
TEST=veatest, webrtc loopback
Review URL: https://codereview.chromium.org/236953003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268385 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc')
-rw-r--r-- | cc/resources/video_resource_updater.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/resources/video_resource_updater.cc b/cc/resources/video_resource_updater.cc index 75a2adb..f971ae8 100644 --- a/cc/resources/video_resource_updater.cc +++ b/cc/resources/video_resource_updater.cc @@ -73,6 +73,7 @@ bool VideoResourceUpdater::VerifyFrame( // Unacceptable inputs. ¯\(°_o)/¯ case media::VideoFrame::UNKNOWN: + case media::VideoFrame::NV12: break; } return false; |