Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Issue 2260123002: V4L2VDA: use YV12 as output format if processor supports it. (Closed)

Created:
4 years, 4 months ago by wuchengli
Modified:
4 years, 4 months ago
Reviewers:
kcwu, Pawel Osciak
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

V4L2VDA: use YV12 as output format if processor supports it. This CL adds the support of YV12 (V4L2_PIX_FMT_YVU420) as video output format. ArcGpuVideoDecodeAccelerator only supports single physical plane. Prefer YVU420 and NV12 over YVU420M and NV12M. We also prefer YVU420 over NV12 because chrome rendering supports only YV12. BUG=chrome-os-partner:56354 TEST=Run VDA unittest and play video on oak. Committed: https://crrev.com/8dfde51b86938d8e64941cd584dfe736c14e6005 Cr-Commit-Position: refs/heads/master@{#413703}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address kcwu's comment #

Total comments: 4

Patch Set 3 : address kcwu's comments #

Patch Set 4 : fix a typo. s/NV21M/NV12M/ #

Patch Set 5 : address Pawel's offline comment. Prefer YVU420>NV12>others #

Total comments: 4

Patch Set 6 : address kcwu's comment #

Patch Set 7 : improve comments #

Total comments: 4

Patch Set 8 : address Pawel's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -0 lines) Patch
M media/gpu/generic_v4l2_device.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/gpu/v4l2_device.cc View 3 chunks +9 lines, -0 lines 0 comments Download
M media/gpu/v4l2_video_decode_accelerator.cc View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (24 generated)
wuchengli
PTAL.
4 years, 4 months ago (2016-08-19 05:19:00 UTC) #3
kcwu
https://codereview.chromium.org/2260123002/diff/1/media/gpu/v4l2_video_decode_accelerator.cc File media/gpu/v4l2_video_decode_accelerator.cc (right): https://codereview.chromium.org/2260123002/diff/1/media/gpu/v4l2_video_decode_accelerator.cc#newcode2044 media/gpu/v4l2_video_decode_accelerator.cc:2044: image_processor.GetSupportedOutputFormats(); I'm wondering what if we simply push_front preferred ...
4 years, 4 months ago (2016-08-19 05:51:00 UTC) #4
wuchengli
https://codereview.chromium.org/2260123002/diff/1/media/gpu/v4l2_video_decode_accelerator.cc File media/gpu/v4l2_video_decode_accelerator.cc (right): https://codereview.chromium.org/2260123002/diff/1/media/gpu/v4l2_video_decode_accelerator.cc#newcode2044 media/gpu/v4l2_video_decode_accelerator.cc:2044: image_processor.GetSupportedOutputFormats(); On 2016/08/19 05:50:59, kcwu wrote: > I'm wondering ...
4 years, 4 months ago (2016-08-19 06:01:42 UTC) #5
kcwu
https://codereview.chromium.org/2260123002/diff/20001/media/gpu/v4l2_video_decode_accelerator.cc File media/gpu/v4l2_video_decode_accelerator.cc (right): https://codereview.chromium.org/2260123002/diff/20001/media/gpu/v4l2_video_decode_accelerator.cc#newcode2041 media/gpu/v4l2_video_decode_accelerator.cc:2041: const uint32_t kPreferredEGLImageFormat = V4L2_PIX_FMT_YVU420; could you add comment ...
4 years, 4 months ago (2016-08-19 06:27:33 UTC) #6
wuchengli
All done. PTAL. https://codereview.chromium.org/2260123002/diff/20001/media/gpu/v4l2_video_decode_accelerator.cc File media/gpu/v4l2_video_decode_accelerator.cc (right): https://codereview.chromium.org/2260123002/diff/20001/media/gpu/v4l2_video_decode_accelerator.cc#newcode2041 media/gpu/v4l2_video_decode_accelerator.cc:2041: const uint32_t kPreferredEGLImageFormat = V4L2_PIX_FMT_YVU420; On ...
4 years, 4 months ago (2016-08-21 08:14:42 UTC) #7
wuchengli
Done. PTAL.
4 years, 4 months ago (2016-08-22 07:44:58 UTC) #17
kcwu
https://codereview.chromium.org/2260123002/diff/80001/media/gpu/v4l2_video_decode_accelerator.cc File media/gpu/v4l2_video_decode_accelerator.cc (right): https://codereview.chromium.org/2260123002/diff/80001/media/gpu/v4l2_video_decode_accelerator.cc#newcode2047 media/gpu/v4l2_video_decode_accelerator.cc:2047: struct { I feel it's unnecessary to use struct. ...
4 years, 4 months ago (2016-08-22 08:07:00 UTC) #18
wuchengli
Done. https://codereview.chromium.org/2260123002/diff/80001/media/gpu/v4l2_video_decode_accelerator.cc File media/gpu/v4l2_video_decode_accelerator.cc (right): https://codereview.chromium.org/2260123002/diff/80001/media/gpu/v4l2_video_decode_accelerator.cc#newcode2047 media/gpu/v4l2_video_decode_accelerator.cc:2047: struct { On 2016/08/22 08:07:00, kcwu wrote: > ...
4 years, 4 months ago (2016-08-22 09:08:04 UTC) #19
kcwu
lgtm
4 years, 4 months ago (2016-08-23 03:08:11 UTC) #20
Pawel Osciak
lgtm % nits. Please also test on other ARM platforms. https://codereview.chromium.org/2260123002/diff/120001/media/gpu/v4l2_video_decode_accelerator.cc File media/gpu/v4l2_video_decode_accelerator.cc (right): https://codereview.chromium.org/2260123002/diff/120001/media/gpu/v4l2_video_decode_accelerator.cc#newcode2041 ...
4 years, 4 months ago (2016-08-23 05:22:00 UTC) #26
wuchengli
All done. Tested on veyron minnie, nyan big, and peach pit. https://codereview.chromium.org/2260123002/diff/120001/media/gpu/v4l2_video_decode_accelerator.cc File media/gpu/v4l2_video_decode_accelerator.cc (right): ...
4 years, 4 months ago (2016-08-23 08:52:33 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2260123002/140001
4 years, 4 months ago (2016-08-23 08:52:54 UTC) #34
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-23 10:04:41 UTC) #36
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 10:07:24 UTC) #38
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8dfde51b86938d8e64941cd584dfe736c14e6005
Cr-Commit-Position: refs/heads/master@{#413703}

Powered by Google App Engine
This is Rietveld 408576698