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

Side by Side Diff: src/codec/SkJpegUtility_codec.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/SkJpegDecoderMgr.cpp ('k') | src/codec/SkJpegUtility_codec.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 8
9 #ifndef SkJpegUtility_codec_DEFINED 9 #ifndef SkJpegUtility_codec_DEFINED
10 #define SkJpegUtility_codec_DEFINED 10 #define SkJpegUtility_codec_DEFINED
11 11
12 #include "SkStream.h" 12 #include "SkStream.h"
13 13
14 #include <setjmp.h> 14 #include <setjmp.h>
15 // stdio is needed for jpeglib 15 // stdio is needed for jpeglib
16 #include <stdio.h> 16 #include <stdio.h>
17 17
18 extern "C" { 18 extern "C" {
19 #include "jpeglibmangler.h"
20 #include "jpeglib.h" 19 #include "jpeglib.h"
21 #include "jerror.h" 20 #include "jerror.h"
22 } 21 }
23 22
24 /* 23 /*
25 * Error handling struct 24 * Error handling struct
26 */ 25 */
27 struct skjpeg_error_mgr : jpeg_error_mgr { 26 struct skjpeg_error_mgr : jpeg_error_mgr {
28 jmp_buf fJmpBuf; 27 jmp_buf fJmpBuf;
29 }; 28 };
(...skipping 12 matching lines...) Expand all
42 SkStream* fStream; // unowned 41 SkStream* fStream; // unowned
43 enum { 42 enum {
44 // TODO (msarett): Experiment with different buffer sizes. 43 // TODO (msarett): Experiment with different buffer sizes.
45 // This size was chosen because it matches SkImageDecoder. 44 // This size was chosen because it matches SkImageDecoder.
46 kBufferSize = 1024 45 kBufferSize = 1024
47 }; 46 };
48 uint8_t fBuffer[kBufferSize]; 47 uint8_t fBuffer[kBufferSize];
49 }; 48 };
50 49
51 #endif 50 #endif
OLDNEW
« no previous file with comments | « src/codec/SkJpegDecoderMgr.cpp ('k') | src/codec/SkJpegUtility_codec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698