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

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

Issue 1260673002: SkScaledCodec class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Stop DM from running large interlaced images on 32-bit Ubuntu GCE bots b/c they are running out of … Created 5 years, 4 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_wbmp.cpp ('k') | src/codec/SkJpegCodec.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 #ifndef SkJpegCodec_DEFINED 8 #ifndef SkJpegCodec_DEFINED
9 #define SkJpegCodec_DEFINED 9 #define SkJpegCodec_DEFINED
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* de coderMgr); 103 SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* de coderMgr);
104 104
105 /* 105 /*
106 * Checks if the conversion between the input image and the requested output 106 * Checks if the conversion between the input image and the requested output
107 * image has been implemented 107 * image has been implemented
108 * Sets the output color space 108 * Sets the output color space
109 */ 109 */
110 bool setOutputColorSpace(const SkImageInfo& dst); 110 bool setOutputColorSpace(const SkImageInfo& dst);
111 111
112 /* 112 /*
113 * Checks if we can scale to the requested dimensions and scales the dimensi ons 113 * Checks if we can natively scale to the requested dimensions and natively scales the
114 * if possible 114 * dimensions if possible
115 */ 115 */
116 bool scaleToDimensions(uint32_t width, uint32_t height); 116 bool nativelyScaleToDimensions(uint32_t width, uint32_t height);
117
118 /*
119 * Create the swizzler based on the encoded format
120 */
121 void initializeSwizzler(const SkImageInfo& dstInfo, void* dst, size_t dstRow Bytes,
122 const Options& options);
123 117
124 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr; 118 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr;
125 119
126 friend class SkJpegScanlineDecoder; 120 friend class SkJpegScanlineDecoder;
127 121
128 typedef SkCodec INHERITED; 122 typedef SkCodec INHERITED;
129 }; 123 };
130 124
131 #endif 125 #endif
OLDNEW
« no previous file with comments | « src/codec/SkCodec_wbmp.cpp ('k') | src/codec/SkJpegCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698