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

Issue 1820073002: Add SkEncodedInfo to report properties of encoded image data (Closed)

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

Description

Add SkEncodedInfo to report properties of encoded image data All this does is build an SkEncodedInfo for each codec, and then convert it to an SkImageInfo. In future steps I intend to: (1) Use SkEncodedInfo in place of SrcConfig in SkSwizzler. (2) Support more conversions in SkSwizzler (non-native BGRA/RGBA, 16-bit components, float, fixed point) (3) Investigate optimizing conversions from encoded data to linear color spaces. BUG=skia:4133 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1820073002 Committed: https://skia.googlesource.com/skia/+/f682d9ad70d690a343bc15e26ef321d86770be41 Committed: https://skia.googlesource.com/skia/+/c30c418f4eb75f365c7d7a32d5419b41ca780ba8

Patch Set 1 : #

Total comments: 33

Patch Set 2 : Response to comments #

Total comments: 5

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Remove width and height from SkEncodedInfo #

Patch Set 5 : Rebase #

Patch Set 6 : Bug fix + windows compile fix #

Patch Set 7 : Order of param eval bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+435 lines, -166 lines) Patch
M include/codec/SkCodec.h View 1 2 3 4 chunks +7 lines, -1 line 0 comments Download
A include/codec/SkEncodedInfo.h View 1 2 3 4 5 1 chunk +178 lines, -0 lines 0 comments Download
M src/codec/SkBmpCodec.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/codec/SkBmpCodec.cpp View 1 2 3 4 5 5 chunks +52 lines, -30 lines 0 comments Download
M src/codec/SkBmpMaskCodec.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/codec/SkBmpMaskCodec.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/codec/SkBmpRLECodec.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/codec/SkBmpRLECodec.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/codec/SkBmpStandardCodec.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/codec/SkBmpStandardCodec.cpp View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M src/codec/SkCodec.cpp View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M src/codec/SkGifCodec.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M src/codec/SkGifCodec.cpp View 1 2 3 2 chunks +14 lines, -16 lines 0 comments Download
M src/codec/SkIcoCodec.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/codec/SkIcoCodec.cpp View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M src/codec/SkJpegCodec.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M src/codec/SkJpegCodec.cpp View 1 2 3 4 5 6 2 chunks +11 lines, -7 lines 0 comments Download
M src/codec/SkJpegDecoderMgr.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M src/codec/SkJpegDecoderMgr.cpp View 1 2 3 4 1 chunk +11 lines, -3 lines 0 comments Download
M src/codec/SkPngCodec.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/codec/SkPngCodec.cpp View 1 2 3 4 11 chunks +52 lines, -50 lines 0 comments Download
M src/codec/SkRawCodec.cpp View 1 2 3 4 4 chunks +19 lines, -6 lines 0 comments Download
M src/codec/SkWbmpCodec.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkWbmpCodec.cpp View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M src/codec/SkWebpCodec.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkWebpCodec.cpp View 1 2 3 4 3 chunks +46 lines, -13 lines 0 comments Download

Messages

