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

Issue 92703003: Support videos with JPEG color range in GPU YUV convert path. (Closed)

Created:
7 years ago by rileya (GONE FROM CHROMIUM)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, cc-bugs_chromium.org, scherkus (not reviewing)
Base URL:
https://chromium.googlesource.com/chromium/src.git@yuv_v2
Visibility:
Public.

Description

Support videos with JPEG color range in GPU YUV convert path. It's worth noting that the media_browsertests Yuv* tests compare video pixels with a reference image, but whether or not the hardware path is used, copying the pixels from the video into a canvas goes through the software path, so despite looking correct onscreen when GPU-accelerated, the JPEG color range video tests will still fail until the software path properly supports the JPEG color range. BUG=172898 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268010

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : Added to cc_messages and unit tests. #

Patch Set 5 : #

Patch Set 6 : jpeg_color_range->has_jpeg_color_range #

Total comments: 8

Patch Set 7 : Address comments #

Patch Set 8 : Whoops, forgot one. #

Total comments: 2

Patch Set 9 : #

Patch Set 10 : add tests #

Patch Set 11 : add dark_grey image #

Total comments: 1

Patch Set 12 : Add comment #

Total comments: 2

Patch Set 13 : 4 months later... rebase! #

Patch Set 14 : whoops, lost dark_grey.png during rebasing somehow. #

Total comments: 2

Patch Set 15 : Use ColorSpace enum, rather than a boolean for jpeg. #

Total comments: 7

Patch Set 16 : address comments/nits #

Patch Set 17 : Fix formatting error #

