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

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

Issue 1214023003: 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 * takes ownership 93 * takes ownership
94 */ 94 */
95 SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* de coderMgr); 95 SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* de coderMgr);
96 96
97 /* 97 /*
98 * Handles rewinding the input stream if it is necessary 98 * Handles rewinding the input stream if it is necessary
99 */ 99 */
100 bool handleRewind(); 100 bool handleRewind();
101 101
102 /* 102 /*
103 * Checks if the conversion between the input image and the requested output
104 * image has been implemented
105 * Sets the output color space
106 */
107 bool setOutputColorSpace(const SkImageInfo& dst);
108
109 /*
110 * Checks if we can scale to the requested dimensions and scales the dimensi ons 103 * Checks if we can scale to the requested dimensions and scales the dimensi ons
111 * if possible 104 * if possible
112 */ 105 */
113 bool scaleToDimensions(uint32_t width, uint32_t height); 106 bool scaleToDimensions(uint32_t width, uint32_t height);
114 107
115 /* 108 /*
116 * Create the swizzler based on the encoded format 109 * Create the swizzler based on the encoded format
117 */ 110 */
118 void initializeSwizzler(const SkImageInfo& dstInfo, void* dst, size_t dstRow Bytes, 111 void initializeSwizzler(const SkImageInfo& dstInfo, void* dst, size_t dstRow Bytes,
119 const Options& options); 112 const Options& options);
120 113
121 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr; 114 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr;
115 SkAutoTDelete<SkSwizzler> fSwizzler;
116 size_t fSrcRowBytes;
122 117
123 friend class SkJpegScanlineDecoder; 118 friend class SkJpegScanlineDecoder;
124 119
125 typedef SkCodec INHERITED; 120 typedef SkCodec INHERITED;
126 }; 121 };
127 122
128 #endif 123 #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