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

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

Issue 1180983002: Switch SkJpegCode to libjpeg-turbo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cros 3 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
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 /*
103 * Checks if we can scale to the requested dimensions and scales the dimensi ons 110 * Checks if we can scale to the requested dimensions and scales the dimensi ons
104 * if possible 111 * if possible
105 */ 112 */
106 bool scaleToDimensions(uint32_t width, uint32_t height); 113 bool scaleToDimensions(uint32_t width, uint32_t height);
107 114
108 /* 115 /*
109 * Create the swizzler based on the encoded format 116 * Create the swizzler based on the encoded format
110 */ 117 */
111 void initializeSwizzler(const SkImageInfo& dstInfo, void* dst, size_t dstRow Bytes, 118 void initializeSwizzler(const SkImageInfo& dstInfo, void* dst, size_t dstRow Bytes,
112 const Options& options); 119 const Options& options);
113 120
114 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr; 121 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr;
115 SkAutoTDelete<SkSwizzler> fSwizzler;
116 size_t fSrcRowBytes;
117 122
118 friend class SkJpegScanlineDecoder; 123 friend class SkJpegScanlineDecoder;
119 124
120 typedef SkCodec INHERITED; 125 typedef SkCodec INHERITED;
121 }; 126 };
122 127
123 #endif 128 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698