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

Issue 2841813002: Converting video color space enums to their corresponding gfx:color space eqvivalent. (Closed)

Created:
3 years, 8 months ago by Uzair
Modified:
3 years, 7 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Below change safely converts video color space enums directly to gfx color space enums and then calls gfx color constructor with updated values of primaries,transfer and matrix id. BUG=None CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2841813002 Cr-Commit-Position: refs/heads/master@{#470250} Committed: https://chromium.googlesource.com/chromium/src/+/f5978920bd00bc61544631be138f042d29aecbb4

Patch Set 1 #

Total comments: 4

Patch Set 2 : Converting video color space enums to their corresponding gfx color space eqvivalents. #

Total comments: 4

Patch Set 3 : Removed gfx::ColorSpace::CreateVideo() #

Total comments: 3

Patch Set 4 : Removed switch in ffmpeg_video_decoder.cc #

Patch Set 5 : Moved Invalid video color space test to media/ #

Patch Set 6 : Fixed ==> "warning C4701: potentially uninitialized local variable 'primary_id' used" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -180 lines) Patch
M cc/ipc/struct_traits_unittest.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M media/base/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M media/base/video_color_space.cc View 1 2 3 4 5 1 chunk +132 lines, -4 lines 0 comments Download
A media/base/video_color_space_unittest.cc View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M ui/gfx/color_space.h View 1 2 1 chunk +0 lines, -9 lines 0 comments Download
M ui/gfx/color_space.cc View 1 2 1 chunk +0 lines, -136 lines 0 comments Download
M ui/gfx/color_transform_unittest.cc View 1 2 3 4 1 chunk +0 lines, -27 lines 0 comments Download

Messages

