Lines Matching refs:rgb
97 const struct rgb_info rgb; member
102 .rgb = { { (rl), (ro) }, { (bl), (bo) }, { (gl), (go) }, { (al), (ao) } }
198 #define MAKE_RGBA(rgb, r, g, b, a) \ argument
199 ((((r) >> (8 - (rgb)->red.length)) << (rgb)->red.offset) | \
200 (((g) >> (8 - (rgb)->green.length)) << (rgb)->green.offset) | \
201 (((b) >> (8 - (rgb)->blue.length)) << (rgb)->blue.offset) | \
202 (((a) >> (8 - (rgb)->alpha.length)) << (rgb)->alpha.offset))
204 #define MAKE_RGB24(rgb, r, g, b) \ argument
205 { .value = MAKE_RGBA(rgb, r, g, b, 0) }
413 fill_smpte_rgb16(const struct rgb_info *rgb, unsigned char *mem, in fill_smpte_rgb16() argument
417 MAKE_RGBA(rgb, 192, 192, 192, 255), /* grey */ in fill_smpte_rgb16()
418 MAKE_RGBA(rgb, 192, 192, 0, 255), /* yellow */ in fill_smpte_rgb16()
419 MAKE_RGBA(rgb, 0, 192, 192, 255), /* cyan */ in fill_smpte_rgb16()
420 MAKE_RGBA(rgb, 0, 192, 0, 255), /* green */ in fill_smpte_rgb16()
421 MAKE_RGBA(rgb, 192, 0, 192, 255), /* magenta */ in fill_smpte_rgb16()
422 MAKE_RGBA(rgb, 192, 0, 0, 255), /* red */ in fill_smpte_rgb16()
423 MAKE_RGBA(rgb, 0, 0, 192, 255), /* blue */ in fill_smpte_rgb16()
426 MAKE_RGBA(rgb, 0, 0, 192, 255), /* blue */ in fill_smpte_rgb16()
427 MAKE_RGBA(rgb, 19, 19, 19, 255), /* black */ in fill_smpte_rgb16()
428 MAKE_RGBA(rgb, 192, 0, 192, 255), /* magenta */ in fill_smpte_rgb16()
429 MAKE_RGBA(rgb, 19, 19, 19, 255), /* black */ in fill_smpte_rgb16()
430 MAKE_RGBA(rgb, 0, 192, 192, 255), /* cyan */ in fill_smpte_rgb16()
431 MAKE_RGBA(rgb, 19, 19, 19, 255), /* black */ in fill_smpte_rgb16()
432 MAKE_RGBA(rgb, 192, 192, 192, 255), /* grey */ in fill_smpte_rgb16()
435 MAKE_RGBA(rgb, 0, 33, 76, 255), /* in-phase */ in fill_smpte_rgb16()
436 MAKE_RGBA(rgb, 255, 255, 255, 255), /* super white */ in fill_smpte_rgb16()
437 MAKE_RGBA(rgb, 50, 0, 106, 255), /* quadrature */ in fill_smpte_rgb16()
438 MAKE_RGBA(rgb, 19, 19, 19, 255), /* black */ in fill_smpte_rgb16()
439 MAKE_RGBA(rgb, 9, 9, 9, 255), /* 3.5% */ in fill_smpte_rgb16()
440 MAKE_RGBA(rgb, 19, 19, 19, 255), /* 7.5% */ in fill_smpte_rgb16()
441 MAKE_RGBA(rgb, 29, 29, 29, 255), /* 11.5% */ in fill_smpte_rgb16()
442 MAKE_RGBA(rgb, 19, 19, 19, 255), /* black */ in fill_smpte_rgb16()
474 fill_smpte_rgb24(const struct rgb_info *rgb, void *mem, in fill_smpte_rgb24() argument
478 MAKE_RGB24(rgb, 192, 192, 192), /* grey */ in fill_smpte_rgb24()
479 MAKE_RGB24(rgb, 192, 192, 0), /* yellow */ in fill_smpte_rgb24()
480 MAKE_RGB24(rgb, 0, 192, 192), /* cyan */ in fill_smpte_rgb24()
481 MAKE_RGB24(rgb, 0, 192, 0), /* green */ in fill_smpte_rgb24()
482 MAKE_RGB24(rgb, 192, 0, 192), /* magenta */ in fill_smpte_rgb24()
483 MAKE_RGB24(rgb, 192, 0, 0), /* red */ in fill_smpte_rgb24()
484 MAKE_RGB24(rgb, 0, 0, 192), /* blue */ in fill_smpte_rgb24()
487 MAKE_RGB24(rgb, 0, 0, 192), /* blue */ in fill_smpte_rgb24()
488 MAKE_RGB24(rgb, 19, 19, 19), /* black */ in fill_smpte_rgb24()
489 MAKE_RGB24(rgb, 192, 0, 192), /* magenta */ in fill_smpte_rgb24()
490 MAKE_RGB24(rgb, 19, 19, 19), /* black */ in fill_smpte_rgb24()
491 MAKE_RGB24(rgb, 0, 192, 192), /* cyan */ in fill_smpte_rgb24()
492 MAKE_RGB24(rgb, 19, 19, 19), /* black */ in fill_smpte_rgb24()
493 MAKE_RGB24(rgb, 192, 192, 192), /* grey */ in fill_smpte_rgb24()
496 MAKE_RGB24(rgb, 0, 33, 76), /* in-phase */ in fill_smpte_rgb24()
497 MAKE_RGB24(rgb, 255, 255, 255), /* super white */ in fill_smpte_rgb24()
498 MAKE_RGB24(rgb, 50, 0, 106), /* quadrature */ in fill_smpte_rgb24()
499 MAKE_RGB24(rgb, 19, 19, 19), /* black */ in fill_smpte_rgb24()
500 MAKE_RGB24(rgb, 9, 9, 9), /* 3.5% */ in fill_smpte_rgb24()
501 MAKE_RGB24(rgb, 19, 19, 19), /* 7.5% */ in fill_smpte_rgb24()
502 MAKE_RGB24(rgb, 29, 29, 29), /* 11.5% */ in fill_smpte_rgb24()
503 MAKE_RGB24(rgb, 19, 19, 19), /* black */ in fill_smpte_rgb24()
537 fill_smpte_rgb32(const struct rgb_info *rgb, unsigned char *mem, in fill_smpte_rgb32() argument
541 MAKE_RGBA(rgb, 192, 192, 192, 255), /* grey */ in fill_smpte_rgb32()
542 MAKE_RGBA(rgb, 192, 192, 0, 255), /* yellow */ in fill_smpte_rgb32()
543 MAKE_RGBA(rgb, 0, 192, 192, 255), /* cyan */ in fill_smpte_rgb32()
544 MAKE_RGBA(rgb, 0, 192, 0, 255), /* green */ in fill_smpte_rgb32()
545 MAKE_RGBA(rgb, 192, 0, 192, 255), /* magenta */ in fill_smpte_rgb32()
546 MAKE_RGBA(rgb, 192, 0, 0, 255), /* red */ in fill_smpte_rgb32()
547 MAKE_RGBA(rgb, 0, 0, 192, 255), /* blue */ in fill_smpte_rgb32()
550 MAKE_RGBA(rgb, 0, 0, 192, 255), /* blue */ in fill_smpte_rgb32()
551 MAKE_RGBA(rgb, 19, 19, 19, 255), /* black */ in fill_smpte_rgb32()
552 MAKE_RGBA(rgb, 192, 0, 192, 255), /* magenta */ in fill_smpte_rgb32()
553 MAKE_RGBA(rgb, 19, 19, 19, 255), /* black */ in fill_smpte_rgb32()
554 MAKE_RGBA(rgb, 0, 192, 192, 255), /* cyan */ in fill_smpte_rgb32()
555 MAKE_RGBA(rgb, 19, 19, 19, 255), /* black */ in fill_smpte_rgb32()
556 MAKE_RGBA(rgb, 192, 192, 192, 255), /* grey */ in fill_smpte_rgb32()
559 MAKE_RGBA(rgb, 0, 33, 76, 255), /* in-phase */ in fill_smpte_rgb32()
560 MAKE_RGBA(rgb, 255, 255, 255, 255), /* super white */ in fill_smpte_rgb32()
561 MAKE_RGBA(rgb, 50, 0, 106, 255), /* quadrature */ in fill_smpte_rgb32()
562 MAKE_RGBA(rgb, 19, 19, 19, 255), /* black */ in fill_smpte_rgb32()
563 MAKE_RGBA(rgb, 9, 9, 9, 255), /* 3.5% */ in fill_smpte_rgb32()
564 MAKE_RGBA(rgb, 19, 19, 19, 255), /* 7.5% */ in fill_smpte_rgb32()
565 MAKE_RGBA(rgb, 29, 29, 29, 255), /* 11.5% */ in fill_smpte_rgb32()
566 MAKE_RGBA(rgb, 19, 19, 19, 255), /* black */ in fill_smpte_rgb32()
646 return fill_smpte_rgb16(&info->rgb, planes[0], in fill_smpte()
651 return fill_smpte_rgb24(&info->rgb, planes[0], in fill_smpte()
669 return fill_smpte_rgb32(&info->rgb, planes[0], in fill_smpte()
814 const struct rgb_info *rgb = &info->rgb; in fill_tiles_rgb16() local
824 MAKE_RGBA(rgb, (rgb32 >> 16) & 0xff, in fill_tiles_rgb16()
840 const struct rgb_info *rgb = &info->rgb; in fill_tiles_rgb24() local
849 MAKE_RGB24(rgb, (rgb32 >> 16) & 0xff, in fill_tiles_rgb24()
862 const struct rgb_info *rgb = &info->rgb; in fill_tiles_rgb32() local
873 MAKE_RGBA(rgb, (rgb32 >> 16) & 0xff, in fill_tiles_rgb32()