| OLD | NEW |
| 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 #include "SkCodec.h" | 8 #include "SkCodec.h" |
| 9 #include "SkJpegCodec.h" | 9 #include "SkJpegCodec.h" |
| 10 #include "SkJpegDecoderMgr.h" | 10 #include "SkJpegDecoderMgr.h" |
| 11 #include "SkJpegUtility.h" | 11 #include "SkJpegUtility_codec.h" |
| 12 #include "SkCodecPriv.h" | 12 #include "SkCodecPriv.h" |
| 13 #include "SkColorPriv.h" | 13 #include "SkColorPriv.h" |
| 14 #include "SkStream.h" | 14 #include "SkStream.h" |
| 15 #include "SkTemplates.h" | 15 #include "SkTemplates.h" |
| 16 #include "SkTypes.h" | 16 #include "SkTypes.h" |
| 17 | 17 |
| 18 // stdio is needed for jpeglib | 18 // stdio is needed for jpeglib |
| 19 #include <stdio.h> | 19 #include <stdio.h> |
| 20 | 20 |
| 21 extern "C" { | 21 extern "C" { |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 // Create the swizzler | 496 // Create the swizzler |
| 497 this->initializeSwizzler(dstInfo, NULL, dstInfo.minRowBytes(), options); | 497 this->initializeSwizzler(dstInfo, NULL, dstInfo.minRowBytes(), options); |
| 498 if (NULL == fSwizzler) { | 498 if (NULL == fSwizzler) { |
| 499 SkCodecPrintf("Could not create swizzler\n"); | 499 SkCodecPrintf("Could not create swizzler\n"); |
| 500 return NULL; | 500 return NULL; |
| 501 } | 501 } |
| 502 | 502 |
| 503 // Return the new scanline decoder | 503 // Return the new scanline decoder |
| 504 return SkNEW_ARGS(SkJpegScanlineDecoder, (dstInfo, this)); | 504 return SkNEW_ARGS(SkJpegScanlineDecoder, (dstInfo, this)); |
| 505 } | 505 } |
| OLD | NEW |