| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 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 "SkImageDecoder.h" | 9 #include "SkImageDecoder.h" |
| 10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 if (kUnknown_Format == *format) { | 278 if (kUnknown_Format == *format) { |
| 279 if (stream->rewind()) { | 279 if (stream->rewind()) { |
| 280 *format = GetStreamFormat(stream); | 280 *format = GetStreamFormat(stream); |
| 281 } | 281 } |
| 282 } | 282 } |
| 283 } | 283 } |
| 284 delete codec; | 284 delete codec; |
| 285 } | 285 } |
| 286 return success; | 286 return success; |
| 287 } | 287 } |
| 288 | |
| 289 bool SkImageDecoder::decodeYUV8Planes(SkStream* stream, SkISize componentSizes[3
], void* planes[3], | |
| 290 size_t rowBytes[3], SkYUVColorSpace* color
Space) { | |
| 291 return this->onDecodeYUV8Planes(stream, componentSizes, planes, rowBytes, co
lorSpace); | |
| 292 } | |
| OLD | NEW |