Lines Matching refs:width
161 unsigned char *v_mem, unsigned int width,
200 for (x = 0; x < width; ++x)
201 y_mem[x] = colors_top[x * 7 / width].y;
206 for (x = 0; x < width; ++x)
207 y_mem[x] = colors_middle[x * 7 / width].y;
212 for (x = 0; x < width * 5 / 7; ++x)
213 y_mem[x] = colors_bottom[x * 4 / (width * 5 / 7)].y;
214 for (; x < width * 6 / 7; ++x)
215 y_mem[x] = colors_bottom[(x - width * 5 / 7) * 3
216 / (width / 7) + 4].y;
217 for (; x < width; ++x)
224 for (x = 0; x < width; x += xsub) {
225 u_mem[x*cs/xsub] = colors_top[x * 7 / width].u;
226 v_mem[x*cs/xsub] = colors_top[x * 7 / width].v;
233 for (x = 0; x < width; x += xsub) {
234 u_mem[x*cs/xsub] = colors_middle[x * 7 / width].u;
235 v_mem[x*cs/xsub] = colors_middle[x * 7 / width].v;
242 for (x = 0; x < width * 5 / 7; x += xsub) {
244 colors_bottom[x * 4 / (width * 5 / 7)].u;
246 colors_bottom[x * 4 / (width * 5 / 7)].v;
248 for (; x < width * 6 / 7; x += xsub) {
249 u_mem[x*cs/xsub] = colors_bottom[(x - width * 5 / 7) *
250 3 / (width / 7) + 4].u;
251 v_mem[x*cs/xsub] = colors_bottom[(x - width * 5 / 7) *
252 3 / (width / 7) + 4].v;
254 for (; x < width; x += xsub) {
264 unsigned int width, unsigned int height,
304 for (x = 0; x < width; ++x)
305 y_mem[2*x] = colors_top[x * 7 / width].y;
310 for (x = 0; x < width; ++x)
311 y_mem[2*x] = colors_middle[x * 7 / width].y;
316 for (x = 0; x < width * 5 / 7; ++x)
317 y_mem[2*x] = colors_bottom[x * 4 / (width * 5 / 7)].y;
318 for (; x < width * 6 / 7; ++x)
319 y_mem[2*x] = colors_bottom[(x - width * 5 / 7) * 3
320 / (width / 7) + 4].y;
321 for (; x < width; ++x)
328 for (x = 0; x < width; x += 2) {
329 c_mem[2*x+u] = colors_top[x * 7 / width].u;
330 c_mem[2*x+v] = colors_top[x * 7 / width].v;
336 for (x = 0; x < width; x += 2) {
337 c_mem[2*x+u] = colors_middle[x * 7 / width].u;
338 c_mem[2*x+v] = colors_middle[x * 7 / width].v;
344 for (x = 0; x < width * 5 / 7; x += 2) {
345 c_mem[2*x+u] = colors_bottom[x * 4 / (width * 5 / 7)].u;
346 c_mem[2*x+v] = colors_bottom[x * 4 / (width * 5 / 7)].v;
348 for (; x < width * 6 / 7; x += 2) {
349 c_mem[2*x+u] = colors_bottom[(x - width * 5 / 7) *
350 3 / (width / 7) + 4].u;
351 c_mem[2*x+v] = colors_bottom[(x - width * 5 / 7) *
352 3 / (width / 7) + 4].v;
354 for (; x < width; x += 2) {
363 unsigned int width, unsigned int height,
398 for (x = 0; x < width; ++x)
399 ((uint16_t *)mem)[x] = colors_top[x * 7 / width];
404 for (x = 0; x < width; ++x)
405 ((uint16_t *)mem)[x] = colors_middle[x * 7 / width];
410 for (x = 0; x < width * 5 / 7; ++x)
412 colors_bottom[x * 4 / (width * 5 / 7)];
413 for (; x < width * 6 / 7; ++x)
415 colors_bottom[(x - width * 5 / 7) * 3
416 / (width / 7) + 4];
417 for (; x < width; ++x)
424 unsigned int width, unsigned int height,
459 for (x = 0; x < width; ++x)
461 colors_top[x * 7 / width];
466 for (x = 0; x < width; ++x)
468 colors_middle[x * 7 / width];
473 for (x = 0; x < width * 5 / 7; ++x)
475 colors_bottom[x * 4 / (width * 5 / 7)];
476 for (; x < width * 6 / 7; ++x)
478 colors_bottom[(x - width * 5 / 7) * 3
479 / (width / 7) + 4];
480 for (; x < width; ++x)
487 unsigned int width, unsigned int height,
522 for (x = 0; x < width; ++x)
523 ((uint32_t *)mem)[x] = colors_top[x * 7 / width];
528 for (x = 0; x < width; ++x)
529 ((uint32_t *)mem)[x] = colors_middle[x * 7 / width];
534 for (x = 0; x < width * 5 / 7; ++x)
536 colors_bottom[x * 4 / (width * 5 / 7)];
537 for (; x < width * 6 / 7; ++x)
539 colors_bottom[(x - width * 5 / 7) * 3
540 / (width / 7) + 4];
541 for (; x < width; ++x)
548 unsigned int width, unsigned int height,
583 for (x = 0; x < width; ++x)
584 ((uint64_t *)mem)[x] = colors_top[x * 7 / width];
589 for (x = 0; x < width; ++x)
590 ((uint64_t *)mem)[x] = colors_middle[x * 7 / width];
595 for (x = 0; x < width * 5 / 7; ++x)
597 colors_bottom[x * 4 / (width * 5 / 7)];
598 for (; x < width * 6 / 7; ++x)
600 colors_bottom[(x - width * 5 / 7) * 3
601 / (width / 7) + 4];
602 for (; x < width; ++x)
608 static void fill_smpte_c8(void *mem, unsigned int width, unsigned int height,
615 for (x = 0; x < width; ++x)
616 ((uint8_t *)mem)[x] = x * 7 / width;
621 for (x = 0; x < width; ++x)
622 ((uint8_t *)mem)[x] = 7 + (x * 7 / width);
627 for (x = 0; x < width * 5 / 7; ++x)
629 14 + (x * 4 / (width * 5 / 7));
630 for (; x < width * 6 / 7; ++x)
632 14 + ((x - width * 5 / 7) * 3
633 / (width / 7) + 4);
634 for (; x < width; ++x)
682 unsigned int width, unsigned int height,
689 return fill_smpte_c8(planes[0], width, height, stride);
694 return fill_smpte_yuv_packed(&info->yuv, planes[0], width,
704 width, height, stride);
708 planes[2], width, height, stride);
712 planes[1], width, height, stride);
733 width, height, stride);
738 width, height, stride);
756 width, height, stride);
763 width, height, stride);
772 static void make_pwetty(void *data, unsigned int width, unsigned int height,
806 width, height,
812 for (unsigned x = 0; x < width; x += 250)
844 unsigned char *v_mem, unsigned int width,
855 for (x = 0; x < width; ++x) {
856 div_t d = div(x+y, width);
877 void *mem, unsigned int width,
889 for (x = 0; x < width; x += 2) {
890 div_t d = div(x+y, width);
909 unsigned int width, unsigned int height,
917 for (x = 0; x < width; ++x) {
918 div_t d = div(x+y, width);
931 make_pwetty(mem_base, width, height, stride, info->format);
935 unsigned int width, unsigned int height,
942 for (x = 0; x < width; ++x) {
943 div_t d = div(x+y, width);
957 unsigned int width, unsigned int height,
965 for (x = 0; x < width; ++x) {
966 div_t d = div(x+y, width);
969 uint32_t alpha = ((y < height/2) && (x < width/2)) ? 127 : 255;
980 make_pwetty(mem_base, width, height, stride, info->format);
984 unsigned int width, unsigned int height,
992 for (x = 0; x < width; ++x) {
993 div_t d = div(x+y, width);
996 uint32_t alpha = ((y < height/2) && (x < width/2)) ? 127 : 255;
1009 unsigned int width, unsigned int height,
1020 width, height, stride);
1029 width, height, stride);
1033 planes[2], width, height, stride);
1037 planes[1], width, height, stride);
1058 width, height, stride);
1063 width, height, stride);
1081 width, height, stride);
1088 width, height, stride);
1112 unsigned int width, unsigned int height,
1120 for (j = 0; j < width / 2; j++) {
1130 for (j = 0; j < width / 2; j++) {
1140 unsigned int width, unsigned int height,
1148 for (j = 0; j < width / 2; j++) {
1158 for (j = 0; j < width / 2; j++) {
1192 unsigned int width, unsigned int height,
1213 width, height, stride);
1220 width, height, stride);
1229 * @width: Width in pixels
1237 void *planes[3], unsigned int width,
1248 return fill_tiles(info, planes, width, height, stride);
1251 return fill_smpte(info, planes, width, height, stride);
1257 return fill_gradient(info, planes, width, height, stride);