Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3177)

Issue 5785054: fixed CMYK jpeg issue & got jpeg decoding working on linux (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by robertphillips
Modified:
12 years, 1 month ago
Reviewers:
Stephen White, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This delivery does 4 related things: 1) it allows Skia to decode CMYK encoded jpegs addressing issue 69 (SkImageDecoder_libjpeg.cpp) 2) it gets the jpeg code working again by partially rolling back delivery 841 (which relied on some Android-specific changes to libjpeg) (SkJpegUtility.cpp) 3) it adds a new test case to exercise the jpeg decoding (cmykjpeg.cpp & gmslides.gypi) 4) it enables jpeg file handling on Linux (images.gyp) What is currently lacking is a public domain CMYK jpeg image - the image attached to Issue 69 is of uncertain provenance.

Patch Set 1 #

Total comments: 18

Patch Set 2 : Next revision of CMYK jpeg fix #

Total comments: 8

Patch Set 3 : Minor changes to address comments #

Patch Set 4 : Updated Decoder Factory to only force jpeg linking #

Patch Set 5 : fix for gm command line arg processing bug #

Patch Set 6 : Patch for SampleApp command line parsing issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -14 lines) Patch
M samplecode/SampleApp.cpp View 1 2 3 4 3 chunks +19 lines, -14 lines 0 comments Download

Messages

Total messages: 19
robertphillips
12 years, 1 month ago (2012-03-08 19:00:30 UTC) #1
reed1
lgtm
12 years, 1 month ago (2012-03-08 19:09:32 UTC) #2
DerekS
http://codereview.appspot.com/5785054/diff/1/gm/cmykjpeg.cpp File gm/cmykjpeg.cpp (right): http://codereview.appspot.com/5785054/diff/1/gm/cmykjpeg.cpp#newcode26 gm/cmykjpeg.cpp:26: SkFILEStream stream("/home/robertphillips/debug/FlameBoy_Cut.eps_6BE7C7E9.jpg"); You should check-in this image or better ...
12 years, 1 month ago (2012-03-08 19:43:54 UTC) #3
epoger
At a high level: in the future, I would recommend splitting changes such as these ...
12 years, 1 month ago (2012-03-08 21:32:59 UTC) #4
epoger
http://codereview.appspot.com/5785054/diff/1/gm/cmykjpeg.cpp File gm/cmykjpeg.cpp (right): http://codereview.appspot.com/5785054/diff/1/gm/cmykjpeg.cpp#newcode47 gm/cmykjpeg.cpp:47: canvas->save(); On 2012/03/08 19:43:54, djsollen wrote: > I don't ...
12 years, 1 month ago (2012-03-09 17:20:01 UTC) #5
robertphillips
In this patch I have: altered gm & SampleApp to take a resource path argument ...
12 years, 1 month ago (2012-03-19 18:41:48 UTC) #6
robertphillips
http://codereview.appspot.com/5785054/diff/1/gm/cmykjpeg.cpp File gm/cmykjpeg.cpp (right): http://codereview.appspot.com/5785054/diff/1/gm/cmykjpeg.cpp#newcode26 gm/cmykjpeg.cpp:26: SkFILEStream stream("/home/robertphillips/debug/FlameBoy_Cut.eps_6BE7C7E9.jpg"); On 2012/03/08 19:43:54, djsollen wrote: > You ...
12 years, 1 month ago (2012-03-19 18:42:38 UTC) #7
reed1
1. can the changes to SkJpegUtility be landed in isolation? 2. do we need to ...
12 years, 1 month ago (2012-03-19 18:48:14 UTC) #8
robertphillips
> 1. can the changes to SkJpegUtility be landed in isolation? The SkJpegUtility changes are ...
12 years, 1 month ago (2012-03-19 19:01:47 UTC) #9
DerekS
http://codereview.appspot.com/5785054/diff/9001/gyp/images.gyp File gyp/images.gyp (right): http://codereview.appspot.com/5785054/diff/9001/gyp/images.gyp#newcode99 gyp/images.gyp:99: '-ljpeg', '-lpng', do we need this now that we ...
12 years, 1 month ago (2012-03-19 19:05:32 UTC) #10
epoger
Other than Mike/Derek's existing comments, it L G T M. http://codereview.appspot.com/5785054/diff/9001/gyp/images.gyp File gyp/images.gyp (right): http://codereview.appspot.com/5785054/diff/9001/gyp/images.gyp#newcode99 ...
12 years, 1 month ago (2012-03-19 19:26:39 UTC) #11
robertphillips
This latest patch addresses the following issues: renames the resource path global to being with ...
12 years, 1 month ago (2012-03-20 13:18:29 UTC) #12
robertphillips
http://codereview.appspot.com/5785054/diff/9001/gm/gm.cpp File gm/gm.cpp (right): http://codereview.appspot.com/5785054/diff/9001/gm/gm.cpp#newcode11 gm/gm.cpp:11: const char* GM::fResourcePath = NULL; On 2012/03/19 18:48:14, reed1 ...
12 years, 1 month ago (2012-03-20 13:18:44 UTC) #13
robertphillips
I have altered the SkImageDecoder_Factory.cpp so that it only forces linking of the jpeg codec.
12 years, 1 month ago (2012-03-20 13:31:44 UTC) #14
robertphillips
12 years, 1 month ago (2012-03-20 13:31:55 UTC) #15
reed1
lgtm
12 years, 1 month ago (2012-03-20 14:11:23 UTC) #16
robertphillips
This patch should fix the SampleApp command line processing bug. In the prior delivery I ...
12 years, 1 month ago (2012-03-22 13:04:00 UTC) #17
reed1
lgtm
12 years, 1 month ago (2012-03-22 13:23:30 UTC) #18
robertphillips
12 years, 1 month ago (2012-04-02 21:05:26 UTC) #19
code committed as r3438 (.gyp delivery still waiting)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b