Home
last modified time | relevance | path

Searched refs:rgb (Results 1 – 25 of 129) sorted by relevance

123456

/netbsd/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/
H A Damdgpu_dcn10_cm_common.c303 ++rgb; in cm_helper_convert_to_custom_float()
476 rgb->delta_red = dc_fixpt_sub(rgb_plus_1->red, rgb->red); in cm_helper_translate_curve_to_hw_format()
478 rgb->delta_blue = dc_fixpt_sub(rgb_plus_1->blue, rgb->blue); in cm_helper_translate_curve_to_hw_format()
481 rgb->delta_red_reg = dc_fixpt_clamp_u0d10(rgb->delta_red); in cm_helper_translate_curve_to_hw_format()
483 rgb->delta_blue_reg = dc_fixpt_clamp_u0d10(rgb->delta_blue); in cm_helper_translate_curve_to_hw_format()
484 rgb->red_reg = dc_fixpt_clamp_u0d14(rgb->red); in cm_helper_translate_curve_to_hw_format()
485 rgb->green_reg = dc_fixpt_clamp_u0d14(rgb->green); in cm_helper_translate_curve_to_hw_format()
486 rgb->blue_reg = dc_fixpt_clamp_u0d14(rgb->blue); in cm_helper_translate_curve_to_hw_format()
490 ++rgb; in cm_helper_translate_curve_to_hw_format()
633 rgb->delta_red = dc_fixpt_sub(rgb_plus_1->red, rgb->red); in cm_helper_translate_curve_to_degamma_hw_format()
[all …]
H A Damdgpu_dcn10_dpp_cm.c334 const struct pwl_result_data *rgb, in dpp1_cm_program_regamma_lut() argument
343 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].red_reg); in dpp1_cm_program_regamma_lut()
344 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].green_reg); in dpp1_cm_program_regamma_lut()
345 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].blue_reg); in dpp1_cm_program_regamma_lut()
664 const struct pwl_result_data *rgb, in dpp1_program_degamma_lut() argument
679 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].red_reg); in dpp1_program_degamma_lut()
680 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].green_reg); in dpp1_program_degamma_lut()
681 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].blue_reg); in dpp1_program_degamma_lut()
684 CM_DGAM_LUT_DATA, rgb[i].delta_red_reg); in dpp1_program_degamma_lut()
686 CM_DGAM_LUT_DATA, rgb[i].delta_green_reg); in dpp1_program_degamma_lut()
[all …]
/netbsd/sys/external/bsd/drm2/dist/drm/amd/display/modules/color/
H A Damdgpu_color_gamma.c842 rgb->g = rgb->r; in build_regamma()
843 rgb->b = rgb->r; in build_regamma()
1084 rgb->g = rgb->r; in build_hlg_degamma()
1085 rgb->b = rgb->r; in build_hlg_degamma()
1108 rgb->g = rgb->r; in build_hlg_regamma()
1109 rgb->b = rgb->r; in build_hlg_regamma()
1160 ++rgb; in scale_gamma()
1169 ++rgb; in scale_gamma()
1289 ++rgb; in scale_user_regamma_ramp()
1628 rgb->g = rgb->r; in apply_degamma_for_user_regamma()
[all …]
/netbsd/external/gpl3/gdb/dist/gdb/
H A Dui-style.c97 ui_file_style::color::get_rgb (uint8_t *rgb) const in get_rgb() argument
104 memcpy (rgb, bright_colors[m_value - 8], 3 * sizeof (uint8_t)); in get_rgb()
112 rgb[0] = component == 0 ? 0 : (55 + component * 40); in get_rgb()
115 rgb[1] = component == 0 ? 0 : (55 + component * 40); in get_rgb()
117 rgb[2] = value == 0 ? 0 : (55 + value * 40); in get_rgb()
122 rgb[0] = v; in get_rgb()
123 rgb[1] = v; in get_rgb()
124 rgb[2] = v; in get_rgb()
131 rgb[0] = m_red; in get_rgb()
132 rgb[1] = m_green; in get_rgb()
[all …]
/netbsd/external/gpl3/gdb.old/dist/gdb/
H A Dui-style.c97 ui_file_style::color::get_rgb (uint8_t *rgb) const in get_rgb() argument
104 memcpy (rgb, bright_colors[m_value - 8], 3 * sizeof (uint8_t)); in get_rgb()
112 rgb[0] = component == 0 ? 0 : (55 + component * 40); in get_rgb()
115 rgb[1] = component == 0 ? 0 : (55 + component * 40); in get_rgb()
117 rgb[2] = value == 0 ? 0 : (55 + value * 40); in get_rgb()
122 rgb[0] = v; in get_rgb()
123 rgb[1] = v; in get_rgb()
124 rgb[2] = v; in get_rgb()
131 rgb[0] = m_red; in get_rgb()
132 rgb[1] = m_green; in get_rgb()
[all …]
/netbsd/sys/arch/evbarm/netwalker/
H A Dnetwalker_lcd.c221 #define rgb(r,g,b) (((r)<<11) | ((g)<<5) | (b)) in draw_test_pattern() macro
229 case 0: color = rgb(0x00, 0x00, 0x00); break; in draw_test_pattern()
230 case 1: color = rgb(0x00, 0x00, 0x1f); break; in draw_test_pattern()
231 case 2: color = rgb(0x00, 0x3f, 0x00); break; in draw_test_pattern()
232 case 3: color = rgb(0x00, 0x3f, 0x1f); break; in draw_test_pattern()
233 case 4: color = rgb(0x1f, 0x00, 0x00); break; in draw_test_pattern()
234 case 5: color = rgb(0x1f, 0x00, 0x1f); break; in draw_test_pattern()
235 case 6: color = rgb(0x1f, 0x3f, 0x00); break; in draw_test_pattern()
236 case 7: color = rgb(0x1f, 0x3f, 0x1f); break; in draw_test_pattern()
246 line[x] = rgb(0x1f, 0x3f, 0x1f); in draw_test_pattern()
/netbsd/external/gpl3/gdb/dist/gdb/unittests/
H A Dstyle-selftests.c28 SELF_CHECK (rgb[0] == (R) && rgb[1] == (G) && rgb[2] == (B))
35 uint8_t rgb[3]; in run_tests() local
78 style.get_foreground ().get_rgb (rgb); in run_tests()
81 style.get_background ().get_rgb (rgb); in run_tests()
91 style.get_foreground ().get_rgb (rgb); in run_tests()
94 style.get_background ().get_rgb (rgb); in run_tests()
/netbsd/external/gpl3/gdb.old/dist/gdb/unittests/
H A Dstyle-selftests.c28 SELF_CHECK (rgb[0] == (R) && rgb[1] == (G) && rgb[2] == (B))
35 uint8_t rgb[3]; in run_tests() local
78 style.get_foreground ().get_rgb (rgb); in run_tests()
81 style.get_background ().get_rgb (rgb); in run_tests()
91 style.get_foreground ().get_rgb (rgb); in run_tests()
94 style.get_background ().get_rgb (rgb); in run_tests()
/netbsd/sys/arch/hpcmips/dev/
H A Dplumvideo.c435 u_int32_t *rgb; in plumvideo_ioctl() local
455 plumvideo_clut_get(sc, rgb, idx, cnt); in plumvideo_ioctl()
456 rgb24_decompose(rgb, r, g, b, cnt); in plumvideo_ioctl()
467 cmap_work_free(r, g, b, rgb); in plumvideo_ioctl()
494 rgb24_compose(rgb, r, g, b, cnt); in plumvideo_ioctl()
621 u_int32_t *rgb, int beg, int cnt) in __plumvideo_clut_get() argument
635 KASSERT(rgb); in plumvideo_clut_get()
644 u_int32_t *rgb, int beg, int cnt) in __plumvideo_clut_set() argument
650 *rgb++ & 0x00ffffff); in __plumvideo_clut_set()
658 KASSERT(rgb); in plumvideo_clut_set()
[all …]
/netbsd/sys/arch/evbarm/smdk2xx0/
H A Dsmdk2410_lcd.c315 #define rgb(r,g,b) (((r)<<11) | ((g)<<5) | (b)) in draw_test_pattern_16() macro
323 case 0: color = rgb(0x00, 0x00, 0x00); break; in draw_test_pattern_16()
324 case 1: color = rgb(0x00, 0x00, 0x1f); break; in draw_test_pattern_16()
325 case 2: color = rgb(0x00, 0x3f, 0x00); break; in draw_test_pattern_16()
326 case 3: color = rgb(0x00, 0x3f, 0x1f); break; in draw_test_pattern_16()
327 case 4: color = rgb(0x1f, 0x00, 0x00); break; in draw_test_pattern_16()
328 case 5: color = rgb(0x1f, 0x00, 0x1f); break; in draw_test_pattern_16()
329 case 6: color = rgb(0x1f, 0x3f, 0x00); break; in draw_test_pattern_16()
330 case 7: color = rgb(0x1f, 0x3f, 0x1f); break; in draw_test_pattern_16()
341 line[x] = rgb(0x1f, 0x3f, 0x1f); in draw_test_pattern_16()
/netbsd/sys/arch/evbarm/mini2440/
H A Dmini2440_lcd.c352 #define rgb(r,g,b) (((r)<<11) | ((g)<<5) | (b)) in draw_test_pattern_16() macro
360 case 0: color = rgb(0x00, 0x00, 0x00); break; in draw_test_pattern_16()
361 case 1: color = rgb(0x00, 0x00, 0x1f); break; in draw_test_pattern_16()
362 case 2: color = rgb(0x00, 0x3f, 0x00); break; in draw_test_pattern_16()
363 case 3: color = rgb(0x00, 0x3f, 0x1f); break; in draw_test_pattern_16()
364 case 4: color = rgb(0x1f, 0x00, 0x00); break; in draw_test_pattern_16()
365 case 5: color = rgb(0x1f, 0x00, 0x1f); break; in draw_test_pattern_16()
366 case 6: color = rgb(0x1f, 0x3f, 0x00); break; in draw_test_pattern_16()
367 case 7: color = rgb(0x1f, 0x3f, 0x1f); break; in draw_test_pattern_16()
378 line[x] = rgb(0x1f, 0x3f, 0x1f); in draw_test_pattern_16()
/netbsd/sys/dev/hpc/
H A Dvideo_subr.c151 cmap_work_alloc(u_int8_t **r, u_int8_t **g, u_int8_t **b, u_int32_t **rgb, in cmap_work_alloc() argument
166 ALLOC_BUF(rgb, 32); in cmap_work_alloc()
171 cmap_work_free(*r, *g, *b, *rgb); in cmap_work_alloc()
177 cmap_work_free(u_int8_t *r, u_int8_t *g, u_int8_t *b, u_int32_t *rgb) in cmap_work_free() argument
185 if (rgb) in cmap_work_free()
186 free(rgb, M_DEVBUF); in cmap_work_free()
208 u_int32_t rgb = *rgb24++; in rgb24_decompose() local
209 *r++ = (rgb >> 16) & 0xff; in rgb24_decompose()
210 *g++ = (rgb >> 8) & 0xff; in rgb24_decompose()
211 *b++ = rgb & 0xff; in rgb24_decompose()
H A Dhpccmap_gen.c54 char *rgb = "rgb"; in main() local
62 printf("unsigned char bivideo_cmap_%c[256] = {\n", rgb[i]); in main()
72 int rgb = (int)ctxx; in rgb_separate_out() local
76 switch(rgb) { in rgb_separate_out()
/netbsd/sys/arch/hpcmips/tx/
H A Dtx3912videovar.h37 #define TX3912VIDEO_RGB24TOINDEX(rgb) \ argument
38 ((((((rgb) >> 16) & 0xff) >> 5) << 5) | \
39 (((((rgb) >> 8) & 0xff) >> 5) << 2) | \
40 ((((rgb) & 0xff) >> 6)))
/netbsd/sys/arch/hp300/stand/common/
H A Dite_dv.c104 regbase->rgb[0].red = 0x00; in dvbox_init()
105 regbase->rgb[0].green = 0x00; in dvbox_init()
106 regbase->rgb[0].blue = 0x00; in dvbox_init()
107 regbase->rgb[1].red = 0xFF; in dvbox_init()
108 regbase->rgb[1].green = 0xFF; in dvbox_init()
109 regbase->rgb[1].blue = 0xFF; in dvbox_init()
H A Dgrf_dvreg.h51 struct rgb { struct
170 struct rgb rgb[8]; /* overlay color map */ member
171 u_char f37[0x6403-0x6100-sizeof(struct rgb)*8];
/netbsd/sys/arch/arm/s3c2xx0/
H A Ds3c24x0_lcd.c408 rgb( 0, 0, 0), /* black */
409 rgb( L, 0, 0), /* red */
410 rgb( 0, L, 0), /* green */
411 rgb( L, L, 0), /* brown */
412 rgb( 0, 0, L), /* blue */
414 rgb( 0, L, L), /* cyan */
417 rgb( L, L, L), /* black */
418 rgb( H, 0, 0), /* red */
419 rgb( 0, H, 0), /* green */
421 rgb( 0, 0, H), /* blue */
[all …]
/netbsd/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce110/
H A Damdgpu_dce110_opp_regamma_v.c479 const struct pwl_result_data *rgb = in program_pwl() local
483 dm_write_reg(xfm_dce->base.ctx, addr, rgb->red_reg); in program_pwl()
484 dm_write_reg(xfm_dce->base.ctx, addr, rgb->green_reg); in program_pwl()
485 dm_write_reg(xfm_dce->base.ctx, addr, rgb->blue_reg); in program_pwl()
488 rgb->delta_red_reg); in program_pwl()
490 rgb->delta_green_reg); in program_pwl()
492 rgb->delta_blue_reg); in program_pwl()
494 ++rgb; in program_pwl()
/netbsd/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn20/
H A Damdgpu_dcn20_dpp_cm.c92 const struct pwl_result_data *rgb, in dpp2_program_degamma_lut() argument
111 CM_DGAM_LUT_DATA, rgb[i].delta_red_reg); in dpp2_program_degamma_lut()
115 CM_DGAM_LUT_DATA, rgb[i].delta_blue_reg); in dpp2_program_degamma_lut()
341 const struct pwl_result_data *rgb, in dpp20_program_blnd_pwl() argument
509 const struct pwl_result_data *rgb, in dpp20_program_shaper_lut() argument
520 red = rgb[i].red_reg; in dpp20_program_shaper_lut()
521 green = rgb[i].green_reg; in dpp20_program_shaper_lut()
522 blue = rgb[i].blue_reg; in dpp20_program_shaper_lut()
524 red_delta = rgb[i].delta_red_reg; in dpp20_program_shaper_lut()
525 green_delta = rgb[i].delta_green_reg; in dpp20_program_shaper_lut()
[all …]
H A Damdgpu_dcn20_hubbub.c287 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub2_get_dcc_compression_cap()
288 output->grph.rgb.max_compressed_blk_size = 256; in hubbub2_get_dcc_compression_cap()
289 output->grph.rgb.independent_64b_blks = false; in hubbub2_get_dcc_compression_cap()
292 output->grph.rgb.max_uncompressed_blk_size = 128; in hubbub2_get_dcc_compression_cap()
293 output->grph.rgb.max_compressed_blk_size = 128; in hubbub2_get_dcc_compression_cap()
294 output->grph.rgb.independent_64b_blks = false; in hubbub2_get_dcc_compression_cap()
297 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub2_get_dcc_compression_cap()
298 output->grph.rgb.max_compressed_blk_size = 64; in hubbub2_get_dcc_compression_cap()
299 output->grph.rgb.independent_64b_blks = true; in hubbub2_get_dcc_compression_cap()
/netbsd/sys/arch/arm/xscale/
H A Dpxa2x0_lcd.c419 rgb( 0, 0, 0), /* black */
420 rgb( L, 0, 0), /* red */
421 rgb( 0, L, 0), /* green */
422 rgb( L, L, 0), /* brown */
423 rgb( 0, 0, L), /* blue */
425 rgb( 0, L, L), /* cyan */
428 rgb( L, L, L), /* black */
429 rgb( H, 0, 0), /* red */
432 rgb( 0, 0, H), /* blue */
434 rgb( 0, H, H), /* cyan */
[all …]
/netbsd/sys/arch/hp300/dev/
H A Ddvboxreg.h52 struct rgb { struct
146 struct rgb rgb[8]; /* overlay color map */ member
147 uint8_t f37[0x6403-0x6100-sizeof(struct rgb)*8];
H A Ddvbox.c362 db->rgb[0].red = 0x00; in dvbox_restore()
363 db->rgb[0].green = 0x00; in dvbox_restore()
364 db->rgb[0].blue = 0x00; in dvbox_restore()
365 db->rgb[1].red = 0xff; in dvbox_restore()
366 db->rgb[1].green = 0xff; in dvbox_restore()
367 db->rgb[1].blue = 0xff; in dvbox_restore()
/netbsd/sys/external/gpl2/dts/dist/arch/arm/boot/dts/
H A Dsama5d3_lcd.dtsi58 pinctrl_lcd_rgb444: lcd-rgb-0 {
74 pinctrl_lcd_rgb565: lcd-rgb-1 {
94 pinctrl_lcd_rgb666: lcd-rgb-2 {
116 pinctrl_lcd_rgb666_alt: lcd-rgb-2-alt {
138 pinctrl_lcd_rgb888: lcd-rgb-3 {
166 pinctrl_lcd_rgb888_alt: lcd-rgb-3-alt {
/netbsd/tests/usr.bin/xlint/lint1/
H A Dd_init_pop_member.c13 struct rgb { struct
27 struct rgb favorite_color; argument

123456