Lines Matching refs:data
44 // Reading/writing data.
47 static WEBP_INLINE int GetLE16(const uint8_t* const data) {
48 return (int)(data[0] << 0) | (data[1] << 8);
51 static WEBP_INLINE int GetLE24(const uint8_t* const data) {
52 return GetLE16(data) | (data[2] << 16);
55 static WEBP_INLINE uint32_t GetLE32(const uint8_t* const data) {
56 return (uint32_t)GetLE16(data) | (GetLE16(data + 2) << 16);
60 static WEBP_INLINE void PutLE16(uint8_t* const data, int val) {
62 data[0] = (val >> 0);
63 data[1] = (val >> 8);
66 static WEBP_INLINE void PutLE24(uint8_t* const data, int val) {
68 PutLE16(data, val & 0xffff);
69 data[2] = (val >> 16);
72 static WEBP_INLINE void PutLE32(uint8_t* const data, uint32_t val) {
73 PutLE16(data, (int)(val & 0xffff));
74 PutLE16(data + 2, (int)(val >> 16));