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

Issue 839523002: V4L2VDA: Generalize EGLImage import and query driver for output formats. (Closed)

Created:
5 years, 11 months ago by Pawel Osciak
Modified:
5 years, 11 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org, wuchengli
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/3b87d51779440abedbf5fd0578b7ea02b988d876 Cr-Commit-Position: refs/heads/master@{#310241}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -119 lines) Patch
M cc/resources/video_resource_updater.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/media/generic_v4l2_video_device.h View 1 chunk +23 lines, -22 lines 0 comments Download
M content/common/gpu/media/generic_v4l2_video_device.cc View 1 4 chunks +79 lines, -32 lines 0 comments Download
M content/common/gpu/media/tegra_v4l2_video_device.h View 1 chunk +23 lines, -22 lines 0 comments Download
M content/common/gpu/media/tegra_v4l2_video_device.cc View 2 chunks +11 lines, -8 lines 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.h View 3 chunks +8 lines, -1 line 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.cc View 1 6 chunks +35 lines, -13 lines 0 comments Download
M content/common/gpu/media/v4l2_video_device.h View 4 chunks +7 lines, -4 lines 0 comments Download
M content/common/gpu/media/v4l2_video_device.cc View 1 2 3 4 5 3 chunks +24 lines, -0 lines 0 comments Download
M media/base/video_frame.h View 1 2 3 5 2 chunks +4 lines, -1 line 0 comments Download
M media/base/video_frame.cc View 1 2 3 4 5 10 chunks +44 lines, -14 lines 0 comments Download
M media/blink/video_frame_compositor.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/skcanvas_video_renderer.cc View 4 chunks +4 lines, -1 line 0 comments Download
M media/mojo/interfaces/media_types.mojom View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M media/mojo/services/media_type_converters.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (16 generated)
Pawel Osciak
ptal
5 years, 11 months ago (2015-01-06 05:08:26 UTC) #2
wuchengli
Kuang-che will review this one.
5 years, 11 months ago (2015-01-06 06:46:29 UTC) #5
kcwu
https://codereview.chromium.org/839523002/diff/1/content/common/gpu/media/generic_v4l2_video_device.cc File content/common/gpu/media/generic_v4l2_video_device.cc (right): https://codereview.chromium.org/839523002/diff/1/content/common/gpu/media/generic_v4l2_video_device.cc#newcode142 content/common/gpu/media/generic_v4l2_video_device.cc:142: static uint32_t kEGLImageDrmFmtsSupported[] { = { "(Uniform) Initialization Syntax" ...
5 years, 11 months ago (2015-01-06 08:28:52 UTC) #7
Pawel Osciak
https://chromiumcodereview.appspot.com/839523002/diff/1/content/common/gpu/media/generic_v4l2_video_device.cc File content/common/gpu/media/generic_v4l2_video_device.cc (right): https://chromiumcodereview.appspot.com/839523002/diff/1/content/common/gpu/media/generic_v4l2_video_device.cc#newcode142 content/common/gpu/media/generic_v4l2_video_device.cc:142: static uint32_t kEGLImageDrmFmtsSupported[] { On 2015/01/06 08:28:52, kcwu wrote: ...
5 years, 11 months ago (2015-01-06 13:09:59 UTC) #8
Pawel Osciak
PTAL
5 years, 11 months ago (2015-01-06 13:10:32 UTC) #10
Pawel Osciak
reveman@: Please cc/resources/video_resource_updater.cc scherkus@: Please rest. Thank you.
5 years, 11 months ago (2015-01-06 13:11:11 UTC) #11
scherkus (not reviewing)
https://chromiumcodereview.appspot.com/839523002/diff/40001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://chromiumcodereview.appspot.com/839523002/diff/40001/media/base/video_frame.cc#newcode97 media/base/video_frame.cc:97: else if (format == VideoFrame::NV12 && plane == VideoFrame::kUVPlane) ...
5 years, 11 months ago (2015-01-06 21:30:08 UTC) #13
Pawel Osciak
All done, thanks. https://chromiumcodereview.appspot.com/839523002/diff/40001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://chromiumcodereview.appspot.com/839523002/diff/40001/media/base/video_frame.cc#newcode97 media/base/video_frame.cc:97: else if (format == VideoFrame::NV12 && ...
5 years, 11 months ago (2015-01-07 01:20:31 UTC) #14
Pawel Osciak
isherman@chromium.org: Please OWNERS for histograms. Thank you.
5 years, 11 months ago (2015-01-07 01:21:38 UTC) #16
reveman
cc lgtm
5 years, 11 months ago (2015-01-07 01:24:15 UTC) #17
Ilya Sherman
histograms.xml lgtm
5 years, 11 months ago (2015-01-07 01:45:49 UTC) #18
scherkus (not reviewing)
lgtm
5 years, 11 months ago (2015-01-07 03:33:50 UTC) #19
kcwu1
lgtm
5 years, 11 months ago (2015-01-07 03:36:26 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839523002/80001
5 years, 11 months ago (2015-01-07 03:38:13 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/47402)
5 years, 11 months ago (2015-01-07 03:47:26 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839523002/100001
5 years, 11 months ago (2015-01-07 03:55:39 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/110362) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/107061) android_aosp ...
5 years, 11 months ago (2015-01-07 03:58:26 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839523002/120001
5 years, 11 months ago (2015-01-07 04:32:59 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/30670)
5 years, 11 months ago (2015-01-07 04:44:21 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839523002/140001
5 years, 11 months ago (2015-01-07 05:29:16 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years, 11 months ago (2015-01-07 06:38:31 UTC) #36
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 06:39:24 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3b87d51779440abedbf5fd0578b7ea02b988d876
Cr-Commit-Position: refs/heads/master@{#310241}

Powered by Google App Engine
This is Rietveld 408576698