Lines Matching refs:l
38 static uint32_t extract(uint32_t v, int h, int l, int bits);
129 pixel->s[i] = f->c[i].h - f->c[i].l; in read_pixel()
131 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8); in read_pixel()
188 const int l = f->c[i].l; in write_pixel() local
191 mask |= (((1<<(h-l))-1)<<l); in write_pixel()
194 if (pixelSize < (h-l)) { in write_pixel()
195 u = expand(u, pixelSize, h-l); in write_pixel()
196 pixelSize = h-l; in write_pixel()
198 v = downshift_component(v, u, pixelSize, 0, h, l, 0, 0, dither); in write_pixel()
283 uint32_t extract(uint32_t v, int h, int l, int bits) in extract() argument
286 if (l) { in extract()
287 v >>= l; in extract()
290 v &= (1<<(h-l))-1; in extract()