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

Issue 2173563002: Improve GL shader YUV adjustment. (Closed)

Created:
4 years, 5 months ago by jbauman
Modified:
4 years, 4 months ago
Reviewers:
hubbe, dcheng, piman
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve GL shader YUV adjustment. The raw texture data is from 0-255, so the constants used to adjust the normalized data must be divided by 255 instead of 256. For 10-bit-per-component video, the constants must be multiplied by 4 and divided by 1023. BUG=621325 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/aa35e3ec5b767a8cbf18740e96969b72cb7a9561 Cr-Commit-Position: refs/heads/master@{#409647}

Patch Set 1 #

Patch Set 2 : rebaseline tests #

Patch Set 3 : fix 10-bit calculations #

Patch Set 4 : rebaseline cc tests #

Total comments: 2

Patch Set 5 : post-review fixes #

Patch Set 6 : fix compile #

Total comments: 2

Patch Set 7 : switch to uint32_t #

Total comments: 1

Patch Set 8 : add dchecks #

Total comments: 1

Patch Set 9 : add ipc validation #

Patch Set 10 : change constants #

Patch Set 11 : use enum hack #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -35 lines) Patch
M cc/ipc/cc_param_traits.h View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M cc/ipc/cc_param_traits.cc View 1 2 3 4 5 6 7 8 1 chunk +65 lines, -0 lines 1 comment Download
M cc/ipc/cc_param_traits_macros.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -11 lines 0 comments Download
M cc/ipc/cc_param_traits_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
M cc/ipc/quads.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M cc/ipc/quads_struct_traits.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M cc/ipc/quads_struct_traits.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M cc/ipc/struct_traits_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -1 line 0 comments Download
M cc/layers/video_layer_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/video_layer_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -6 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 4 5 6 2 chunks +9 lines, -2 lines 0 comments Download
M cc/quads/draw_quad_unittest.cc View 1 2 3 4 5 6 6 chunks +26 lines, -6 lines 0 comments Download
M cc/quads/yuv_video_draw_quad.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -2 lines 0 comments Download
M cc/quads/yuv_video_draw_quad.cc View 1 2 3 4 5 6 4 chunks +6 lines, -2 lines 0 comments Download
M cc/resources/video_resource_updater.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M cc/test/data/intersecting_blue_green_squares_video.png View 1 Binary file 0 comments Download
M cc/test/data/yuv_stripes.png View 1 2 3 Binary file 0 comments Download
M cc/test/data/yuv_stripes_alpha.png View 1 Binary file 0 comments Download
M cc/test/data/yuv_stripes_clipped.png View 1 2 3 Binary file 0 comments Download
M cc/test/data/yuv_stripes_offset.png View 1 Binary file 0 comments Download
M cc/test/render_pass_test_utils.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 81 (62 generated)
jbauman
4 years, 5 months ago (2016-07-22 01:06:25 UTC) #10
piman
lgtm
4 years, 5 months ago (2016-07-22 02:03:39 UTC) #13
jbauman
PTAL. Actually I looked at the spec some more and it seems that the 10-bit ...
4 years, 4 months ago (2016-07-26 00:41:56 UTC) #23
piman
https://codereview.chromium.org/2173563002/diff/60001/cc/ipc/quads.mojom File cc/ipc/quads.mojom (right): https://codereview.chromium.org/2173563002/diff/60001/cc/ipc/quads.mojom#newcode96 cc/ipc/quads.mojom:96: uint32 bits_per_channel; You also need to modify the ParamTraits ...
4 years, 4 months ago (2016-07-26 06:46:48 UTC) #24
jbauman
On 2016/07/26 06:46:48, piman - slow reviews until 8-8 wrote: > https://codereview.chromium.org/2173563002/diff/60001/cc/ipc/quads.mojom > File cc/ipc/quads.mojom ...
4 years, 4 months ago (2016-07-26 23:32:25 UTC) #33
piman
lgtm
4 years, 4 months ago (2016-07-27 04:47:52 UTC) #34
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/2173563002/100001
4 years, 4 months ago (2016-07-27 21:05:00 UTC) #36
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-07-27 21:05:03 UTC) #38
jbauman
dcheng: cc/ipc IPC review.
4 years, 4 months ago (2016-07-27 21:09:03 UTC) #41
dcheng
https://codereview.chromium.org/2173563002/diff/100001/cc/ipc/quads_struct_traits.h File cc/ipc/quads_struct_traits.h (right): https://codereview.chromium.org/2173563002/diff/100001/cc/ipc/quads_struct_traits.h#newcode389 cc/ipc/quads_struct_traits.h:389: static float bits_per_channel(const cc::DrawQuad& input) { Isn't this a ...
4 years, 4 months ago (2016-07-28 01:54:26 UTC) #42
jbauman
PTAL. On 2016/07/28 01:54:26, dcheng (OOO Aug 1 - Aug 11) wrote: > https://codereview.chromium.org/2173563002/diff/100001/cc/ipc/quads_struct_traits.h > ...
4 years, 4 months ago (2016-07-29 00:31:45 UTC) #53
dcheng
https://codereview.chromium.org/2173563002/diff/120001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/2173563002/diff/120001/cc/output/gl_renderer.cc#newcode2266 cc/output/gl_renderer.cc:2266: float adjustment_multiplier = (1 << (quad->bits_per_channel - 8)) * ...
4 years, 4 months ago (2016-07-29 02:37:07 UTC) #54
jbauman
On 2016/07/29 02:37:07, dcheng (OOO Aug 1 - Aug 11) wrote: > https://codereview.chromium.org/2173563002/diff/120001/cc/output/gl_renderer.cc > File ...
4 years, 4 months ago (2016-07-30 00:28:59 UTC) #57
dcheng
https://codereview.chromium.org/2173563002/diff/140001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/2173563002/diff/140001/cc/output/gl_renderer.cc#newcode2267 cc/output/gl_renderer.cc:2267: DCHECK_LE(quad->bits_per_channel, 24u); Would it be possible to do this ...
4 years, 4 months ago (2016-07-30 01:26:37 UTC) #58
jbauman
On 2016/07/30 01:26:37, dcheng (OOO Aug 1 - Aug 11) wrote: > https://codereview.chromium.org/2173563002/diff/140001/cc/output/gl_renderer.cc > File ...
4 years, 4 months ago (2016-08-02 22:20:41 UTC) #73
dcheng
ipc/mojom lgtm i'm actually not 100% sure about the undefined behavior bit (normally I'd load ...
4 years, 4 months ago (2016-08-03 15:03:31 UTC) #74
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/2173563002/200001
4 years, 4 months ago (2016-08-03 21:14:26 UTC) #77
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-08-03 22:46:52 UTC) #79
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 22:48:07 UTC) #81
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/aa35e3ec5b767a8cbf18740e96969b72cb7a9561
Cr-Commit-Position: refs/heads/master@{#409647}

Powered by Google App Engine
This is Rietveld 408576698