Total messages: 52 (26 generated)
msarett
4 years, 9 months ago (2016-03-22 18:55:06 UTC) #8
reed1
I like the new struct. No need to broadcast if the encoded form is table-based? ...
4 years, 9 months ago (2016-03-22 19:12:44 UTC) #9
msarett
On 2016/03/22 19:12:44, reed1 wrote: > I like the new struct. > > No need ...
4 years, 9 months ago (2016-03-22 20:59:07 UTC) #10
scroggo
https://codereview.chromium.org/1820073002/diff/80001/include/codec/SkEncodedInfo.h File include/codec/SkEncodedInfo.h (right): https://codereview.chromium.org/1820073002/diff/80001/include/codec/SkEncodedInfo.h#newcode16 include/codec/SkEncodedInfo.h:16: enum Alpha { Are these "Alpha" and "Color" (instead ...
4 years, 9 months ago (2016-03-23 14:48:50 UTC) #11
msarett
https://codereview.chromium.org/1820073002/diff/80001/include/codec/SkEncodedInfo.h File include/codec/SkEncodedInfo.h (right): https://codereview.chromium.org/1820073002/diff/80001/include/codec/SkEncodedInfo.h#newcode16 include/codec/SkEncodedInfo.h:16: enum Alpha { On 2016/03/23 14:48:50, scroggo wrote: > ...
4 years, 9 months ago (2016-03-24 16:20:44 UTC) #12
msarett
https://codereview.chromium.org/1820073002/diff/100001/src/codec/SkWebpCodec.cpp File src/codec/SkWebpCodec.cpp (right): https://codereview.chromium.org/1820073002/diff/100001/src/codec/SkWebpCodec.cpp#newcode88 src/codec/SkWebpCodec.cpp:88: // FIXME: Should we check the has_alpha flag here? ...
4 years, 9 months ago (2016-03-24 16:21:40 UTC) #13
scroggo
lgtm https://codereview.chromium.org/1820073002/diff/80001/src/codec/SkBmpCodec.cpp File src/codec/SkBmpCodec.cpp (right): https://codereview.chromium.org/1820073002/diff/80001/src/codec/SkBmpCodec.cpp#newcode509 src/codec/SkBmpCodec.cpp:509: // Masked bmps are not a great fit ...
4 years, 9 months ago (2016-03-24 20:51:04 UTC) #14
msarett
Mike, any thoughts on the API? https://codereview.chromium.org/1820073002/diff/100001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1820073002/diff/100001/src/codec/SkJpegCodec.cpp#newcode216 src/codec/SkJpegCodec.cpp:216: if (!decoderMgr->getEncodedColor(&color)) { ...
4 years, 9 months ago (2016-03-24 22:42:07 UTC) #15
msarett
Mike, would you mind taking a look?
4 years, 8 months ago (2016-04-06 18:59:46 UTC) #16
reed1
Do we need to also pack width/height in this extra info, or would the expanded ...
4 years, 8 months ago (2016-04-07 15:08:01 UTC) #17
msarett
"Do we need to also pack width/height in this extra info, or would the expanded ...
4 years, 8 months ago (2016-04-07 15:24:49 UTC) #18
msarett
I've uploaded a new Patch Set that removes width/height from SkEncodedInfo. I actually prefer the ...
4 years, 8 months ago (2016-04-07 16:19:30 UTC) #19
reed1
api lgtm
4 years, 8 months ago (2016-04-18 17:31:33 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820073002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820073002/140001
4 years, 8 months ago (2016-04-18 19:31:52 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/7914) Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, ...
4 years, 8 months ago (2016-04-18 19:33:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820073002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820073002/160001
4 years, 8 months ago (2016-04-18 21:17:55 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot/builds/7927) Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, ...
4 years, 8 months ago (2016-04-18 21:19:06 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820073002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820073002/180001
4 years, 8 months ago (2016-04-18 21:23:54 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/7903)
4 years, 8 months ago (2016-04-18 21:26:05 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820073002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820073002/200001
4 years, 8 months ago (2016-04-18 23:09:42 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:200001) as https://skia.googlesource.com/skia/+/f682d9ad70d690a343bc15e26ef321d86770be41
4 years, 8 months ago (2016-04-18 23:20:06 UTC) #41
robertphillips
A revert of this CL (patchset #6 id:200001) has been created in https://codereview.chromium.org/1895383002/ by robertphillips@google.com. ...
4 years, 8 months ago (2016-04-19 11:40:49 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820073002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820073002/220001
4 years, 8 months ago (2016-04-20 18:13:11 UTC) #45
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-20 18:29:21 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820073002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820073002/220001
4 years, 8 months ago (2016-04-20 18:52:41 UTC) #50
commit-bot: I haz the power
4 years, 8 months ago (2016-04-20 18:53:39 UTC) #52
Message was sent while issue was closed.
Committed patchset #7 (id:220001) as
https://skia.googlesource.com/skia/+/c30c418f4eb75f365c7d7a32d5419b41ca780ba8

Powered by Google App Engine
This is Rietveld 408576698