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

Issue 516463005: Add support for the Rec601 YUV color space to GrYUVtoRGBEffect. (Closed)

Created:
6 years, 3 months ago by rileya (GONE FROM CHROMIUM)
Modified:
6 years, 3 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Add support for the Rec601 YUV color space to GrYUVtoRGBEffect. Committed: https://skia.googlesource.com/skia/+/abaef86f2b37d8a939506a2076da07f6db456951

Patch Set 1 #

Patch Set 2 : remove misleading comment #

Total comments: 7

Patch Set 3 : fix enum naming #

Patch Set 4 : Use uniform #

Patch Set 5 : Plumb color space to ImageGenerator and PixelRef *YUV8Planes methods. #

Patch Set 6 : rebase #

Total comments: 6

Patch Set 7 : Move enum to SkImageInfo #

Total comments: 7

Patch Set 8 : use one image for gm #

Total comments: 1

Patch Set 9 : Whoops, remove extra include #

Patch Set 10 : ignore gm #

Patch Set 11 : fix build #

Patch Set 12 : use float literals to make VS happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -61 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M gm/yuvtorgbeffect.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +31 lines, -26 lines 0 comments Download
M include/core/SkImageGenerator.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
M include/core/SkImageInfo.h View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
M include/core/SkPixelRef.h View 1 2 3 4 5 6 2 chunks +8 lines, -3 lines 0 comments Download
M src/core/SkImageGenerator.cpp View 1 2 3 4 5 6 7 2 chunks +15 lines, -2 lines 0 comments Download
M src/core/SkPixelRef.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/SkGr.cpp View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download
M src/gpu/effects/GrYUVtoRGBEffect.h View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M src/gpu/effects/GrYUVtoRGBEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +54 lines, -16 lines 0 comments Download
M src/lazy/SkDiscardablePixelRef.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M tests/ImageGeneratorTest.cpp View 1 2 3 4 5 6 1 chunk +8 lines, -5 lines 0 comments Download

Messages

