OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 #include "SkBitmap.h" | 8 #include "SkBitmap.h" |
9 #include "SkColorPriv.h" | 9 #include "SkColorPriv.h" |
10 #include "SkCommandLineFlags.h" | 10 #include "SkCommandLineFlags.h" |
11 #include "SkData.h" | 11 #include "SkData.h" |
12 #include "SkForceLinking.h" | |
13 #include "SkGraphics.h" | 12 #include "SkGraphics.h" |
14 #include "SkImageDecoder.h" | 13 #include "SkImageDecoder.h" |
15 #include "SkImageEncoder.h" | 14 #include "SkImageEncoder.h" |
16 #include "SkOSFile.h" | 15 #include "SkOSFile.h" |
17 #include "SkRandom.h" | 16 #include "SkRandom.h" |
18 #include "SkStream.h" | 17 #include "SkStream.h" |
19 #include "SkTArray.h" | 18 #include "SkTArray.h" |
20 #include "SkTemplates.h" | 19 #include "SkTemplates.h" |
21 | 20 |
22 __SK_FORCE_IMAGE_DECODER_LINKING; | |
23 | |
24 DEFINE_string2(readPath, r, "", "Folder(s) and files to decode images. Required.
"); | 21 DEFINE_string2(readPath, r, "", "Folder(s) and files to decode images. Required.
"); |
25 | 22 |
26 struct Format { | 23 struct Format { |
27 SkImageEncoder::Type fType; | 24 SkImageEncoder::Type fType; |
28 SkImageDecoder::Format fFormat; | 25 SkImageDecoder::Format fFormat; |
29 const char* fSuffix; | 26 const char* fSuffix; |
30 }; | 27 }; |
31 | 28 |
32 /* | 29 /* |
33 static const Format gFormats[] = { | 30 static const Format gFormats[] = { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 } | 163 } |
167 | 164 |
168 return 0; | 165 return 0; |
169 } | 166 } |
170 | 167 |
171 #if !defined SK_BUILD_FOR_IOS | 168 #if !defined SK_BUILD_FOR_IOS |
172 int main(int argc, char * const argv[]) { | 169 int main(int argc, char * const argv[]) { |
173 return tool_main(argc, (char**) argv); | 170 return tool_main(argc, (char**) argv); |
174 } | 171 } |
175 #endif | 172 #endif |
OLD | NEW |