OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The Android Open Source Project | 2 * Copyright 2015 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 #ifndef SkCodecPriv_DEFINED | 8 #ifndef SkCodecPriv_DEFINED |
9 #define SkCodecPriv_DEFINED | 9 #define SkCodecPriv_DEFINED |
10 | 10 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 static inline uint32_t get_int(uint8_t* buffer, uint32_t i) { | 98 static inline uint32_t get_int(uint8_t* buffer, uint32_t i) { |
99 uint32_t result; | 99 uint32_t result; |
100 memcpy(&result, &(buffer[i]), 4); | 100 memcpy(&result, &(buffer[i]), 4); |
101 #ifdef SK_CPU_BENDIAN | 101 #ifdef SK_CPU_BENDIAN |
102 return SkEndianSwap32(result); | 102 return SkEndianSwap32(result); |
103 #else | 103 #else |
104 return result; | 104 return result; |
105 #endif | 105 #endif |
106 } | 106 } |
107 | 107 |
| 108 #ifdef SK_PRINT_CODEC_MESSAGES |
| 109 #define SkCodecPrintf SkDebugf |
| 110 #else |
| 111 #define SkCodecPrintf(...) |
| 112 #endif |
| 113 |
108 #endif // SkCodecPriv_DEFINED | 114 #endif // SkCodecPriv_DEFINED |
OLD | NEW |