Home
last modified time | relevance | path

Searched full:grayscale (Results 1 – 25 of 72) sorted by relevance

123

/linux/Documentation/fb/
H A Dapi.rst52 bits_per_pixel, grayscale, red, green, blue and transp fields.
89 stored in the variable screen information grayscale field.
142 identifier stored in the variable screen information grayscale field.
191 __u32 grayscale; /* 0 = color, 1 = grayscale, */
240 for applications when using RGB and grayscale formats, as well as legacy
245 monochrome, grayscale or pseudocolor visuals, although this is not required.
247 - For grayscale formats, applications set the grayscale field to one. The red,
252 - For pseudocolor formats, applications set the grayscale field to zero. The
257 - For truecolor and directcolor formats, applications set the grayscale field
285 and grayscale formats.
[all …]
H A Dcmap_xfbdev.rst7 - example of relevant structures in fbdev as used for a 3-bit grayscale cmap::
11 .grayscale = 1,
24 - X11 apps do something like the following when trying to use grayscale::
H A Dinternals.rst82 Grayscale displays
84 Grayscale and static grayscale are special variants of pseudo color and static
H A Dmatroxfb.rst218 grayscale enable grayscale summing. It works in PSEUDOCOLOR modes (text,
222 nograyscale disable grayscale summing. It is default.
/linux/drivers/gpu/drm/pl111/
H A Dpl111_display.c131 bool grayscale = false; in pl111_display_enable() local
195 grayscale = true; in pl111_display_enable()
199 * grayscale so at least once in a while we will reverse in pl111_display_enable()
203 if (grayscale) in pl111_display_enable()
237 * Detect grayscale bus format. We do not support a grayscale mode in pl111_display_enable()
239 * hardware will activate its grayscaler to convert to the grayscale in pl111_display_enable()
242 if (grayscale) in pl111_display_enable()
/linux/drivers/video/fbdev/
H A Docfb.c144 if (!var->grayscale) in ocfb_setupfb()
186 if (info->var.grayscale) { in ocfb_setcolreg()
187 /* grayscale = 0.30*R + 0.59*G + 0.11*B */ in ocfb_setcolreg()
196 if (info->var.bits_per_pixel == 8 && !info->var.grayscale) { in ocfb_setcolreg()
222 if (var->bits_per_pixel == 8 && !var->grayscale) in ocfb_init_fix()
H A Dstifb.c26 * HPA1924A known as "GRX", a 1280x1024 grayscale device with 8 planes
31 * HP710G same as HP710C, 1280x1024 grayscale only
938 var->grayscale = fb->info->var.grayscale; in stifb_check_var()
964 if (unlikely(fb->info->var.grayscale)) { in stifb_setcolreg()
1256 case S9000_ID_ELM: /* GRX, grayscale but else same as A1659A */ in stifb_init_fb()
1257 var->grayscale = 1; in stifb_init_fb()
1260 case S9000_ID_TIMBER: /* HP9000/710 Any (may be a grayscale device) */ in stifb_init_fb()
1261 if (strstr(dev_name, "GRAYSCALE") || in stifb_init_fb()
1262 strstr(dev_name, "Grayscale") || in stifb_init_fb()
1263 strstr(dev_name, "grayscale")) in stifb_init_fb()
[all …]
H A Dsh7760fb.c181 if ((var->grayscale) && (var->bits_per_pixel == 1)) in sh7760fb_check_var()
195 * NOTE: The rotation, grayscale and DSTN codepaths are
232 vdln, bpp, gray ? "grayscale" : "color", in sh7760fb_set_par()
394 if (info->var.grayscale) { in sh7760fb_alloc_mem()
H A D68328fb.c284 /* grayscale works only partially under directcolor */ in mc68x328fb_setcolreg()
285 if (info->var.grayscale) { in mc68x328fb_setcolreg()
286 /* grayscale = 0.30*R + 0.59*G + 0.11*B */ in mc68x328fb_setcolreg()
H A Dgbefb.c95 .grayscale = 0,
126 .grayscale = 0,
920 var->grayscale = 0; /* No grayscale for now */ in gbefb_check_var()
939 /* No grayscale for now */ in gbefb_check_var()
940 var->grayscale = 0; in gbefb_check_var()
H A Dxilinxfb.c205 if (fbi->var.grayscale) { in xilinx_fb_setcolreg()
206 /* Convert color to grayscale. in xilinx_fb_setcolreg()
207 * grayscale = 0.30*R + 0.59*G + 0.11*B in xilinx_fb_setcolreg()
H A Dvfb.c275 /* grayscale works only partially under directcolor */ in vfb_setcolreg()
276 if (info->var.grayscale) { in vfb_setcolreg()
277 /* grayscale = 0.30*R + 0.59*G + 0.11*B */ in vfb_setcolreg()
H A Dgoldfishfb.c110 (var->grayscale != info->var.grayscale)) { in goldfish_fb_check_var()
H A Dsa1100fb.c33 * - Linear grayscale palettes and the kernel.
42 * detect if we are using grayscale.
314 if (fbi->fb.var.grayscale) in sa1100fb_setcolreg()
363 * yres, xres_virtual, yres_virtual, xoffset, yoffset, grayscale,
1123 fbi->fb.var.grayscale = inf->cmap_greyscale; in sa1100fb_init_fbinfo()
H A Dgrvga.c195 if (info->var.grayscale) { in grvga_setcolreg()
196 /* grayscale = 0.30*R + 0.59*G + 0.11*B */ in grvga_setcolreg()
H A Dau1100fb.c247 if (fbi->var.grayscale) { in au1100fb_fb_setcolreg()
248 /* Convert color to grayscale */ in au1100fb_fb_setcolreg()
/linux/drivers/gpu/drm/
H A Ddrm_format_helper.c943 * drm_fb_xrgb8888_to_gray8 - Convert XRGB8888 to grayscale
944 * @dst: Array of 8-bit grayscale destination buffers
961 * DRM doesn't have native monochrome or grayscale support. Drivers can use this
962 * function for grayscale devices that don't support XRGB8888 natively.Such
1111 * This function uses drm_fb_xrgb8888_to_gray8() to convert to grayscale and
1112 * then the result is converted from grayscale to monochrome.
1150 * line-by-line but are converted to 8-bit grayscale as an in drm_fb_xrgb8888_to_mono()
1154 * memory and to store the intermediate grayscale line pixels. in drm_fb_xrgb8888_to_mono()
/linux/Documentation/devicetree/bindings/media/
H A Draspberrypi,pispbe.yaml15 processor that fetches images in Bayer or Grayscale format from DRAM memory
/linux/drivers/video/fbdev/geode/
H A Dgx1fb_core.c160 if (info->var.grayscale) { in gx1fb_setcolreg()
161 /* grayscale = 0.30*R + 0.59*G + 0.11*B */ in gx1fb_setcolreg()
298 info->var.grayscale = 0; in gx1fb_init_fbinfo()
H A Dgxfb_core.c183 if (info->var.grayscale) { in gxfb_setcolreg()
184 /* grayscale = 0.30*R + 0.59*G + 0.11*B */ in gxfb_setcolreg()
312 info->var.grayscale = 0; in gxfb_init_fbinfo()
H A Dlxfb_core.c294 if (info->var.grayscale) { in lxfb_setcolreg()
295 /* grayscale = 0.30*R + 0.59*G + 0.11*B */ in lxfb_setcolreg()
441 info->var.grayscale = 0; in lxfb_init_fbinfo()
/linux/drivers/video/logo/
H A Dpnmtologo.c28 #define LINUX_LOGO_GRAY256 4 /* 256 levels grayscale */
399 die("Image must be grayscale\n"); in write_logo_gray256()
437 " gray256 : 256 levels grayscale\n" in usage()
/linux/include/linux/
H A Dlinux_logo.h21 #define LINUX_LOGO_GRAY256 4 /* 256 levels grayscale */
/linux/drivers/video/fbdev/matrox/
H A Dmatroxfb_base.c662 if (minfo->fbcon.var.grayscale) { in matroxfb_setcolreg()
1257 static int grayscale; /* "matroxfb:grayscale" */ variable
1806 vesafb_defined.grayscale = grayscale; in initMatrox2()
2463 else if (!strcmp(this_opt, "grayscale")) in matroxfb_setup()
2464 grayscale = value; in matroxfb_setup()
2566 module_param(grayscale, int, 0);
2567 MODULE_PARM_DESC(grayscale, "Sets display into grayscale. Works perfectly with paletized videomode …
/linux/include/uapi/linux/
H A Dfb.h252 __u32 grayscale; /* 0 = color, 1 = grayscale, */ member

123