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

Issue 1459473007: Updates the gyp file. (Closed)

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

Description

Updates the gyp file. Prototyped a dng codec. BUG=skia:

Patch Set 1 #

Total comments: 32

Patch Set 2 : Updates the Raw Codec prototype. #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+546 lines, -1 line) Patch
M gyp/codec.gyp View 3 chunks +3 lines, -0 lines 0 comments Download
A gyp/dng_sdk.gyp View 1 chunk +272 lines, -0 lines 0 comments Download
M include/codec/SkEncodedFormat.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/codec/SkCodec.cpp View 2 chunks +3 lines, -1 line 0 comments Download
A src/codec/SkRawCodec.h View 1 1 chunk +72 lines, -0 lines 2 comments Download
A src/codec/SkRawCodec.cpp View 1 1 chunk +195 lines, -0 lines 8 comments Download

Messages

Total messages: 12 (2 generated)
msarett
I didn't look too deeply yet, but added a few comments. You can respond to ...
5 years, 1 month ago (2015-11-19 16:45:01 UTC) #2
ebrauer
https://codereview.chromium.org/1459473007/diff/1/gyp/codec.gyp File gyp/codec.gyp (right): https://codereview.chromium.org/1459473007/diff/1/gyp/codec.gyp#newcode30 gyp/codec.gyp:30: '-fexceptions', On 2015/11/19 16:45:01, msarett wrote: > Can you ...
5 years, 1 month ago (2015-11-19 16:58:47 UTC) #3
scroggo
https://codereview.chromium.org/1459473007/diff/1/gyp/dng_sdk.gyp File gyp/dng_sdk.gyp (right): https://codereview.chromium.org/1459473007/diff/1/gyp/dng_sdk.gyp#newcode224 gyp/dng_sdk.gyp:224: ['OS != "linux"', { On 2015/11/19 16:58:47, ebrauer wrote: ...
5 years, 1 month ago (2015-11-19 22:16:55 UTC) #5
ebrauer
https://codereview.chromium.org/1459473007/diff/1/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1459473007/diff/1/src/codec/SkRawCodec.cpp#newcode26 src/codec/SkRawCodec.cpp:26: public: On 2015/11/19 22:16:54, scroggo wrote: > Skia uses ...
5 years, 1 month ago (2015-11-20 11:43:44 UTC) #6
ebrauer
https://codereview.chromium.org/1459473007/diff/1/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1459473007/diff/1/src/codec/SkRawCodec.cpp#newcode185 src/codec/SkRawCodec.cpp:185: //swizzler->swizzle(dst_row, &src_row[0]); On 2015/11/20 11:43:44, ebrauer wrote: > On ...
5 years, 1 month ago (2015-11-20 12:57:57 UTC) #7
scroggo
https://codereview.chromium.org/1459473007/diff/1/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1459473007/diff/1/src/codec/SkRawCodec.cpp#newcode27 src/codec/SkRawCodec.cpp:27: explicit DngStream(SkStream* stream) : data_(stream->getMemoryBase()), On 2015/11/20 11:43:44, ebrauer ...
5 years, 1 month ago (2015-11-20 21:22:38 UTC) #8
scroggo
https://codereview.chromium.org/1459473007/diff/20001/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1459473007/diff/20001/src/codec/SkRawCodec.cpp#newcode47 src/codec/SkRawCodec.cpp:47: bool IsDng(SkStream* data) { Is it possible to do ...
5 years ago (2015-11-24 14:46:05 UTC) #9
msarett
Adding a few thoughts. https://codereview.chromium.org/1459473007/diff/20001/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1459473007/diff/20001/src/codec/SkRawCodec.cpp#newcode135 src/codec/SkRawCodec.cpp:135: negative->DefaultCropSizeV().As_real64(), kRGBA_8888_SkColorType, We would normally ...
5 years ago (2015-11-25 15:15:23 UTC) #10
scroggo
https://codereview.chromium.org/1459473007/diff/1/src/codec/SkRawCodec.cpp File src/codec/SkRawCodec.cpp (right): https://codereview.chromium.org/1459473007/diff/1/src/codec/SkRawCodec.cpp#newcode27 src/codec/SkRawCodec.cpp:27: explicit DngStream(SkStream* stream) : data_(stream->getMemoryBase()), On 2015/11/20 11:43:44, ebrauer ...
5 years ago (2015-12-18 15:51:05 UTC) #11
ebrauer
4 years, 11 months ago (2016-01-07 10:07:37 UTC) #12
This cl is deprecated. We continue to work on
https://codereview.chromium.org/1520403003/

https://codereview.chromium.org/1459473007/diff/20001/src/codec/SkRawCodec.cpp
File src/codec/SkRawCodec.cpp (right):

https://codereview.chromium.org/1459473007/diff/20001/src/codec/SkRawCodec.cp...
src/codec/SkRawCodec.cpp:47: bool IsDng(SkStream* data) {
On 2015/11/24 14:46:05, scroggo wrote:
> Is it possible to do less work here? It appears you're doing a lot of work
here
> to determine whether it is a valid DNG (I'm not familiar with DNG though; how
> much of the image does Parse parse?), but the point of this method is
basically
> to know that this is *not* some other type of file.
> 
> For example, in PNG, we just check the first few bytes for a magic signature.
If
> those bytes do not match, we return and check the other formats. If they do
> match, we assume that it is a PNG file. If it turns out the image is corrupt
in
> some way, we will fail later on, but won't need to check if the stream matches
> another format.
> 
> Does DNG have a magic signature?

To identify a valid DNG we would require this code, but we have a better
solution in https://codereview.chromium.org/1520403003/

https://codereview.chromium.org/1459473007/diff/20001/src/codec/SkRawCodec.cp...
src/codec/SkRawCodec.cpp:121: return IsDng(stream);
On 2015/11/24 14:46:05, scroggo wrote:
> Why didn't you just put the code for IsDng here? It looks like it is not used
> elsewhere?

We are going to rework this as part of
https://codereview.chromium.org/1520403003/

https://codereview.chromium.org/1459473007/diff/20001/src/codec/SkRawCodec.cp...
src/codec/SkRawCodec.cpp:135: negative->DefaultCropSizeV().As_real64(),
kRGBA_8888_SkColorType,
On 2015/11/25 15:15:23, msarett wrote:
> We would normally recommend kN32_SkColorType here (which is equivalent to
kBGRA
> or kRGBA depending on the platform).  Is there a reason to always recommend
> RGBA?

We changed it in https://codereview.chromium.org/1520403003/

https://codereview.chromium.org/1459473007/diff/20001/src/codec/SkRawCodec.cp...
src/codec/SkRawCodec.cpp:170: std::unique_ptr<SkSwizzler>
swizzler(SkSwizzler::CreateSwizzler(
On 2015/11/25 15:15:23, msarett wrote:
> Is the swizzler now working as you expect?

It does what I expect, thanks.

https://codereview.chromium.org/1459473007/diff/20001/src/codec/SkRawCodec.h
File src/codec/SkRawCodec.h (right):

https://codereview.chromium.org/1459473007/diff/20001/src/codec/SkRawCodec.h#...
src/codec/SkRawCodec.h:19: * This class implements the decoding for jpeg images
On 2015/11/25 15:15:23, msarett wrote:
> Update this comment to say raw?

Done in https://codereview.chromium.org/1520403003/

Powered by Google App Engine
This is Rietveld 408576698