Skip to content

Commit

Permalink
media/gpu: switch v4l2_jpeg_decode_accelerator to use multi-planar APIs
Browse files Browse the repository at this point in the history
This patch switches v4l2 JDA to use multi-planar APIs and buffers.

BUG=655890
BUG=chrome-os-partner:43703
TEST=Deploy my self-built chrome on device and test with hangout.
TEST=Pass jpeg_decode_accelerator_unittest.
R=henryhsu@chromium.org, posciak@chromium.org, wuchengli@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2559423002
Cr-Commit-Position: refs/heads/master@{#440610}
  • Loading branch information
jcliang authored and Commit bot committed Dec 23, 2016
1 parent e97bd86 commit b98a556
Show file tree
Hide file tree
Showing 4 changed files with 196 additions and 87 deletions.
2 changes: 1 addition & 1 deletion media/gpu/generic_v4l2_device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ void GenericV4L2Device::EnumerateDevicesForType(Type type) {
break;
case Type::kJpegDecoder:
device_pattern = kJpegDecoderDevicePattern;
buf_type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
buf_type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
break;
}

Expand Down
3 changes: 3 additions & 0 deletions media/gpu/v4l2_device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ VideoPixelFormat V4L2Device::V4L2PixFmtToVideoPixelFormat(uint32_t pix_fmt) {
case V4L2_PIX_FMT_YVU420:
return PIXEL_FORMAT_YV12;

case V4L2_PIX_FMT_YUV422M:
return PIXEL_FORMAT_I422;

case V4L2_PIX_FMT_RGB32:
return PIXEL_FORMAT_ARGB;

Expand Down
Loading

0 comments on commit b98a556

Please sign in to comment.