Total messages: 35 (6 generated)
rileya (GONE FROM CHROMIUM)
rileya@chromium.org changed reviewers: + bsalomon@google.com, senorblanco@chromium.org, sugoi@chromium.org
6 years, 3 months ago (2014-08-28 01:03:28 UTC) #1
rileya (GONE FROM CHROMIUM)
This is somewhat speculative at this point, but I'm looking at using Ganesh for chromium's ...
6 years, 3 months ago (2014-08-28 01:03:28 UTC) #2
bsalomon
Hi, Riley! :) It seems fine to me. I'm curious how the video frame will ...
6 years, 3 months ago (2014-08-28 13:33:26 UTC) #3
Stephen White
Seems ok. My comments are more just annoying/tangential questions. :) https://codereview.chromium.org/516463005/diff/20001/src/gpu/effects/GrYUVtoRGBEffect.cpp File src/gpu/effects/GrYUVtoRGBEffect.cpp (right): https://codereview.chromium.org/516463005/diff/20001/src/gpu/effects/GrYUVtoRGBEffect.cpp#newcode69 ...
6 years, 3 months ago (2014-08-28 15:11:06 UTC) #4
bsalomon
On 2014/08/28 13:33:26, bsalomon wrote: > > If we actually land this, the GM test ...
6 years, 3 months ago (2014-08-28 15:18:07 UTC) #5
rileya (GONE FROM CHROMIUM)
> Hi, Riley! :) Hey Brian! :) > It seems fine to me. I'm curious ...
6 years, 3 months ago (2014-08-28 21:05:57 UTC) #6
rileya (GONE FROM CHROMIUM)
Alright, looks like things work chromium-side, so giving this some more attention. It now uses ...
6 years, 3 months ago (2014-09-11 06:59:30 UTC) #7
reed1
enum SkYUVColorSpace(Type) { ... }; in SkImageInfo... ? (that's where we have some other "global" ...
6 years, 3 months ago (2014-09-11 14:58:56 UTC) #9
rileya (GONE FROM CHROMIUM)
No new patchset yet, but one comment response: https://codereview.chromium.org/516463005/diff/100001/src/core/SkImageGenerator.cpp File src/core/SkImageGenerator.cpp (right): https://codereview.chromium.org/516463005/diff/100001/src/core/SkImageGenerator.cpp#newcode103 src/core/SkImageGenerator.cpp:103: *colorSpace ...
6 years, 3 months ago (2014-09-11 17:38:38 UTC) #10
reed1
On 2014/09/11 17:38:38, rileya wrote: > No new patchset yet, but one comment response: > ...
6 years, 3 months ago (2014-09-11 17:47:06 UTC) #11
sugoi1
https://codereview.chromium.org/516463005/diff/100001/src/gpu/effects/GrYUVtoRGBEffect.cpp File src/gpu/effects/GrYUVtoRGBEffect.cpp (right): https://codereview.chromium.org/516463005/diff/100001/src/gpu/effects/GrYUVtoRGBEffect.cpp#newcode65 src/gpu/effects/GrYUVtoRGBEffect.cpp:65: fMatrixUni = builder->addUniform(GrGLProgramBuilder::kFragment_Visibility, Hi, sorry for the late comment: ...
6 years, 3 months ago (2014-09-11 17:57:23 UTC) #12
sugoi1
On 2014/09/11 17:57:23, sugoi1 wrote: > https://codereview.chromium.org/516463005/diff/100001/src/gpu/effects/GrYUVtoRGBEffect.cpp > File src/gpu/effects/GrYUVtoRGBEffect.cpp (right): > > https://codereview.chromium.org/516463005/diff/100001/src/gpu/effects/GrYUVtoRGBEffect.cpp#newcode65 > ...
6 years, 3 months ago (2014-09-11 17:58:12 UTC) #13
rileya (GONE FROM CHROMIUM)
Okay, I moved the color space enum to SkImageInfo. https://codereview.chromium.org/516463005/diff/100001/src/core/SkImageGenerator.cpp File src/core/SkImageGenerator.cpp (right): https://codereview.chromium.org/516463005/diff/100001/src/core/SkImageGenerator.cpp#newcode103 src/core/SkImageGenerator.cpp:103: ...
6 years, 3 months ago (2014-09-11 18:45:05 UTC) #14
reed1
API lgtm
6 years, 3 months ago (2014-09-11 19:04:32 UTC) #15
bsalomon
lgtm w/ a couple small comments. https://codereview.chromium.org/516463005/diff/120001/gm/yuvtorgbeffect.cpp File gm/yuvtorgbeffect.cpp (right): https://codereview.chromium.org/516463005/diff/120001/gm/yuvtorgbeffect.cpp#newcode146 gm/yuvtorgbeffect.cpp:146: DEF_GM( return SkNEW_ARGS(YUVtoRGBEffect, ...
6 years, 3 months ago (2014-09-11 20:17:17 UTC) #16
rileya (GONE FROM CHROMIUM)
https://codereview.chromium.org/516463005/diff/120001/gm/yuvtorgbeffect.cpp File gm/yuvtorgbeffect.cpp (right): https://codereview.chromium.org/516463005/diff/120001/gm/yuvtorgbeffect.cpp#newcode146 gm/yuvtorgbeffect.cpp:146: DEF_GM( return SkNEW_ARGS(YUVtoRGBEffect, (kJPEG_SkYUVColorSpace)); ) On 2014/09/11 20:17:17, bsalomon ...
6 years, 3 months ago (2014-09-11 20:43:40 UTC) #17
Stephen White
https://codereview.chromium.org/516463005/diff/140001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/516463005/diff/140001/include/core/SkImageGenerator.h#newcode13 include/core/SkImageGenerator.h:13: #include "SkPixelRef.h" Is this necessary? It looks like the ...
6 years, 3 months ago (2014-09-11 22:25:10 UTC) #18
rileya (GONE FROM CHROMIUM)
On 2014/09/11 22:25:10, Stephen White wrote: > https://codereview.chromium.org/516463005/diff/140001/include/core/SkImageGenerator.h > File include/core/SkImageGenerator.h (right): > > https://codereview.chromium.org/516463005/diff/140001/include/core/SkImageGenerator.h#newcode13 ...
6 years, 3 months ago (2014-09-11 22:38:03 UTC) #19
Stephen White
On 2014/09/11 22:38:03, rileya wrote: > On 2014/09/11 22:25:10, Stephen White wrote: > > > ...
6 years, 3 months ago (2014-09-11 23:06:08 UTC) #20
rileya (GONE FROM CHROMIUM)
> Sorry my mistake. The question stands, though: why include SkPixelRef.h? Whoops, *my* mistake, haha. ...
6 years, 3 months ago (2014-09-11 23:09:39 UTC) #21
bsalomon
https://codereview.chromium.org/516463005/diff/120001/gm/yuvtorgbeffect.cpp File gm/yuvtorgbeffect.cpp (right): https://codereview.chromium.org/516463005/diff/120001/gm/yuvtorgbeffect.cpp#newcode146 gm/yuvtorgbeffect.cpp:146: DEF_GM( return SkNEW_ARGS(YUVtoRGBEffect, (kJPEG_SkYUVColorSpace)); ) On 2014/09/11 20:43:40, rileya ...
6 years, 3 months ago (2014-09-12 00:19:05 UTC) #22
Stephen White
LGTM, but I'd like sugoi@ to take a look too. Alexis?
6 years, 3 months ago (2014-09-12 19:20:02 UTC) #23
sugoi1
On 2014/09/12 19:20:02, Stephen White wrote: > LGTM, but I'd like sugoi@ to take a ...
6 years, 3 months ago (2014-09-12 20:12:24 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/516463005/180001
6 years, 3 months ago (2014-09-12 23:54:36 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot on tryserver.skia (http://108.170.220.76:10117/builders/Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot/builds/1398)
6 years, 3 months ago (2014-09-13 00:02:12 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/516463005/200001
6 years, 3 months ago (2014-09-13 00:12:36 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-VS2013-x86-Debug-Trybot on tryserver.skia (http://108.170.220.76:10117/builders/Build-Win-VS2013-x86-Debug-Trybot/builds/1752)
6 years, 3 months ago (2014-09-13 00:33:34 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/516463005/220001
6 years, 3 months ago (2014-09-13 00:37:32 UTC) #34
commit-bot: I haz the power
6 years, 3 months ago (2014-09-13 00:46:02 UTC) #35
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as abaef86f2b37d8a939506a2076da07f6db456951

Powered by Google App Engine
This is Rietveld 408576698