Lines Matching refs:src
84 TAG(etc1_parse_block)(struct TAG(etc1_block) *block, const UINT8_TYPE *src)
86 if (src[3] & 0x2) {
88 block->base_colors[0][0] = (int) TAG(etc1_base_color_diff_hi)(src[0]);
89 block->base_colors[1][0] = (int) TAG(etc1_base_color_diff_lo)(src[0]);
90 block->base_colors[0][1] = (int) TAG(etc1_base_color_diff_hi)(src[1]);
91 block->base_colors[1][1] = (int) TAG(etc1_base_color_diff_lo)(src[1]);
92 block->base_colors[0][2] = (int) TAG(etc1_base_color_diff_hi)(src[2]);
93 block->base_colors[1][2] = (int) TAG(etc1_base_color_diff_lo)(src[2]);
97 block->base_colors[0][0] = (int) TAG(etc1_base_color_ind_hi)(src[0]);
98 block->base_colors[1][0] = (int) TAG(etc1_base_color_ind_lo)(src[0]);
99 block->base_colors[0][1] = (int) TAG(etc1_base_color_ind_hi)(src[1]);
100 block->base_colors[1][1] = (int) TAG(etc1_base_color_ind_lo)(src[1]);
101 block->base_colors[0][2] = (int) TAG(etc1_base_color_ind_hi)(src[2]);
102 block->base_colors[1][2] = (int) TAG(etc1_base_color_ind_lo)(src[2]);
106 block->modifier_tables[0] = TAG(etc1_modifier_tables)[(src[3] >> 5) & 0x7];
107 block->modifier_tables[1] = TAG(etc1_modifier_tables)[(src[3] >> 2) & 0x7];
109 block->flipped = (src[3] & 0x1);
112 (src[4] << 24) | (src[5] << 16) | (src[6] << 8) | src[7];
151 const uint8_t *src = src_row;
154 etc1_parse_block(&block, src);
165 src += bs;