Lines Matching refs:h
36 static uint32_t extract(uint32_t v, int h, int l, int bits);
127 pixel->s[i] = f->c[i].h - f->c[i].l; in read_pixel()
129 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8); in read_pixel()
187 const int h = f->c[i].h; in write_pixel() local
188 if (h && (c->state.mask.color & component_mask)) { in write_pixel()
189 mask |= (((1<<(h-l))-1)<<l); in write_pixel()
192 if (pixelSize < (h-l)) { in write_pixel()
193 u = expand(u, pixelSize, h-l); in write_pixel()
194 pixelSize = h-l; in write_pixel()
196 v = downshift_component(v, u, pixelSize, 0, h, l, 0, 0, dither); in write_pixel()
278 uint32_t extract(uint32_t v, int h, int l, int bits) in extract() argument
280 assert(h); in extract()
284 if (h != bits) { in extract()
285 v &= (1<<(h-l))-1; in extract()