Home | History | Annotate | Download | only in util

Lines Matching defs:xsub

230 	unsigned int xsub = yuv->xsub;
261 for (x = 0; x < width; x += xsub) {
262 u_mem[x*cs/xsub] = colors_top[x * 7 / width].u;
263 v_mem[x*cs/xsub] = colors_top[x * 7 / width].v;
265 u_mem += stride * cs / xsub;
266 v_mem += stride * cs / xsub;
270 for (x = 0; x < width; x += xsub) {
271 u_mem[x*cs/xsub] = colors_middle[x * 7 / width].u;
272 v_mem[x*cs/xsub] = colors_middle[x * 7 / width].v;
274 u_mem += stride * cs / xsub;
275 v_mem += stride * cs / xsub;
279 for (x = 0; x < width * 5 / 7; x += xsub) {
280 u_mem[x*cs/xsub] =
282 v_mem[x*cs/xsub] =
285 for (; x < width * 6 / 7; x += xsub) {
286 u_mem[x*cs/xsub] = colors_bottom[(x - width * 5 / 7) *
288 v_mem[x*cs/xsub] = colors_bottom[(x - width * 5 / 7) *
291 for (; x < width; x += xsub) {
292 u_mem[x*cs/xsub] = colors_bottom[7].u;
293 v_mem[x*cs/xsub] = colors_bottom[7].v;
295 u_mem += stride * cs / xsub;
296 v_mem += stride * cs / xsub;
359 unsigned int xsub = yuv->xsub;
361 unsigned int xstep = cs * xsub;
414 colors_top[(x+xsub) * 7 / width].u << 2,
415 colors_top[(x+xsub) * 7 / width].v << 2);
416 uv_mem += stride * cs / xsub;
424 colors_middle[(x+xsub) * 7 / width].u << 2,
425 colors_middle[(x+xsub) * 7 / width].v << 2);
426 uv_mem += stride * cs / xsub;
434 colors_bottom[(x+xsub) * 4 / (width * 5 / 7)].u << 2,
435 colors_bottom[(x+xsub) * 4 / (width * 5 / 7)].v << 2);
440 colors_bottom[((x+xsub) - width * 5 / 7) * 3 / (width / 7) + 4].u << 2,
441 colors_bottom[((x+xsub) - width * 5 / 7) * 3 / (width / 7) + 4].v << 2);
448 uv_mem += stride * cs / xsub;
1450 unsigned int xsub = yuv->xsub;
1461 u_mem[x/xsub*cs] = color.u;
1462 v_mem[x/xsub*cs] = color.v;
1467 u_mem += stride * cs / xsub;
1468 v_mem += stride * cs / xsub;
1482 unsigned int xsub = yuv->xsub;
1484 unsigned int xstep = cs * xsub;
1503 struct color_yuv b = make_tiles_yuv_color(x+xsub, y, width);
1508 uv_mem += stride * cs / xsub;
1952 unsigned int xsub = yuv->xsub;
1973 u_mem += (chroma_offset * (stride * cs / xsub));
1974 v_mem += (chroma_offset * (stride * cs / xsub));
1977 u_mem[x/xsub*cs] = val.u;
1978 v_mem[x/xsub*cs] = val.v;
1989 is_power_of_two(info->xsub) &&
2006 unsigned int xsub = yuv->xsub;
2008 unsigned int xstep = cs * xsub;
2010 unsigned int xsub_mask = xsub - 1;
2013 unsigned char *uv_mem = planes[1] + (y * (stride * cs / xsub));
2021 /* This logic only works when xsub, ysub and chroma stride is power of two. */