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

Issue 1549473003: Add getYUV8Planes() API to SkCodec (Closed)

Created:
5 years ago by msarett
Modified:
4 years, 11 months ago
Reviewers:
scroggo, bsalomon, 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 : #

Total comments: 5

Patch Set 2 : Add support for progressive images #

Patch Set 3 : Remove random extra file :) #

Total comments: 52

Patch Set 4 : queryYUV8() returns size, widthBytes, and colorSpace #

Total comments: 7

Patch Set 5 : Respond to nits I missed #

Patch Set 6 : Rebase #

Patch Set 7 : Add a test to DM #

Total comments: 19

Patch Set 8 : Response to comments #

Total comments: 6

Patch Set 9 : Combined the structs #

Total comments: 9

Patch Set 10 : Less comments #

Patch Set 11 : Fix return value #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -14 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 6 7 3 chunks +20 lines, -3 lines 0 comments Download
M dm/DMSrcSink.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 4 5 6 7 5 chunks +38 lines, -7 lines 0 comments Download
M include/codec/SkCodec.h View 1 2 3 4 5 6 7 8 9 3 chunks +72 lines, -2 lines 0 comments Download
A resources/cropped_mandrill.jpg View Binary file 0 comments Download
A resources/mandrill_h1v1.jpg View Binary file 0 comments Download
A resources/mandrill_h2v1.jpg View Binary file 0 comments Download
M src/codec/SkCodecImageGenerator.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M src/codec/SkCodecImageGenerator.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +59 lines, -2 lines 0 comments Download
M src/codec/SkJpegCodec.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M src/codec/SkJpegCodec.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +193 lines, -0 lines 0 comments Download
M tests/JpegTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +111 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 45 (15 generated)
msarett
This is different than the API used throughout the rest of Skia. SkImageDecoder Example: SkISize ...
5 years ago (2015-12-22 21:01:36 UTC) #4
bsalomon
On 2015/12/22 21:01:36, msarett wrote: > This is different than the API used throughout the ...
5 years ago (2015-12-23 14:58:49 UTC) #5
reed1
https://codereview.chromium.org/1549473003/diff/60001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1549473003/diff/60001/include/codec/SkCodec.h#newcode305 include/codec/SkCodec.h:305: Result getYUV8Planes(SkISize sizes[3], void* pixels[3], size_t rowBytes[3], can sizes[] ...
4 years, 11 months ago (2016-01-04 15:50:55 UTC) #6
scroggo
In addition, should we update DM to test getYUV? Or leave that to a separate ...
4 years, 11 months ago (2016-01-04 18:29:16 UTC) #7
msarett
Just responding to the API comments. I think we ought to nail that down first. ...
4 years, 11 months ago (2016-01-04 21:46:46 UTC) #8
msarett
PTAL. All the parameters to getYUV8Planes() are const except for void* planes[3]. "In addition, should ...
4 years, 11 months ago (2016-01-12 14:25:27 UTC) #10
scroggo
I had a couple of nits that did not get addressed in the last patch ...
4 years, 11 months ago (2016-01-13 19:34:48 UTC) #11
msarett
> I had a couple of nits that did not get addressed in the last ...
4 years, 11 months ago (2016-01-13 20:50:25 UTC) #12
scroggo
> I agree that the testing is inadequate without adding > drawing tests to DM. ...
4 years, 11 months ago (2016-01-13 21:10:46 UTC) #13
msarett
On 2016/01/13 21:10:46, scroggo wrote: > > I agree that the testing is inadequate without ...
4 years, 11 months ago (2016-01-15 19:21:26 UTC) #16
msarett
I've landed SkCodecImageGenerator and used it to add a test to DM. https://codereview.chromium.org/1549473003/diff/200001/src/codec/SkCodecImageGenerator.cpp File src/codec/SkCodecImageGenerator.cpp ...
4 years, 11 months ago (2016-01-15 19:22:03 UTC) #17
scroggo
https://codereview.chromium.org/1549473003/diff/200001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (left): https://codereview.chromium.org/1549473003/diff/200001/dm/DMSrcSink.cpp#oldcode544 dm/DMSrcSink.cpp:544: // TODO: Once we implement GPU paths (e.g. JPEG ...
4 years, 11 months ago (2016-01-19 18:37:48 UTC) #18
msarett
https://codereview.chromium.org/1549473003/diff/200001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (left): https://codereview.chromium.org/1549473003/diff/200001/dm/DMSrcSink.cpp#oldcode544 dm/DMSrcSink.cpp:544: // TODO: Once we implement GPU paths (e.g. JPEG ...
4 years, 11 months ago (2016-01-19 22:35:27 UTC) #19
scroggo
lgtm https://codereview.chromium.org/1549473003/diff/200001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1549473003/diff/200001/dm/DMSrcSink.cpp#newcode245 dm/DMSrcSink.cpp:245: return (flags.type != SinkFlags::kRaster || flags.approach != SinkFlags::kDirect) ...
4 years, 11 months ago (2016-01-21 17:27:28 UTC) #20
reed1
Can you combine the set of sizes and set of widthytes into a single struct, ...
4 years, 11 months ago (2016-01-21 18:36:48 UTC) #21
msarett
I combined Sizes and WidthBytes into a single YUVSizeInfo struct. https://codereview.chromium.org/1549473003/diff/220001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1549473003/diff/220001/include/codec/SkCodec.h#newcode283 ...
4 years, 11 months ago (2016-01-21 19:35:05 UTC) #22
reed1
https://codereview.chromium.org/1549473003/diff/240001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1549473003/diff/240001/include/codec/SkCodec.h#newcode280 include/codec/SkCodec.h:280: struct YUVSizeInfo { Just so I understand the difference... ...
4 years, 11 months ago (2016-01-22 16:01:46 UTC) #23
msarett
https://codereview.chromium.org/1549473003/diff/240001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1549473003/diff/240001/include/codec/SkCodec.h#newcode280 include/codec/SkCodec.h:280: struct YUVSizeInfo { On 2016/01/22 16:01:46, reed1 wrote: > ...
4 years, 11 months ago (2016-01-22 16:14:14 UTC) #24
reed1
Is 8-byte alignment (for the rows) ALWAYS the correct answer for all codecs? I assumed ...
4 years, 11 months ago (2016-01-22 16:49:37 UTC) #25
msarett
On 2016/01/22 16:49:37, reed1 wrote: > Is 8-byte alignment (for the rows) ALWAYS the correct ...
4 years, 11 months ago (2016-01-22 16:54:09 UTC) #26
reed1
If we're going to pass some of the spec for the memory layout (e.g. rowbytes) ...
4 years, 11 months ago (2016-01-22 18:37:56 UTC) #27
reed1
https://codereview.chromium.org/1549473003/diff/240001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1549473003/diff/240001/include/codec/SkCodec.h#newcode336 include/codec/SkCodec.h:336: * the width of the memory allocated be padded ...
4 years, 11 months ago (2016-01-22 18:40:16 UTC) #28
msarett
https://codereview.chromium.org/1549473003/diff/240001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1549473003/diff/240001/include/codec/SkCodec.h#newcode312 include/codec/SkCodec.h:312: if (nullptr == sizeInfo) { On 2016/01/22 16:14:14, msarett ...
4 years, 11 months ago (2016-01-22 21:08:46 UTC) #29
reed1
lgtm
4 years, 11 months ago (2016-01-22 21:50:40 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1549473003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1549473003/260001
4 years, 11 months ago (2016-01-22 22:17:02 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/5546)
4 years, 11 months ago (2016-01-22 22:19:41 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1549473003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1549473003/280001
4 years, 11 months ago (2016-01-22 22:25:11 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/5599)
4 years, 11 months ago (2016-01-22 22:27:24 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1549473003/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1549473003/300001
4 years, 11 months ago (2016-01-22 22:31:55 UTC) #43
commit-bot: I haz the power
4 years, 11 months ago (2016-01-22 22:46:46 UTC) #45
Message was sent while issue was closed.
Committed patchset #12 (id:300001) as
https://skia.googlesource.com/skia/+/b714fb0199e8727ef2b6cddbee7eba6046f01554

Powered by Google App Engine
This is Rietveld 408576698