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

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

Issue 1226543003: Revert of Switch SkJpegCode to libjpeg-turbo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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/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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 * before the decode manager. 99 * before the decode manager.
100 */ 100 */
101 ~SkJpegCodec() override; 101 ~SkJpegCodec() override;
102 102
103 /* 103 /*
104 * Handles rewinding the input stream if it is necessary 104 * Handles rewinding the input stream if it is necessary
105 */ 105 */
106 bool handleRewind(); 106 bool handleRewind();
107 107
108 /* 108 /*
109 * Checks if the conversion between the input image and the requested output
110 * image has been implemented
111 * Sets the output color space
112 */
113 bool setOutputColorSpace(const SkImageInfo& dst);
114
115 /*
116 * Checks if we can scale to the requested dimensions and scales the dimensi ons 109 * Checks if we can scale to the requested dimensions and scales the dimensi ons
117 * if possible 110 * if possible
118 */ 111 */
119 bool scaleToDimensions(uint32_t width, uint32_t height); 112 bool scaleToDimensions(uint32_t width, uint32_t height);
120 113
121 /* 114 /*
122 * Create the swizzler based on the encoded format 115 * Create the swizzler based on the encoded format
123 */ 116 */
124 void initializeSwizzler(const SkImageInfo& dstInfo, void* dst, size_t dstRow Bytes, 117 void initializeSwizzler(const SkImageInfo& dstInfo, void* dst, size_t dstRow Bytes,
125 const Options& options); 118 const Options& options);
126 119
127 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr; 120 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr;
121 SkAutoTDelete<SkSwizzler> fSwizzler;
122 size_t fSrcRowBytes;
128 123
129 friend class SkJpegScanlineDecoder; 124 friend class SkJpegScanlineDecoder;
130 125
131 typedef SkCodec INHERITED; 126 typedef SkCodec INHERITED;
132 }; 127 };
133 128
134 #endif 129 #endif
OLDNEW
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | src/codec/SkJpegCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698