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

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

Issue 1895383002: Revert of Add SkEncodedInfo to report properties of encoded image data (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/SkJpegCodec.cpp ('k') | src/codec/SkJpegDecoderMgr.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 SkJpegDecoderMgr_DEFINED 8 #ifndef SkJpegDecoderMgr_DEFINED
9 #define SkJpegDecoderMgr_DEFINED 9 #define SkJpegDecoderMgr_DEFINED
10 10
(...skipping 25 matching lines...) Expand all
36 */ 36 */
37 JpegDecoderMgr(SkStream* stream); 37 JpegDecoderMgr(SkStream* stream);
38 38
39 /* 39 /*
40 * Initialize decompress struct 40 * Initialize decompress struct
41 * Initialize the source manager 41 * Initialize the source manager
42 */ 42 */
43 void init(); 43 void init();
44 44
45 /* 45 /*
46 * Returns the encoded color type of the jpeg, or kUnknown if the 46 * Recommend a color type based on the encoded format
47 * color type can't be determined
48 */ 47 */
49 SkEncodedInfo::Color getEncodedColor(); 48 SkColorType getColorType();
50 49
51 /* 50 /*
52 * Free memory used by the decode manager 51 * Free memory used by the decode manager
53 */ 52 */
54 ~JpegDecoderMgr(); 53 ~JpegDecoderMgr();
55 54
56 /* 55 /*
57 * Get the jump buffer in order to set an error return point 56 * Get the jump buffer in order to set an error return point
58 */ 57 */
59 jmp_buf& getJmpBuf(); 58 jmp_buf& getJmpBuf();
60 59
61 /* 60 /*
62 * Get function for the decompress info struct 61 * Get function for the decompress info struct
63 */ 62 */
64 jpeg_decompress_struct* dinfo(); 63 jpeg_decompress_struct* dinfo();
65 64
66 private: 65 private:
67 66
68 jpeg_decompress_struct fDInfo; 67 jpeg_decompress_struct fDInfo;
69 skjpeg_source_mgr fSrcMgr; 68 skjpeg_source_mgr fSrcMgr;
70 skjpeg_error_mgr fErrorMgr; 69 skjpeg_error_mgr fErrorMgr;
71 bool fInit; 70 bool fInit;
72 }; 71 };
73 72
74 #endif 73 #endif
OLDNEW
« no previous file with comments | « src/codec/SkJpegCodec.cpp ('k') | src/codec/SkJpegDecoderMgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698