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

Issue 5881055: pilot for the codec link-forcing system (Closed)

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

Description

Pilot for the codec link-forcing system This patch shows how I propose to implement the link forcing mechanism for the codecs. I have added declare & define macros in SkImageDecoder.h and SkImageEncoder.h. A declare line will be added for each codec in SkImageDecoder.h and/or SkImageEncoder.h. A define line will be added to each codec (e.g., SkImageDecoder_libjpeg.cpp). Finally each module that uses a codec (e.g., cmykjpeg.cpp) will need a forcing method that invokes the codec creation function.

Patch Set 1 #

Total comments: 1

Patch Set 2 : added comments to header files #

Patch Set 3 : propagated changes to all codecs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -32 lines) Patch
M gm/cmykjpeg.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M include/images/SkImageDecoder.h View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M include/images/SkImageEncoder.h View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M src/images/SkImageDecoder_Factory.cpp View 1 chunk +0 lines, -31 lines 0 comments Download
M src/images/SkImageDecoder_libbmp.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/images/SkImageDecoder_libgif.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/images/SkImageDecoder_libico.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/images/SkImageDecoder_libjpeg.cpp View 2 1 chunk +4 lines, -1 line 0 comments Download
M src/images/SkImageDecoder_libpng.cpp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/images/SkImageDecoder_wbmp.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4
robertphillips
http://codereview.appspot.com/5881055/diff/1/src/images/SkImageDecoder_libjpeg.cpp File src/images/SkImageDecoder_libjpeg.cpp (right): http://codereview.appspot.com/5881055/diff/1/src/images/SkImageDecoder_libjpeg.cpp#newcode663 src/images/SkImageDecoder_libjpeg.cpp:663: static const unsigned char gHeader[] = { 0xFF, 0xD8, ...
12 years, 8 months ago (2012-03-23 12:47:13 UTC) #1
reed1
Can we add some explanatory comments above each macro in the public headers? I guess ...
12 years, 8 months ago (2012-03-23 13:31:55 UTC) #2
robertphillips
I have added comments to the header files and propagated the necessary changes to all ...
12 years, 8 months ago (2012-03-23 14:10:23 UTC) #3
robertphillips
12 years, 8 months ago (2012-03-23 18:14:55 UTC) #4
committed as r3481
Sign in to reply to this message.

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