Home
last modified time | relevance | path

Searched refs:pixel (Results 1 – 25 of 427) sorted by relevance

12345678910>>...18

/OK3568_Linux_fs/kernel/drivers/gpu/drm/udl/
H A Dudl_transfer.c68 static inline u16 pixel32_to_be16(const uint32_t pixel) in pixel32_to_be16() argument
70 return (((pixel >> 3) & 0x001f) | in pixel32_to_be16()
71 ((pixel >> 5) & 0x07e0) | in pixel32_to_be16()
72 ((pixel >> 8) & 0xf800)); in pixel32_to_be16()
75 static inline u16 get_pixel_val16(const uint8_t *pixel, int log_bpp) in get_pixel_val16() argument
79 pixel_val16 = *(const uint16_t *)pixel; in get_pixel_val16()
81 pixel_val16 = pixel32_to_be16(*(const uint32_t *)pixel); in get_pixel_val16()
120 const u8 *pixel = *pixel_start_ptr; in udl_compress_hline16() local
124 while ((pixel_end > pixel) && in udl_compress_hline16()
139 cmd_pixel_start = pixel; in udl_compress_hline16()
[all …]
/OK3568_Linux_fs/kernel/drivers/video/fbdev/core/
H A Dfb_draw.h26 pixel_to_pat( u32 bpp, u32 pixel) in pixel_to_pat() argument
30 return 0xfffffffffffffffful*pixel; in pixel_to_pat()
32 return 0x5555555555555555ul*pixel; in pixel_to_pat()
34 return 0x1111111111111111ul*pixel; in pixel_to_pat()
36 return 0x0101010101010101ul*pixel; in pixel_to_pat()
38 return 0x1001001001001001ul*pixel; in pixel_to_pat()
40 return 0x0001000100010001ul*pixel; in pixel_to_pat()
42 return 0x0001000001000001ul*pixel; in pixel_to_pat()
44 return 0x0000000100000001ul*pixel; in pixel_to_pat()
52 pixel_to_pat( u32 bpp, u32 pixel) in pixel_to_pat() argument
[all …]
/OK3568_Linux_fs/yocto/meta-rockchip/recipes-graphics/wayland/weston_10.0.2/
H A D0059-pixel-formats-Support-NV15-YU08-YU10.patch4 Subject: [PATCH 59/79] pixel-formats: Support NV15/YU08/YU10
10 libweston/pixel-formats.c | 12 ++++++++++++
11 libweston/pixel-formats.h | 12 ++++++++++++
14 diff --git a/libweston/pixel-formats.c b/libweston/pixel-formats.c
16 --- a/libweston/pixel-formats.c
17 +++ b/libweston/pixel-formats.c
37 diff --git a/libweston/pixel-formats.h b/libweston/pixel-formats.h
39 --- a/libweston/pixel-formats.h
40 +++ b/libweston/pixel-formats.h
58 * Contains information about pixel formats, mapping format codes from
H A D0017-pixman-renderer-Support-yuv-formats.patch10 libweston/pixel-formats.c | 11 +++++++++++
14 diff --git a/libweston/pixel-formats.c b/libweston/pixel-formats.c
16 --- a/libweston/pixel-formats.c
17 +++ b/libweston/pixel-formats.c
/OK3568_Linux_fs/external/xserver/dix/
H A Dcolormap.c718 pdef->pixel = ((Pixel) i << pVisual->offsetRed) | in UpdateColors()
733 pdef->pixel = i; in UpdateColors()
765 Pixel pixel, Free = 0; in FindColor() local
772 if ((pixel = *pPixel) >= size) in FindColor()
773 pixel = 0; in FindColor()
775 for (pent = pentFirst + pixel, count = size; --count >= 0;) { in FindColor()
780 *pPixel = pixel; in FindColor()
797 Free = pixel; in FindColor()
805 pixel++; in FindColor()
806 if (pixel >= size) { in FindColor()
[all …]
/OK3568_Linux_fs/external/xserver/render/
H A Dmiindex.c48 Pixel pixel; in miBuildRenderColormap() local
146 pixel = 0; in miBuildRenderColormap()
151 &blue, &pixel, 0) != Success) in miBuildRenderColormap()
153 used[pixel] = TRUE; in miBuildRenderColormap()
156 pixel = 0; in miBuildRenderColormap()
158 if (AllocColor(pColormap, &red, &green, &blue, &pixel, 0) != Success) in miBuildRenderColormap()
160 used[pixel] = TRUE; in miBuildRenderColormap()
183 Pixel pixel = *pixels++; in FindBestColor() local
184 CARD32 v = pIndexed->rgba[pixel]; in FindBestColor()
195 best = pixel; in FindBestColor()
[all …]
H A Dmipict.c392 miRenderColorToPixel(PictFormatPtr format, xRenderColor * color, CARD32 *pixel) in miRenderColorToPixel() argument
407 *pixel = r | g | b | a; in miRenderColorToPixel()
415 *pixel = miIndexToEnt15(pIndexed, (r << 10) | (g << 5) | b); in miRenderColorToPixel()
421 *pixel = miIndexToEntY24(pIndexed, (r << 16) | (g << 8) | b); in miRenderColorToPixel()
428 miFillColor(CARD32 pixel, int bits) in miFillColor() argument
431 pixel |= pixel << bits; in miFillColor()
434 return (CARD16) pixel; in miFillColor()
472 miRenderPixelToColor(PictFormatPtr format, CARD32 pixel, xRenderColor * color) in miRenderPixelToColor() argument
479 r = (pixel >> format->direct.red) & format->direct.redMask; in miRenderPixelToColor()
480 g = (pixel >> format->direct.green) & format->direct.greenMask; in miRenderPixelToColor()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/fbtft/
H A Dfb_agm1264k-fl.c260 signed short pixel, signed short error) in iterate_diffusion_matrix() argument
278 *write_pos = pixel; in iterate_diffusion_matrix()
308 u16 pixel = vmem16[y * par->info->var.xres + x]; in write_vmem() local
309 u16 b = pixel & 0x1f; in write_vmem()
310 u16 g = (pixel & (0x3f << 5)) >> 5; in write_vmem()
311 u16 r = (pixel & (0x1f << (5 + 6))) >> (5 + 6); in write_vmem()
313 pixel = (299 * r + 587 * g + 114 * b) / 200; in write_vmem()
314 if (pixel > 255) in write_vmem()
315 pixel = 255; in write_vmem()
319 (signed short)gamma_correction_table[pixel]; in write_vmem()
[all …]
H A Dfb_ssd1325.c61 static uint8_t rgb565_to_g16(u16 pixel) in rgb565_to_g16() argument
63 u16 b = pixel & 0x1f; in rgb565_to_g16()
64 u16 g = (pixel & (0x3f << 5)) >> 5; in rgb565_to_g16()
65 u16 r = (pixel & (0x1f << (5 + 6))) >> (5 + 6); in rgb565_to_g16()
67 pixel = (299 * r + 587 * g + 114 * b) / 195; in rgb565_to_g16()
68 if (pixel > 255) in rgb565_to_g16()
69 pixel = 255; in rgb565_to_g16()
70 return (uint8_t)pixel / 16; in rgb565_to_g16()
/OK3568_Linux_fs/external/xserver/hw/xwin/
H A Dwincmap.c210 pCmapPriv->peColors[pdefs[0].pixel + i].peRed = nRed; in winStoreColors()
211 pCmapPriv->peColors[pdefs[0].pixel + i].peGreen = nGreen; in winStoreColors()
212 pCmapPriv->peColors[pdefs[0].pixel + i].peBlue = nBlue; in winStoreColors()
215 pCmapPriv->rgbColors[pdefs[0].pixel + i].rgbRed = nRed; in winStoreColors()
216 pCmapPriv->rgbColors[pdefs[0].pixel + i].rgbGreen = nGreen; in winStoreColors()
217 pCmapPriv->rgbColors[pdefs[0].pixel + i].rgbBlue = nBlue; in winStoreColors()
328 Pixel pixel; /* Pixel == CARD32 */ in winGetPaletteDIB() local
355 pixel = i; in winGetPaletteDIB()
364 "%d %d %d\n", (unsigned int)pixel, nRed, nGreen, nBlue); in winGetPaletteDIB()
368 if (AllocColor(pcmap, &nRed, &nGreen, &nBlue, &pixel, 0) != Success) { in winGetPaletteDIB()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/drmDsp/
H A Dbo.c36 uint8_t* pixel = row + j * 4; in draw_rect() local
40 pixel[0] = b; in draw_rect()
41 pixel[1] = g; in draw_rect()
42 pixel[2] = r; in draw_rect()
43 pixel[3] = a; in draw_rect()
45 pixel[0] = r; in draw_rect()
46 pixel[1] = g; in draw_rect()
47 pixel[2] = b; in draw_rect()
48 pixel[3] = a; in draw_rect()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/
H A DCVE-2019-7635.patch8 CVE-2019-7635: Reject BMP images with pixel colors out the palette
9 If a 1-, 4-, or 8-bit per pixel BMP image declares less used colors
11 number of used colors is created. If some of the image's pixel
18 This patch fixes it by validing each pixel's color to be less than the
36 *(bits+i) = (pixel>>shift);
37 pixel <<= ExpandBMP;
40 + "A BMP image contains a pixel with a color out of the palette");
55 + "A BMP image contains a pixel with a color out of the palette");
/OK3568_Linux_fs/external/xserver/mi/
H A Dmiwideline.h77 #define MILINESETPIXEL(pDrawable, pGC, pixel, oldPixel) { \ argument
79 if (pixel != oldPixel) { \
81 gcval.val = pixel; \
86 #define MILINERESETPIXEL(pDrawable, pGC, pixel, oldPixel) { \ argument
87 if (pixel != oldPixel) { \
H A Dmiwideline.c592 AppendSpanGroup(GCPtr pGC, unsigned long pixel, Spans * spanPtr, in AppendSpanGroup() argument
597 if (pixel == pGC->fgPixel) { in AppendSpanGroup()
610 unsigned long pixel, SpanDataPtr spanData,
620 fillSpans(DrawablePtr pDrawable, GCPtr pGC, unsigned long pixel, Spans * spans, in fillSpans() argument
627 if (pixel != oldPixel.val) { in fillSpans()
628 tmpPixel.val = (XID) pixel; in fillSpans()
636 if (pixel != oldPixel.val) { in fillSpans()
642 AppendSpanGroup(pGC, pixel, spans, spanData); in fillSpans()
646 miFillPolyHelper(DrawablePtr pDrawable, GCPtr pGC, unsigned long pixel, in miFillPolyHelper() argument
736 fillSpans(pDrawable, pGC, pixel, &spanRec, spanData); in miFillPolyHelper()
[all …]
/OK3568_Linux_fs/external/xserver/glamor/
H A Dglamor_transform.c116 CARD32 pixel, in glamor_set_color_depth() argument
122 glamor_get_rgba_from_pixel(pixel, in glamor_set_color_depth()
138 CARD32 pixel; in glamor_set_solid() local
144 pixel = gc->fgPixel; in glamor_set_solid()
149 pixel = 0; in glamor_set_solid()
152 pixel = ~pixel; in glamor_set_solid()
155 pixel = ~0 & gc->planemask; in glamor_set_solid()
161 glamor_set_color(pixmap, pixel, uniform); in glamor_set_solid()
/OK3568_Linux_fs/kernel/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-image-process.rst24 Data bus frequency. Together with the media bus pixel code, bus type
25 (clock cycles per sample), the data bus frequency defines the pixel
26 rate (``V4L2_CID_PIXEL_RATE``) in the pixel array (or possibly
28 be calculated from the pixel clock, image width and height and
29 horizontal and vertical blanking. While the pixel rate control may
30 be defined elsewhere than in the subdev containing the pixel array,
32 because only on the pixel array it can be assumed that the vertical
34 allowed in the pixel array. The selection of frame rate is performed
H A Dfourcc.rst3 Guidelines for Video4Linux pixel format 4CCs
8 the pixel format, compression and colour space. The interpretation of the
23 2nd character: pixel order
30 3rd character: uncompressed bits-per-pixel 0--9, A--
32 4th character: compressed bits-per-pixel 0--9, A--
H A Dvidioc-enum-framesizes.rst30 that contains an index and pixel format and receives a frame width
37 and height in pixels) that the device supports for the given pixel
40 The supported pixel formats can be obtained by using the
101 - Width of the frame [pixel].
104 - Height of the frame [pixel].
118 - Minimum frame width [pixel].
121 - Maximum frame width [pixel].
124 - Frame width step size [pixel].
127 - Minimum frame height [pixel].
130 - Maximum frame height [pixel].
[all …]
/OK3568_Linux_fs/buildroot/package/weston/
H A D0056-pixel-formats-Support-NV15-YU08-YU10.patch4 Subject: [PATCH 56/79] pixel-formats: Support NV15/YU08/YU10
10 libweston/pixel-formats.c | 12 ++++++++++++
14 diff --git a/libweston/pixel-formats.c b/libweston/pixel-formats.c
16 --- a/libweston/pixel-formats.c
17 +++ b/libweston/pixel-formats.c
H A D0020-pixman-renderer-Support-yuv-formats.patch10 libweston/pixel-formats.c | 11 +++++++++++
14 diff --git a/libweston/pixel-formats.c b/libweston/pixel-formats.c
16 --- a/libweston/pixel-formats.c
17 +++ b/libweston/pixel-formats.c
/OK3568_Linux_fs/yocto/meta-rockchip/recipes-graphics/wayland/weston_11.0.1/
H A D0056-pixel-formats-Support-NV15-YU08-YU10.patch4 Subject: [PATCH 56/93] pixel-formats: Support NV15/YU08/YU10
10 libweston/pixel-formats.c | 12 ++++++++++++
14 diff --git a/libweston/pixel-formats.c b/libweston/pixel-formats.c
16 --- a/libweston/pixel-formats.c
17 +++ b/libweston/pixel-formats.c
H A D0020-pixman-renderer-Support-yuv-formats.patch10 libweston/pixel-formats.c | 11 +++++++++++
14 diff --git a/libweston/pixel-formats.c b/libweston/pixel-formats.c
16 --- a/libweston/pixel-formats.c
17 +++ b/libweston/pixel-formats.c
/OK3568_Linux_fs/external/rockit/mpi/example/common/
H A Dtest_comm_bmp.cpp38 RK_U32 pixel = 0; in OSD_MAKECOLOR_ARGB() local
47 pixel |= (1 << tmp); in OSD_MAKECOLOR_ARGB()
52 pixel |= (r1 << compinfo.alen | (g1 << (compinfo.rlen + compinfo.alen)) in OSD_MAKECOLOR_ARGB()
54 return pixel; in OSD_MAKECOLOR_ARGB()
59 RK_U32 pixel = 0; in OSD_MAKECOLOR_BGRA() local
68 pixel |= (1 << tmp); in OSD_MAKECOLOR_BGRA()
73 pixel |= ((r1 << (compinfo.blen + compinfo.glen)) | (g1 << compinfo.blen) | b1); in OSD_MAKECOLOR_BGRA()
74 return pixel; in OSD_MAKECOLOR_BGRA()
/OK3568_Linux_fs/external/xserver/miext/shadow/
H A Dsh3224.c52 CARD32 pixel; in sh24_32BltLine() local
60 pixel = READ(src++); in sh24_32BltLine()
61 Put24(dst, pixel); in sh24_32BltLine()
94 pixel = READ(src++); in sh24_32BltLine()
95 Put24(dst, pixel); in sh24_32BltLine()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/armada/
H A Dmarvell,dove-lcd.txt13 "axiclk" - axi bus clock for pixel clock
14 "plldivider" - pll divider clock for pixel clock
15 "ext_ref_clk0" - external clock 0 for pixel clock
16 "ext_ref_clk1" - external clock 1 for pixel clock

12345678910>>...18