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

Issue 18083026: Allow decoding JPEG into A8. (Closed)

Created:
7 years, 5 months ago by scroggo
Modified:
7 years, 5 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Allow decoding JPEG into A8. If the original image is grayscale, allow decoding into A8. Change the size of PrefConfigTable to allow for 8bit gray, a new source config. Add a new sampler to SkScaledBitmapSampler to 'convert' to A8. FIXME: Should there be a dithered option for gray scale? R=reed@google.com Committed: https://code.google.com/p/skia/source/detail?r=10157

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Naming improvements, remove obsolete, add a test. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -40 lines) Patch
M include/core/SkImageDecoder.h View 1 2 7 chunks +64 lines, -23 lines 2 comments Download
M src/images/SkImageDecoder.cpp View 1 2 1 chunk +16 lines, -10 lines 0 comments Download
M src/images/SkImageDecoder_libjpeg.cpp View 1 1 chunk +16 lines, -4 lines 0 comments Download
M src/images/SkScaledBitmapSampler.cpp View 5 chunks +20 lines, -2 lines 0 comments Download
M tests/ImageDecodingTest.cpp View 1 2 2 chunks +40 lines, -1 line 1 comment Download

Messages

Total messages: 10 (0 generated)
scroggo
7 years, 5 months ago (2013-07-03 16:22:58 UTC) #1
reed1
JPEG is always fully opaque, yes? If so, won't the output A8 *always* be 0xFF ...
7 years, 5 months ago (2013-07-08 12:41:19 UTC) #2
scroggo
On 2013/07/08 12:41:19, reed1 wrote: > JPEG is always fully opaque, yes? If so, won't ...
7 years, 5 months ago (2013-07-09 01:25:24 UTC) #3
reed1
Ah, so this is (another) decoder-only feature? They are not asking for Skia to support ...
7 years, 5 months ago (2013-07-09 13:45:58 UTC) #4
reed1
On 2013/07/09 13:45:58, reed1 wrote: > Ah, so this is (another) decoder-only feature? They are ...
7 years, 5 months ago (2013-07-09 13:53:26 UTC) #5
scroggo
On 2013/07/09 13:53:26, reed1 wrote: > Ah, so this is (another) decoder-only feature? They are ...
7 years, 5 months ago (2013-07-10 21:42:35 UTC) #6
reed1
I don't really grok the naming convention in the new PrefConfig struct, but this does ...
7 years, 5 months ago (2013-07-11 15:34:59 UTC) #7
scroggo
New patch with names in PrefConfigTable that are clearer. https://codereview.chromium.org/18083026/diff/7001/include/core/SkImageDecoder.h File include/core/SkImageDecoder.h (right): https://codereview.chromium.org/18083026/diff/7001/include/core/SkImageDecoder.h#newcode482 include/core/SkImageDecoder.h:482: ...
7 years, 5 months ago (2013-07-11 20:37:29 UTC) #8
reed1
lgtm
7 years, 5 months ago (2013-07-11 20:42:04 UTC) #9
scroggo
7 years, 5 months ago (2013-07-18 19:34:54 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 manually as r10157 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698