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

Issue 591313008: Add support for Rec709 color space videos in software YUV convert path. (Closed)

Created:
6 years, 2 months ago by rileya (GONE FROM CHROMIUM)
Modified:
5 years, 11 months ago
Reviewers:
danakj, DaleCurtis
CC:
chromium-reviews, feature-media-reviews_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

Add support for Rec709 color space videos in software YUV convert path. BUG=333619 Committed: https://crrev.com/4e30d62669c312dd6788ba23376b1e8181be0a0c Cr-Commit-Position: refs/heads/master@{#312454}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase! #

Patch Set 3 : Add test #

Patch Set 4 : Clean up some bad rebasing... #

Total comments: 9

Patch Set 5 : Fix rec709 coefficients #

Total comments: 1

Patch Set 6 : Add test file (hopefully not too large for rietveld...) #

Patch Set 7 : rebase #

Patch Set 8 : Fix rebase mistake #

Patch Set 9 : Get rid of static YUV lookup tables (and many lines of macros) #

Patch Set 10 : Cleanup #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : Fix matrix error #

Total comments: 10

Patch Set 15 : address comments #

Total comments: 2

Patch Set 16 : Add raw pointers #

Patch Set 17 : rebase #

Patch Set 18 : fix gn #

Patch Set 19 : Fix media_nacl.gyp #

Patch Set 20 : re-add test video #