Patch Set 18 : Add missing 'f' to float literal to make VS happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -40 lines) Patch
M cc/layers/video_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -1 line 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +30 lines, -4 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +163 lines, -23 lines 0 comments Download
M cc/quads/draw_quad_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +14 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 11 12 13 14 15 3 chunks +11 lines, -2 lines 0 comments Download
M cc/quads/yuv_video_draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +6 lines, -2 lines 0 comments Download
A cc/test/data/dark_grey.png View 1 2 3 4 5 6 7 8 9 10 13 Binary file 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -1 line 0 comments Download
M content/common/cc_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -1 line 0 comments Download
M media/base/video_frame.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
rileya (GONE FROM CHROMIUM)
Note that this depends on: https://codereview.chromium.org/88403004/
7 years ago (2013-12-03 00:23:04 UTC) #1
danakj
https://codereview.chromium.org/92703003/diff/80001/cc/quads/yuv_video_draw_quad.h File cc/quads/yuv_video_draw_quad.h (right): https://codereview.chromium.org/92703003/diff/80001/cc/quads/yuv_video_draw_quad.h#newcode30 cc/quads/yuv_video_draw_quad.h:30: bool jpeg_color_range); This change should be represented in cc_messages.h ...
7 years ago (2013-12-03 00:31:47 UTC) #2
rileya (GONE FROM CHROMIUM)
> This change should be represented in cc_messages.h and cc_messages_unittest.cc Alright, done. +tsepez: please have ...
7 years ago (2013-12-03 01:22:58 UTC) #3
Tom Sepez
On 2013/12/03 01:22:58, rileya wrote: > > This change should be represented in cc_messages.h and ...
7 years ago (2013-12-03 02:21:58 UTC) #4
rileya (GONE FROM CHROMIUM)
On 2013/12/03 02:21:58, Tom Sepez wrote: > On 2013/12/03 01:22:58, rileya wrote: > > > ...
7 years ago (2013-12-03 19:08:54 UTC) #5
danakj
Given the discussion on https://codereview.chromium.org/88403004/ I'll wait for that to resolve before reviewing this, but ...
7 years ago (2013-12-03 19:15:47 UTC) #6
scherkus (not reviewing)
lgtm danakj: I believe you'll want to take a look at https://codereview.chromium.org/88403004/ and ell-gee-tee-emm the ...
7 years ago (2013-12-03 21:29:12 UTC) #7
danakj
https://codereview.chromium.org/92703003/diff/120001/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/92703003/diff/120001/cc/layers/video_layer_impl.cc#newcode176 cc/layers/video_layer_impl.cc:176: bool use_jpeg_range = frame_->format() == media::VideoFrame::YV12J; change this name ...
7 years ago (2013-12-03 21:35:33 UTC) #8
rileya (GONE FROM CHROMIUM)
Alright, I think I addressed everything. https://codereview.chromium.org/92703003/diff/120001/cc/output/renderer_pixeltest.cc File cc/output/renderer_pixeltest.cc (right): https://codereview.chromium.org/92703003/diff/120001/cc/output/renderer_pixeltest.cc#newcode470 cc/output/renderer_pixeltest.cc:470: y_resource, u_resource, v_resource, ...
7 years ago (2013-12-03 23:33:41 UTC) #9
danakj
https://codereview.chromium.org/92703003/diff/160001/cc/output/renderer_pixeltest.cc File cc/output/renderer_pixeltest.cc (right): https://codereview.chromium.org/92703003/diff/160001/cc/output/renderer_pixeltest.cc#newcode529 cc/output/renderer_pixeltest.cc:529: base::FilePath(FILE_PATH_LITERAL("green.png")), On 2013/12/03 23:33:41, rileya wrote: > Conveniently the ...
7 years ago (2013-12-03 23:39:04 UTC) #10
rileya (GONE FROM CHROMIUM)
On 2013/12/03 23:39:04, danakj wrote: > https://codereview.chromium.org/92703003/diff/160001/cc/output/renderer_pixeltest.cc > File cc/output/renderer_pixeltest.cc (right): > > https://codereview.chromium.org/92703003/diff/160001/cc/output/renderer_pixeltest.cc#newcode529 > ...
7 years ago (2013-12-04 20:37:47 UTC) #11
danakj
On Wed, Dec 4, 2013 at 3:37 PM, <rileya@chromium.org> wrote: > On 2013/12/03 23:39:04, danakj ...
7 years ago (2013-12-04 20:41:21 UTC) #12
rileya (GONE FROM CHROMIUM)
On 2013/12/04 20:41:21, danakj wrote: > On Wed, Dec 4, 2013 at 3:37 PM, <mailto:rileya@chromium.org> ...
7 years ago (2013-12-04 20:54:42 UTC) #13
danakj
LGTM https://codereview.chromium.org/92703003/diff/220001/cc/output/renderer_pixeltest.cc File cc/output/renderer_pixeltest.cc (right): https://codereview.chromium.org/92703003/diff/220001/cc/output/renderer_pixeltest.cc#newcode629 cc/output/renderer_pixeltest.cc:629: scoped_ptr<YUVVideoDrawQuad> yuv_quad = CreateTestYUVVideoDrawQuad( I like your // ...
7 years ago (2013-12-04 21:00:12 UTC) #14
scherkus (not reviewing)
rileya: checking in ... is this CL waiting on anything before landing?
6 years, 11 months ago (2014-01-06 19:33:59 UTC) #15
rileya (GONE FROM CHROMIUM)
On 2014/01/06 19:33:59, scherkus wrote: > rileya: checking in ... is this CL waiting on ...
6 years, 11 months ago (2014-01-06 19:49:11 UTC) #16
fbarchard
cool! full range 601 makes alot more sense than 'video' range of 16..240. but its ...
6 years, 11 months ago (2014-01-17 20:58:52 UTC) #17
fbarchard
https://codereview.chromium.org/92703003/diff/240001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/92703003/diff/240001/cc/output/gl_renderer.cc#newcode1728 cc/output/gl_renderer.cc:1728: 0.0f, -.34414f, 1.772f, matrix is transposed compared to the ...
6 years, 11 months ago (2014-01-17 23:33:07 UTC) #18
rileya (GONE FROM CHROMIUM)
Software path is finally ready to go, so I just rebased this. danakj: Please give ...
6 years, 7 months ago (2014-05-01 21:45:01 UTC) #19
danakj
LGTMstill
6 years, 7 months ago (2014-05-01 21:54:16 UTC) #20
Tom Sepez
Still LGTM.
6 years, 7 months ago (2014-05-01 21:56:48 UTC) #21
piman
https://codereview.chromium.org/92703003/diff/340001/cc/quads/yuv_video_draw_quad.h File cc/quads/yuv_video_draw_quad.h (right): https://codereview.chromium.org/92703003/diff/340001/cc/quads/yuv_video_draw_quad.h#newcode50 cc/quads/yuv_video_draw_quad.h:50: bool has_jpeg_color_range; It sounds like we could want to ...
6 years, 7 months ago (2014-05-01 21:59:51 UTC) #22
rileya (GONE FROM CHROMIUM)
Okay, switched to an enum for the color space, to allow for easier addition of ...
6 years, 7 months ago (2014-05-01 23:25:09 UTC) #23
Tom Sepez
https://codereview.chromium.org/92703003/diff/360001/cc/quads/yuv_video_draw_quad.h File cc/quads/yuv_video_draw_quad.h (right): https://codereview.chromium.org/92703003/diff/360001/cc/quads/yuv_video_draw_quad.h#newcode21 cc/quads/yuv_video_draw_quad.h:21: }; Generally, the way we do this is by ...
6 years, 7 months ago (2014-05-02 00:25:36 UTC) #24
piman
some nits, otherwise LGTM. https://codereview.chromium.org/92703003/diff/360001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/92703003/diff/360001/cc/output/gl_renderer.cc#newcode1780 cc/output/gl_renderer.cc:1780: float yuv_to_rgb_rec601[9] = { On ...
6 years, 7 months ago (2014-05-02 00:37:28 UTC) #25
fbarchard
https://codereview.chromium.org/92703003/diff/360001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/92703003/diff/360001/cc/output/gl_renderer.cc#newcode1784 cc/output/gl_renderer.cc:1784: 1.f, 1.f, 1.f, 0.0f, -.34414f, 1.772f, 1.402f, -.71414, 0.0f, ...
6 years, 7 months ago (2014-05-02 02:39:28 UTC) #26
rileya (GONE FROM CHROMIUM)
The CQ bit was checked by rileya@chromium.org
6 years, 7 months ago (2014-05-02 21:40:10 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rileya@chromium.org/92703003/380001
6 years, 7 months ago (2014-05-02 21:41:37 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 21:49:08 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium
6 years, 7 months ago (2014-05-02 21:49:09 UTC) #30
rileya (GONE FROM CHROMIUM)
The CQ bit was checked by rileya@chromium.org
6 years, 7 months ago (2014-05-02 21:59:06 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rileya@chromium.org/92703003/400001
6 years, 7 months ago (2014-05-02 21:59:48 UTC) #32
rileya (GONE FROM CHROMIUM)
The CQ bit was checked by rileya@chromium.org
6 years, 7 months ago (2014-05-02 22:45:24 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rileya@chromium.org/92703003/420001
6 years, 7 months ago (2014-05-02 22:45:38 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 22:56:58 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium
6 years, 7 months ago (2014-05-02 22:56:59 UTC) #36
rileya1
The CQ bit was checked by rileya@google.com
6 years, 7 months ago (2014-05-02 23:12:21 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rileya@chromium.org/92703003/420001
6 years, 7 months ago (2014-05-02 23:13:02 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 23:54:08 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 23:54:08 UTC) #40
rileya1
The CQ bit was checked by rileya@google.com
6 years, 7 months ago (2014-05-02 23:56:45 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rileya@chromium.org/92703003/420001
6 years, 7 months ago (2014-05-03 00:00:01 UTC) #42
commit-bot: I haz the power
6 years, 7 months ago (2014-05-03 02:26:02 UTC) #43
Message was sent while issue was closed.
Change committed as 268010

Powered by Google App Engine
This is Rietveld 408576698