| 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_libbmp.h" | 8 #include "SkBmpCodec.h" |
| 9 #include "SkCodecPriv.h" | 9 #include "SkCodecPriv.h" |
| 10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
| 11 #include "SkStream.h" | 11 #include "SkStream.h" |
| 12 | 12 |
| 13 /* | 13 /* |
| 14 * | 14 * |
| 15 * Checks if the conversion between the input image and the requested output | 15 * Checks if the conversion between the input image and the requested output |
| 16 * image has been implemented | 16 * image has been implemented |
| 17 * | 17 * |
| 18 */ | 18 */ |
| (...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1226 uint32_t alphaBit = | 1226 uint32_t alphaBit = |
| 1227 (srcBuffer.get()[quotient] >> shift) & 0x1; | 1227 (srcBuffer.get()[quotient] >> shift) & 0x1; |
| 1228 dstRow[x] &= alphaBit - 1; | 1228 dstRow[x] &= alphaBit - 1; |
| 1229 } | 1229 } |
| 1230 } | 1230 } |
| 1231 } | 1231 } |
| 1232 | 1232 |
| 1233 // Finished decoding the entire image | 1233 // Finished decoding the entire image |
| 1234 return kSuccess; | 1234 return kSuccess; |
| 1235 } | 1235 } |
| OLD | NEW |