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

Side by Side Diff: src/images/SkJPEGImageEncoder.cpp

Issue 1836493002: Rename encoders to Sk*ImageEncoder (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/images/SkImageEncoder_argb.cpp ('k') | src/images/SkJPEGWriteUtility.h » ('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 2007 The Android Open Source Project 2 * Copyright 2007 The Android Open Source Project
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 #include "SkImageEncoder.h" 9 #include "SkImageEncoder.h"
10 #include "SkJpegUtility.h"
11 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
12 #include "SkDither.h" 11 #include "SkDither.h"
13 #include "SkStream.h" 12 #include "SkStream.h"
14 #include "SkTemplates.h" 13 #include "SkTemplates.h"
15 #include "SkTime.h" 14 #include "SkTime.h"
16 #include "SkUtils.h" 15 #include "SkUtils.h"
17 #include "SkRTConf.h" 16 #include "SkRTConf.h"
18 #include "SkRect.h" 17 #include "SkRect.h"
19 #include "SkCanvas.h" 18 #include "SkCanvas.h"
20 19
21 20
22 #include <stdio.h> 21 #include <stdio.h>
22 #include "SkJPEGWriteUtility.h"
23 extern "C" { 23 extern "C" {
24 #include "jpeglib.h" 24 #include "jpeglib.h"
25 #include "jerror.h" 25 #include "jerror.h"
26 } 26 }
27 27
28 // These enable timing code that report milliseconds for an encoding 28 // These enable timing code that report milliseconds for an encoding
29 //#define TIME_ENCODE 29 //#define TIME_ENCODE
30 30
31 // this enables our rgb->yuv code, which is faster than libjpeg on ARM 31 // this enables our rgb->yuv code, which is faster than libjpeg on ARM
32 #define WE_CONVERT_TO_YUV 32 #define WE_CONVERT_TO_YUV
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 /////////////////////////////////////////////////////////////////////////////// 274 ///////////////////////////////////////////////////////////////////////////////
275 DEFINE_ENCODER_CREATOR(JPEGImageEncoder); 275 DEFINE_ENCODER_CREATOR(JPEGImageEncoder);
276 /////////////////////////////////////////////////////////////////////////////// 276 ///////////////////////////////////////////////////////////////////////////////
277 277
278 static SkImageEncoder* sk_libjpeg_efactory(SkImageEncoder::Type t) { 278 static SkImageEncoder* sk_libjpeg_efactory(SkImageEncoder::Type t) {
279 return (SkImageEncoder::kJPEG_Type == t) ? new SkJPEGImageEncoder : nullptr; 279 return (SkImageEncoder::kJPEG_Type == t) ? new SkJPEGImageEncoder : nullptr;
280 } 280 }
281 281
282 static SkImageEncoder_EncodeReg gEReg(sk_libjpeg_efactory); 282 static SkImageEncoder_EncodeReg gEReg(sk_libjpeg_efactory);
OLDNEW
« no previous file with comments | « src/images/SkImageEncoder_argb.cpp ('k') | src/images/SkJPEGWriteUtility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698