Patch Set 21 : Re-add test that was lost in rebase :( #

Patch Set 22 : Fix mojo #

Patch Set 23 : remove unused vars in asm #

Patch Set 24 : add enum to mojom #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -887 lines) Patch
M cc/resources/video_resource_updater.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/media/media_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -2 lines 0 comments Download
M media/base/simd/convert_rgb_to_yuv_sse2.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -1 line 0 comments Download
M media/base/simd/convert_yuv_to_rgb.h View 1 2 3 4 5 6 7 8 6 chunks +38 lines, -42 lines 0 comments Download
M media/base/simd/convert_yuv_to_rgb_c.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 12 chunks +33 lines, -32 lines 0 comments Download
M media/base/simd/convert_yuv_to_rgb_sse.asm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/base/simd/convert_yuv_to_rgb_x86.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M media/base/simd/convert_yuva_to_argb_mmx.asm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/base/simd/linear_scale_yuv_to_rgb_mmx.asm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -1 line 0 comments Download
M media/base/simd/scale_yuv_to_rgb_mmx.asm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/base/simd/scale_yuv_to_rgb_mmx.inc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -2 lines 0 comments Download
M media/base/simd/scale_yuv_to_rgb_sse.asm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/base/simd/scale_yuv_to_rgb_sse2_x64.asm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -1 line 0 comments Download
M media/base/simd/yuv_to_rgb_table.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -27 lines 0 comments Download
M media/base/simd/yuv_to_rgb_table.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -669 lines 0 comments Download
M media/base/video_frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -6 lines 0 comments Download
M media/base/video_frame.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +8 lines, -1 line 0 comments Download
M media/base/yuv_convert.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -5 lines 0 comments Download
M media/base/yuv_convert.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +131 lines, -40 lines 0 comments Download
M media/base/yuv_convert_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -1 line 0 comments Download
M media/blink/video_frame_compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 4 5 6 1 chunk +7 lines, -1 line 0 comments Download
M media/filters/skcanvas_video_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +69 lines, -45 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -2 lines 0 comments Download
M media/media_nacl.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -2 lines 0 comments Download
M media/mojo/interfaces/media_types.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -1 line 0 comments Download
M media/mojo/services/media_type_converters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M media/test/data/blackwhite.html View 1 2 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
A media/test/data/blackwhite_yuv420p_709.mp4 View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Binary file 0 comments Download

Messages

Total messages: 44 (15 generated)
rileya (GONE FROM CHROMIUM)
Not quite sure about this, it's probably going to be best in the long run ...
6 years, 2 months ago (2014-09-29 18:15:14 UTC) #2
scherkus (not reviewing)
sorry -- this fell off my radar we should also add a YUV test in ...
6 years, 2 months ago (2014-10-01 16:39:34 UTC) #3
rileya (GONE FROM CHROMIUM)
Add test
6 years ago (2014-12-13 01:36:27 UTC) #4
rileya (GONE FROM CHROMIUM)
Clean up some bad rebasing...
6 years ago (2014-12-13 01:41:09 UTC) #5
rileya (GONE FROM CHROMIUM)
Bringing this CL back to life, rebased and added a test. PTAL. +danakj: please have ...
6 years ago (2014-12-13 01:48:46 UTC) #7
danakj
cc/ LGTM
6 years ago (2014-12-15 16:44:37 UTC) #8
DaleCurtis
https://codereview.chromium.org/591313008/diff/60001/media/base/simd/yuv_to_rgb_table.cc File media/base/simd/yuv_to_rgb_table.cc (right): https://codereview.chromium.org/591313008/diff/60001/media/base/simd/yuv_to_rgb_table.cc#newcode404 media/base/simd/yuv_to_rgb_table.cc:404: // Rec709 color space version: Are you able to ...
6 years ago (2014-12-15 18:47:34 UTC) #10
rileya (GONE FROM CHROMIUM)
https://codereview.chromium.org/591313008/diff/60001/media/base/simd/yuv_to_rgb_table.cc File media/base/simd/yuv_to_rgb_table.cc (right): https://codereview.chromium.org/591313008/diff/60001/media/base/simd/yuv_to_rgb_table.cc#newcode404 media/base/simd/yuv_to_rgb_table.cc:404: // Rec709 color space version: On 2014/12/15 18:47:34, DaleCurtis ...
6 years ago (2014-12-16 22:05:59 UTC) #11
DaleCurtis
+watk: Can you patch this in to your hw decode fallback and see if the ...
6 years ago (2014-12-16 22:20:44 UTC) #12
scherkus (not reviewing)
[ removing myself from reviewers as Mr. Curtis has this on lockdown ]
6 years ago (2014-12-16 22:32:32 UTC) #14
watk
On 2014/12/16 22:20:44, DaleCurtis wrote: > +watk: Can you patch this in to your hw ...
6 years ago (2014-12-17 21:10:22 UTC) #15
watk
On 2014/12/17 21:10:22, watk wrote: > On 2014/12/16 22:20:44, DaleCurtis wrote: > > +watk: Can ...
6 years ago (2014-12-17 21:21:41 UTC) #16
rileya (GONE FROM CHROMIUM)
dalecurtis@, mind having a quick peek again? I replaced the static YUV->RGB lookup tables with ...
5 years, 11 months ago (2015-01-07 21:37:45 UTC) #17
DaleCurtis
https://codereview.chromium.org/591313008/diff/240001/media/base/yuv_convert.cc File media/base/yuv_convert.cc (right): https://codereview.chromium.org/591313008/diff/240001/media/base/yuv_convert.cc#newcode115 media/base/yuv_convert.cc:115: static const int16* g_table_rec601 = 0; NULL here and ...
5 years, 11 months ago (2015-01-08 01:36:57 UTC) #18
rileya (GONE FROM CHROMIUM)
https://codereview.chromium.org/591313008/diff/240001/media/base/yuv_convert.cc File media/base/yuv_convert.cc (right): https://codereview.chromium.org/591313008/diff/240001/media/base/yuv_convert.cc#newcode115 media/base/yuv_convert.cc:115: static const int16* g_table_rec601 = 0; On 2015/01/08 01:36:57, ...
5 years, 11 months ago (2015-01-12 21:46:21 UTC) #19
DaleCurtis
lgtm https://codereview.chromium.org/591313008/diff/260001/media/base/yuv_convert.cc File media/base/yuv_convert.cc (right): https://codereview.chromium.org/591313008/diff/260001/media/base/yuv_convert.cc#newcode157 media/base/yuv_convert.cc:157: return g_table_rec601.Get().table.data_as<int16>(); Each .Get() requires some atomic operations, ...
5 years, 11 months ago (2015-01-12 22:00:01 UTC) #20
rileya (GONE FROM CHROMIUM)
https://codereview.chromium.org/591313008/diff/260001/media/base/yuv_convert.cc File media/base/yuv_convert.cc (right): https://codereview.chromium.org/591313008/diff/260001/media/base/yuv_convert.cc#newcode157 media/base/yuv_convert.cc:157: return g_table_rec601.Get().table.data_as<int16>(); On 2015/01/12 22:00:01, DaleCurtis wrote: > Each ...
5 years, 11 months ago (2015-01-20 23:23:04 UTC) #21
DaleCurtis
lgtm
5 years, 11 months ago (2015-01-20 23:26:50 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/591313008/300001
5 years, 11 months ago (2015-01-21 00:19:58 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/591313008/320001
5 years, 11 months ago (2015-01-21 00:31:04 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_rel/builds/7288) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/272) linux_chromium_gn_rel ...
5 years, 11 months ago (2015-01-21 00:43:16 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/591313008/330001
5 years, 11 months ago (2015-01-21 01:26:14 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/591313008/370001
5 years, 11 months ago (2015-01-21 18:37:58 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/34640) android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/51349) android_compile_rel ...
5 years, 11 months ago (2015-01-21 18:51:44 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/591313008/410001
5 years, 11 months ago (2015-01-21 19:08:17 UTC) #38
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/51633)
5 years, 11 months ago (2015-01-21 19:19:15 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/591313008/430001
5 years, 11 months ago (2015-01-21 20:07:42 UTC) #42
commit-bot: I haz the power
Committed patchset #24 (id:430001)
5 years, 11 months ago (2015-01-21 21:18:08 UTC) #43
commit-bot: I haz the power
5 years, 11 months ago (2015-01-21 21:19:13 UTC) #44
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/4e30d62669c312dd6788ba23376b1e8181be0a0c
Cr-Commit-Position: refs/heads/master@{#312454}

Powered by Google App Engine
This is Rietveld 408576698