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

Side by Side Diff: src/codec/SkGifCodec.h

Issue 1820073002: Add SkEncodedInfo to report properties of encoded image data (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Order of param eval bug Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | src/codec/SkGifCodec.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkCodec.h" 8 #include "SkCodec.h"
9 #include "SkColorSpace.h" 9 #include "SkColorSpace.h"
10 #include "SkColorTable.h" 10 #include "SkColorTable.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 /* 175 /*
176 * Frees any extension data used in the decode 176 * Frees any extension data used in the decode
177 * Used in a SkAutoTCallVProc 177 * Used in a SkAutoTCallVProc
178 */ 178 */
179 static void FreeExtension(SavedImage* image); 179 static void FreeExtension(SavedImage* image);
180 180
181 /* 181 /*
182 * Creates an instance of the decoder 182 * Creates an instance of the decoder
183 * Called only by NewFromStream 183 * Called only by NewFromStream
184 * 184 *
185 * @param srcInfo contains the source width and height 185 * @param info contains properties of the encoded data
186 * @param stream the stream of image data 186 * @param stream the stream of image data
187 * @param gif pointer to library type that manages gif decode 187 * @param gif pointer to library type that manages gif decode
188 * takes ownership 188 * takes ownership
189 * @param transIndex The transparent index. An invalid value 189 * @param transIndex The transparent index. An invalid value
190 * indicates that there is no transparent index. 190 * indicates that there is no transparent index.
191 */ 191 */
192 SkGifCodec(const SkImageInfo& srcInfo, SkStream* stream, GifFileType* gif, u int32_t transIndex, 192 SkGifCodec(int width, int height, const SkEncodedInfo& info, SkStream* strea m,
193 const SkIRect& frameRect, bool frameIsSubset); 193 GifFileType* gif, uint32_t transIndex, const SkIRect& frameRect, boo l frameIsSubset);
194 194
195 SkAutoTCallVProc<GifFileType, CloseGif> fGif; // owned 195 SkAutoTCallVProc<GifFileType, CloseGif> fGif; // owned
196 SkAutoTDeleteArray<uint8_t> fSrcBuffer; 196 SkAutoTDeleteArray<uint8_t> fSrcBuffer;
197 const SkIRect fFrameRect; 197 const SkIRect fFrameRect;
198 const uint32_t fTransIndex; 198 const uint32_t fTransIndex;
199 uint32_t fFillIndex; 199 uint32_t fFillIndex;
200 const bool fFrameIsSubset; 200 const bool fFrameIsSubset;
201 SkAutoTDelete<SkSwizzler> fSwizzler; 201 SkAutoTDelete<SkSwizzler> fSwizzler;
202 SkAutoTUnref<SkColorTable> fColorTable; 202 SkAutoTUnref<SkColorTable> fColorTable;
203 203
204 typedef SkCodec INHERITED; 204 typedef SkCodec INHERITED;
205 }; 205 };
OLDNEW
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | src/codec/SkGifCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698