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

Issue 1513393002: Add ability to extract YUV planes from SkImage (Closed)

Created:
5 years ago by bsalomon
Modified:
4 years, 10 months ago
Reviewers:
robertphillips, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : revert shader dump #

Patch Set 3 : resize gm #

Patch Set 4 : more #

Patch Set 5 : yet more #

Patch Set 6 : update #

Patch Set 7 : revert old gm #

Patch Set 8 : more #

Patch Set 9 : minor #

Total comments: 2

Patch Set 10 : rebase #

Total comments: 1

Patch Set 11 : add comment #

Patch Set 12 : make hacky raster version work #

Total comments: 2

Patch Set 13 : cleanup #

Patch Set 14 : Remove unnecessary MakeGray8 #

Patch Set 15 : cleanup #

Patch Set 16 : whitespace #

Total comments: 4

Patch Set 17 : Add SkRGBAToYUV files #

Patch Set 18 : rename #

Total comments: 36

Patch Set 19 : Rebase, address comments #

Patch Set 20 : Address comment #

Patch Set 21 : Address another comment #

Patch Set 22 : gm cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+970 lines, -236 lines) Patch
A gm/imagetoyuvplanes.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +111 lines, -0 lines 0 comments Download
M gm/yuvtorgbeffect.cpp View 1 2 3 4 5 2 chunks +7 lines, -7 lines 0 comments Download
M gyp/gpu.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -2 lines 0 comments Download
M gyp/utils.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M include/core/SkImage.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +7 lines, -0 lines 0 comments Download
M src/core/SkColorMatrixFilterRowMajor255.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +6 lines, -1 line 0 comments Download
M src/core/SkColorMatrixFilterRowMajor255.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +16 lines, -5 lines 0 comments Download
A src/gpu/GrTextureToYUVPlanes.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +19 lines, -0 lines 0 comments Download
A src/gpu/GrTextureToYUVPlanes.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +248 lines, -0 lines 0 comments Download
M src/gpu/GrYUVProvider.cpp View 1 2 3 4 5 2 chunks +7 lines, -7 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A src/gpu/effects/GrYUVEffect.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +50 lines, -0 lines 0 comments Download
A src/gpu/effects/GrYUVEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +391 lines, -0 lines 0 comments Download
M src/gpu/effects/GrYUVtoRGBEffect.h View 1 2 3 4 5 1 chunk +0 lines, -24 lines 0 comments Download
M src/gpu/effects/GrYUVtoRGBEffect.cpp View 1 2 3 4 5 1 chunk +0 lines, -185 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +18 lines, -0 lines 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -3 lines 0 comments Download
A src/utils/SkRGBAToYUV.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +21 lines, -0 lines 0 comments Download
A src/utils/SkRGBAToYUV.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +58 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (6 generated)
bsalomon
This isn't quite done. The GPU version works. I wasn't sure what approach to take ...
4 years, 11 months ago (2016-01-25 20:16:17 UTC) #3
reed1
what is driving the public api? https://codereview.chromium.org/1513393002/diff/160001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1513393002/diff/160001/include/core/SkImage.h#newcode157 include/core/SkImage.h:157: bool asYUV8Planes(const SkISize[3], ...
4 years, 11 months ago (2016-01-26 16:06:45 UTC) #5
bsalomon
https://codereview.chromium.org/1513393002/diff/180001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1513393002/diff/180001/include/core/SkImage.h#newcode157 include/core/SkImage.h:157: bool asYUV8Planes(const SkISize[3], void* const planes[3], const size_t rowBytes[3], ...
4 years, 11 months ago (2016-01-26 16:23:48 UTC) #6
bsalomon
https://codereview.chromium.org/1513393002/diff/160001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1513393002/diff/160001/include/core/SkImage.h#newcode157 include/core/SkImage.h:157: bool asYUV8Planes(const SkISize[3], void* const planes[3], const size_t rowBytes[3], ...
4 years, 11 months ago (2016-01-26 16:32:50 UTC) #7
bsalomon
The hacky cpu implementation now works (didn't realize SkColorMatrix's 5th column was unnormalized[!?])
4 years, 11 months ago (2016-01-27 18:57:19 UTC) #8
reed1
I wouldn't fret optimizing til later lgtm /w some comment/rowbytes suggestions https://codereview.chromium.org/1513393002/diff/220001/src/image/SkImage.cpp File src/image/SkImage.cpp (right): ...
4 years, 10 months ago (2016-01-28 22:12:45 UTC) #9
bsalomon
Please take another look.
4 years, 10 months ago (2016-01-29 16:52:55 UTC) #10
reed1
I like the single-row helper. makes things more compartmentalized. where is the SkRGBToYUV code implemented? ...
4 years, 10 months ago (2016-01-29 17:17:00 UTC) #11
bsalomon
Oops, forgot to add the new h/cpp to git. Updated. https://codereview.chromium.org/1513393002/diff/300001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1513393002/diff/300001/include/core/SkImage.h#newcode161 ...
4 years, 10 months ago (2016-01-29 17:36:42 UTC) #12
reed1
lgtm https://codereview.chromium.org/1513393002/diff/340001/src/utils/SkRGBAToYUV.h File src/utils/SkRGBAToYUV.h (right): https://codereview.chromium.org/1513393002/diff/340001/src/utils/SkRGBAToYUV.h#newcode16 src/utils/SkRGBAToYUV.h:16: void SkRGBAToYUV(const SkImage*, const SkISize [3], void* const ...
4 years, 10 months ago (2016-01-29 20:14:55 UTC) #13
robertphillips
https://codereview.chromium.org/1513393002/diff/340001/gm/imagetoyuvplanes.cpp File gm/imagetoyuvplanes.cpp (right): https://codereview.chromium.org/1513393002/diff/340001/gm/imagetoyuvplanes.cpp#newcode49 gm/imagetoyuvplanes.cpp:49: canvas->drawImage(rgbImage, kPad, kPad); // Test out 444, 422 and ...
4 years, 10 months ago (2016-01-29 20:33:13 UTC) #14
bsalomon
https://codereview.chromium.org/1513393002/diff/340001/gm/imagetoyuvplanes.cpp File gm/imagetoyuvplanes.cpp (right): https://codereview.chromium.org/1513393002/diff/340001/gm/imagetoyuvplanes.cpp#newcode49 gm/imagetoyuvplanes.cpp:49: canvas->drawImage(rgbImage, kPad, kPad); On 2016/01/29 20:33:13, robertphillips wrote: > ...
4 years, 10 months ago (2016-02-01 20:27:45 UTC) #15
robertphillips
lgtm
4 years, 10 months ago (2016-02-01 20:45:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1513393002/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1513393002/420001
4 years, 10 months ago (2016-02-01 20:59:08 UTC) #19
commit-bot: I haz the power
4 years, 10 months ago (2016-02-01 21:16:20 UTC) #21
Message was sent while issue was closed.
Committed patchset #22 (id:420001) as
https://skia.googlesource.com/skia/+/f267c1efe7de7a8e71404afde6cbf93c3808d267

Powered by Google App Engine
This is Rietveld 408576698