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

Issue 2088273003: Video Color Managament (Closed)

Created:
4 years, 6 months ago by hubbe
Modified:
4 years, 4 months ago
Reviewers:
nasko, ccameron
CC:
chromium-reviews, rjkroege, posciak+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, cc-bugs_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Video Color Managament Creates a new class media::VideoColorSpace which can represent all h264 color spaces, we encode this into the metadata for a video frame and forward it all the way to gl_renderer.cc, where we use it to render the video correctly. BUG=622133 Committed: https://crrev.com/af57af3079ddbb21be992e839023ff6e45ec6ef4 Cr-Commit-Position: refs/heads/master@{#411297}

Patch Set 1 #

Patch Set 2 : basic functionality works #

Patch Set 3 : in progress #

Patch Set 4 : in progress #

Patch Set 5 : in progress #

Patch Set 6 : tests added #

Patch Set 7 : should work now! #

Patch Set 8 : bugfix #

Total comments: 4

Patch Set 9 : use gfx::ColorProfile #

Total comments: 8

Patch Set 10 : todo added #

Total comments: 2

Patch Set 11 : merge #

Patch Set 12 : log color space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -92 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M cc/ipc/cc_param_traits.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +5 lines, -0 lines 0 comments Download
M cc/ipc/cc_param_traits_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M cc/ipc/struct_traits_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/video_layer_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
A cc/output/color_lut_cache.h View 1 2 3 4 5 6 7 8 1 chunk +45 lines, -0 lines 0 comments Download
A cc/output/color_lut_cache.cc View 1 2 3 4 5 6 7 8 1 chunk +108 lines, -0 lines 0 comments Download
M cc/output/gl_renderer.h View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -2 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +50 lines, -9 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M cc/output/output_surface.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
M cc/output/output_surface.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 4 5 6 7 8 5 chunks +9 lines, -4 lines 0 comments Download
M cc/output/shader.h View 1 2 chunks +10 lines, -1 line 0 comments Download
M cc/output/shader.cc View 1 2 3 4 5 6 7 8 4 chunks +94 lines, -45 lines 0 comments Download
M cc/quads/draw_quad_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +28 lines, -8 lines 0 comments Download
M cc/quads/yuv_video_draw_quad.h View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -0 lines 0 comments Download
M cc/quads/yuv_video_draw_quad.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -0 lines 0 comments Download
M cc/test/render_pass_test_utils.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M media/base/media_switches.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M media/base/media_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M media/base/video_frame.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M media/base/video_frame.cc View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -13 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M media/video/gpu_memory_buffer_video_frame_pool.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/color_space.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/color_space.cc View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (24 generated)
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-20 23:24:24 UTC) #5
ccameron
The meat of this looks good. Couple comments on the plumbing https://codereview.chromium.org/2088273003/diff/140001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): ...
4 years, 5 months ago (2016-07-21 18:38:13 UTC) #15
hubbe
https://codereview.chromium.org/2088273003/diff/140001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/2088273003/diff/140001/cc/output/gl_renderer.cc#newcode2108 cc/output/gl_renderer.cc:2108: resource_provider_, quad->u_plane_resource_id(), GL_TEXTURE2, GL_LINEAR); On 2016/07/21 18:38:13, ccameron wrote: ...
4 years, 5 months ago (2016-07-21 19:05:31 UTC) #16
hubbe
Now uses gfx::ColorSpace. Probably still needs some other clean up though. PTAL.
4 years, 4 months ago (2016-08-05 23:10:50 UTC) #17
ccameron
lg in general -- the only thing that needs fixing IMO is the GL_TEXTURE_2D->GL_TEXTURE_3D bit. ...
4 years, 4 months ago (2016-08-08 18:45:07 UTC) #22
hubbe
+nasko for cc/ipc/cc_param_traits.cc cc/ipc/cc_param_traits_unittest.cc https://codereview.chromium.org/2088273003/diff/160001/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/2088273003/diff/160001/cc/layers/video_layer_impl.cc#newcode222 cc/layers/video_layer_impl.cc:222: render_pass->CreateAndAppendDrawQuad<TextureDrawQuad>(); On 2016/08/08 18:45:07, ccameron ...
4 years, 4 months ago (2016-08-08 19:45:38 UTC) #24
nasko
https://codereview.chromium.org/2088273003/diff/180001/cc/ipc/cc_param_traits.cc File cc/ipc/cc_param_traits.cc (right): https://codereview.chromium.org/2088273003/diff/180001/cc/ipc/cc_param_traits.cc#newcode939 cc/ipc/cc_param_traits.cc:939: l->append(", "); Shouldn't we also be logging the new ...
4 years, 4 months ago (2016-08-08 21:15:22 UTC) #25
hubbe
https://codereview.chromium.org/2088273003/diff/180001/cc/ipc/cc_param_traits.cc File cc/ipc/cc_param_traits.cc (right): https://codereview.chromium.org/2088273003/diff/180001/cc/ipc/cc_param_traits.cc#newcode939 cc/ipc/cc_param_traits.cc:939: l->append(", "); On 2016/08/08 21:15:21, nasko wrote: > Shouldn't ...
4 years, 4 months ago (2016-08-10 17:03:25 UTC) #26
nasko
IPC LGTM
4 years, 4 months ago (2016-08-10 20:30:05 UTC) #27
ccameron
lgtm as well I took a look back at the chrome-color threads, and found where ...
4 years, 4 months ago (2016-08-11 00:25:56 UTC) #28
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/2088273003/220001
4 years, 4 months ago (2016-08-11 00:27:30 UTC) #30
commit-bot: I haz the power
Your CL was about to rely on recently removed CQ feature(s): * master.tryserver.blink builder linux_blink_rel ...
4 years, 4 months ago (2016-08-11 00:27:33 UTC) #32
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/2088273003/220001
4 years, 4 months ago (2016-08-11 06:58:40 UTC) #35
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 4 months ago (2016-08-11 10:42:50 UTC) #37
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 10:44:19 UTC) #39
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/af57af3079ddbb21be992e839023ff6e45ec6ef4
Cr-Commit-Position: refs/heads/master@{#411297}

Powered by Google App Engine
This is Rietveld 408576698