Total messages: 37 (13 generated)
Uzair
On 2017/04/25 09:34:18, Uzair wrote: > mailto:uzair.jaleel@samsung.com changed reviewers: > + mailto:a.suchit@chromium.org, mailto:hubbe@chromium.org Dear Reviewers, ...
3 years, 8 months ago (2017-04-25 09:37:58 UTC) #3
a.suchit2
https://codereview.chromium.org/2841813002/diff/1/media/base/video_color_space.h File media/base/video_color_space.h (right): https://codereview.chromium.org/2841813002/diff/1/media/base/video_color_space.h#newcode116 media/base/video_color_space.h:116: MatrixID matrix = MatrixID::INVALID; For the small usage of ...
3 years, 8 months ago (2017-04-25 14:05:08 UTC) #4
Uzair
https://codereview.chromium.org/2841813002/diff/1/media/base/video_color_space.h File media/base/video_color_space.h (right): https://codereview.chromium.org/2841813002/diff/1/media/base/video_color_space.h#newcode116 media/base/video_color_space.h:116: MatrixID matrix = MatrixID::INVALID; On 2017/04/25 14:05:08, a.suchit2 wrote: ...
3 years, 8 months ago (2017-04-25 14:12:35 UTC) #5
a.suchit2
https://codereview.chromium.org/2841813002/diff/1/media/base/video_color_space.h File media/base/video_color_space.h (right): https://codereview.chromium.org/2841813002/diff/1/media/base/video_color_space.h#newcode116 media/base/video_color_space.h:116: MatrixID matrix = MatrixID::INVALID; On 2017/04/25 14:12:34, Uzair wrote: ...
3 years, 8 months ago (2017-04-25 14:45:51 UTC) #6
hubbe
NOT LGTM This CL is ugly and has no explanation. If you want to do ...
3 years, 8 months ago (2017-04-25 17:14:23 UTC) #7
Uzair
On 2017/04/25 17:14:23, hubbe wrote: > NOT LGTM > > This CL is ugly and ...
3 years, 8 months ago (2017-04-26 10:21:39 UTC) #8
hubbe
On 2017/04/26 10:21:39, Uzair wrote: > On 2017/04/25 17:14:23, hubbe wrote: > > NOT LGTM ...
3 years, 8 months ago (2017-04-26 18:21:31 UTC) #9
Uzair
On 2017/04/26 18:21:31, hubbe wrote: > On 2017/04/26 10:21:39, Uzair wrote: > > On 2017/04/25 ...
3 years, 7 months ago (2017-04-28 09:04:40 UTC) #10
hubbe
On 2017/04/28 09:04:40, Uzair wrote: > On 2017/04/26 18:21:31, hubbe wrote: > > On 2017/04/26 ...
3 years, 7 months ago (2017-04-28 17:15:36 UTC) #11
Uzair
On 2017/04/28 17:15:36, hubbe wrote: > On 2017/04/28 09:04:40, Uzair wrote: > > On 2017/04/26 ...
3 years, 7 months ago (2017-05-02 09:50:04 UTC) #13
hubbe
Almost there... https://codereview.chromium.org/2841813002/diff/20001/media/base/video_color_space.cc File media/base/video_color_space.cc (left): https://codereview.chromium.org/2841813002/diff/20001/media/base/video_color_space.cc#oldcode58 media/base/video_color_space.cc:58: return gfx::ColorSpace::CreateVideo(static_cast<int>(primaries), We should remove the CreateVideo() ...
3 years, 7 months ago (2017-05-02 17:15:44 UTC) #14
Uzair
Dear reviewers, PTAL Thanks https://codereview.chromium.org/2841813002/diff/20001/media/base/video_color_space.cc File media/base/video_color_space.cc (left): https://codereview.chromium.org/2841813002/diff/20001/media/base/video_color_space.cc#oldcode58 media/base/video_color_space.cc:58: return gfx::ColorSpace::CreateVideo(static_cast<int>(primaries), On 2017/05/02 17:15:44, ...
3 years, 7 months ago (2017-05-03 08:35:39 UTC) #17
danakj
+ccameron PTAL at ui/gfx/, I can stamp.
3 years, 7 months ago (2017-05-03 14:46:28 UTC) #19
ccameron
The ui/gfx parts lgtm, as long as media/ is okay taking on the extra logic ...
3 years, 7 months ago (2017-05-03 14:56:24 UTC) #20
danakj
Thanks, LGTM if hubbe is happy then.
3 years, 7 months ago (2017-05-03 14:57:14 UTC) #21
hubbe
https://codereview.chromium.org/2841813002/diff/40001/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): https://codereview.chromium.org/2841813002/diff/40001/media/filters/ffmpeg_video_decoder.cc#newcode190 media/filters/ffmpeg_video_decoder.cc:190: gfx::ColorSpace::PrimaryID primary_id; Don't duplucate this logic. Create a VideoColorSpace ...
3 years, 7 months ago (2017-05-03 18:17:28 UTC) #22
Uzair
Dear Hubbe, PTAL But the unit test case in color_transform_unittest.cc is failing. We tried below ...
3 years, 7 months ago (2017-05-04 11:29:37 UTC) #23
hubbe
On 2017/05/04 11:29:37, Uzair wrote: > Dear Hubbe, > > PTAL > > But the ...
3 years, 7 months ago (2017-05-04 17:19:24 UTC) #24
Uzair
On 2017/05/04 17:19:24, hubbe wrote: > On 2017/05/04 11:29:37, Uzair wrote: > > Dear Hubbe, ...
3 years, 7 months ago (2017-05-08 12:42:58 UTC) #25
hubbe
lgtm
3 years, 7 months ago (2017-05-08 17:22:40 UTC) #26
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/2841813002/80001
3 years, 7 months ago (2017-05-08 20:16:40 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/421044)
3 years, 7 months ago (2017-05-08 20:59:07 UTC) #31
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/2841813002/100001
3 years, 7 months ago (2017-05-09 04:25:39 UTC) #34
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 06:40:22 UTC) #37
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/f5978920bd00bc61544631be138f...

Powered by Google App Engine
This is Rietveld 408576698