Home
last modified time | relevance | path

Searched refs:bpp (Results 1 – 25 of 848) sorted by relevance

12345678910>>...34

/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dsc/
H A Drc_calc.c45 enum max_min max_min, float bpp) in get_qp_set() argument
79 index = (bpp - table[0].bpp) * 2; in get_qp_set()
110 static void get_ofs_set(qp_set ofs, enum colour_mode mode, float bpp) in get_ofs_set() argument
115bpp <= 6) ? (0) : ((((bpp >= 8) && (bpp <= 12))) ? (2) : ((bpp >= 15) ? (10) : ((((bpp > 6) && ( in get_ofs_set()
116bpp <= 6) ? (-2) : ((((bpp >= 8) && (bpp <= 12))) ? (0) : ((bpp >= 15) ? (8) : ((((bpp > 6) && ( in get_ofs_set()
117bpp <= 6) ? (-2) : ((((bpp >= 8) && (bpp <= 12))) ? (0) : ((bpp >= 15) ? (6) : ((((bpp > 6) && ( in get_ofs_set()
118bpp <= 6) ? (-4) : ((((bpp >= 8) && (bpp <= 12))) ? (-2) : ((bpp >= 15) ? (4) : ((((bpp > 6) && … in get_ofs_set()
119bpp <= 6) ? (-6) : ((((bpp >= 8) && (bpp <= 12))) ? (-4) : ((bpp >= 15) ? (2) : ((((bpp > 6) && … in get_ofs_set()
120 *p++ = (bpp <= 12) ? (-6) : ((bpp >= 15) ? (0) : (-6 + dsc_roundf((bpp - 12) * (6 / 3.0)))); in get_ofs_set()
121 *p++ = (bpp <= 12) ? (-8) : ((bpp >= 15) ? (-2) : (-8 + dsc_roundf((bpp - 12) * (6 / 3.0)))); in get_ofs_set()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/v4l2-core/
H A Dv4l2-common.c238 …24, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .… in v4l2_format_info()
239 …24, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .… in v4l2_format_info()
240 …24, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .… in v4l2_format_info()
241 …32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info()
242 …R32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info()
243 …X32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info()
244 …32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info()
245 …B32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info()
246 …X32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info()
247 …32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .… in v4l2_format_info()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/sunxi/sun8i-rotate/
H A Dsun8i_formats.c18 .bpp = { 4, 0, 0 },
26 .bpp = { 4, 0, 0 },
34 .bpp = { 4, 0, 0 },
42 .bpp = { 4, 0, 0 },
50 .bpp = { 4, 0, 0 },
58 .bpp = { 4, 0, 0 },
66 .bpp = { 4, 0, 0 },
74 .bpp = { 4, 0, 0 },
82 .bpp = { 3, 0, 0 },
90 .bpp = { 3, 0, 0 },
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rcar-du/
H A Drcar_du_kms.c41 .bpp = 16,
49 .bpp = 16,
57 .bpp = 16,
64 .bpp = 32,
72 .bpp = 32,
80 .bpp = 16,
88 .bpp = 16,
96 .bpp = 12,
104 .bpp = 12,
112 .bpp = 16,
[all …]
/OK3568_Linux_fs/kernel/drivers/media/test-drivers/vimc/
H A Dvimc-common.c27 .bpp = 3,
42 .bpp = 3,
48 .bpp = 4,
56 .bpp = 1,
62 .bpp = 1,
68 .bpp = 1,
74 .bpp = 1,
80 .bpp = 2,
86 .bpp = 2,
92 .bpp = 2,
[all …]
/OK3568_Linux_fs/kernel/drivers/video/fbdev/
H A Dc2p_iplan2.c48 static inline void store_iplan2(void *dst, u32 bpp, u32 d[4]) in store_iplan2() argument
52 for (i = 0; i < bpp/2; i++, dst += 4) in store_iplan2()
61 static inline void store_iplan2_masked(void *dst, u32 bpp, u32 d[4], u32 mask) in store_iplan2_masked() argument
65 for (i = 0; i < bpp/2; i++, dst += 4) in store_iplan2_masked()
86 u32 height, u32 dst_nextline, u32 src_nextline, u32 bpp) in c2p_iplan2() argument
96 dst += dy*dst_nextline+(dx & ~15)*bpp; in c2p_iplan2()
113 store_iplan2_masked(p, bpp, d.words, first); in c2p_iplan2()
114 p += bpp*2; in c2p_iplan2()
125 store_iplan2_masked(p, bpp, d.words, first); in c2p_iplan2()
126 p += bpp*2; in c2p_iplan2()
[all …]
H A Dc2p_planar.c48 static inline void store_planar(void *dst, u32 dst_inc, u32 bpp, u32 d[8]) in store_planar() argument
52 for (i = 0; i < bpp; i++, dst += dst_inc) in store_planar()
61 static inline void store_planar_masked(void *dst, u32 dst_inc, u32 bpp, in store_planar_masked() argument
66 for (i = 0; i < bpp; i++, dst += dst_inc) in store_planar_masked()
88 u32 src_nextline, u32 bpp) in c2p_planar() argument
113 store_planar_masked(p, dst_nextplane, bpp, d.words, in c2p_planar()
126 store_planar_masked(p, dst_nextplane, bpp, in c2p_planar()
136 store_planar(p, dst_nextplane, bpp, d.words); in c2p_planar()
146 store_planar_masked(p, dst_nextplane, bpp, in c2p_planar()
H A Dsh7760fb.c122 u16 lddfr, int *bpp, int *gray) in sh7760fb_get_color_info() argument
157 if (bpp) in sh7760fb_get_color_info()
158 *bpp = lbpp; in sh7760fb_get_color_info()
170 int ret, bpp; in sh7760fb_check_var() local
173 ret = sh7760fb_get_color_info(info->dev, par->pd->lddfr, &bpp, NULL); in sh7760fb_check_var()
177 var->bits_per_pixel = bpp; in sh7760fb_check_var()
204 int ret, bpp, gray; in sh7760fb_set_par() local
225 ret = sh7760fb_get_color_info(info->dev, par->pd->lddfr, &bpp, &gray); in sh7760fb_set_par()
230 vdln, bpp, gray ? "grayscale" : "color", in sh7760fb_set_par()
270 stride *= (bpp + 7) >> 3; in sh7760fb_set_par()
[all …]
H A Dtridentfb.c64 static int bpp = 8; variable
82 module_param(bpp, int, 0);
305 static void blade_init_accel(struct tridentfb_par *par, int pitch, int bpp) in blade_init_accel() argument
308 int tmp = bpp == 24 ? 2 : (bpp >> 4); in blade_init_accel()
379 static void xp_init_accel(struct tridentfb_par *par, int pitch, int bpp) in xp_init_accel() argument
381 unsigned char x = bpp == 24 ? 3 : (bpp >> 4); in xp_init_accel()
382 int v1 = pitch << (bpp == 24 ? 20 : (18 + x)); in xp_init_accel()
384 switch (pitch << (bpp >> 3)) { in xp_init_accel()
477 static void image_init_accel(struct tridentfb_par *par, int pitch, int bpp) in image_init_accel() argument
479 int tmp = bpp == 24 ? 2: (bpp >> 4); in image_init_accel()
[all …]
/OK3568_Linux_fs/kernel/drivers/video/fbdev/core/
H A Dsysimgblt.c58 int i, n, bpp = p->var.bits_per_pixel; in color_imageblit() local
59 u32 null_bits = 32 - bpp; in color_imageblit()
82 color <<= FB_LEFT_POS(p, bpp); in color_imageblit()
90 shift += bpp; in color_imageblit()
115 u32 shift, color = 0, bpp = p->var.bits_per_pixel; in slow_imageblit() local
118 u32 null_bits = 32 - bpp; in slow_imageblit()
124 fgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit()
125 bgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit()
153 shift += bpp; in slow_imageblit()
189 u32 fgx = fgcolor, bgx = bgcolor, bpp = p->var.bits_per_pixel; in fast_imageblit() local
[all …]
H A Dcfbimgblt.c83 int i, n, bpp = p->var.bits_per_pixel; in color_imageblit() local
84 u32 null_bits = 32 - bpp; in color_imageblit()
108 color <<= FB_LEFT_POS(p, bpp); in color_imageblit()
116 shift += bpp; in color_imageblit()
143 u32 shift, color = 0, bpp = p->var.bits_per_pixel; in slow_imageblit() local
146 u32 null_bits = 32 - bpp; in slow_imageblit()
153 fgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit()
154 bgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit()
182 shift += bpp; in slow_imageblit()
219 u32 fgx = fgcolor, bgx = bgcolor, bpp = p->var.bits_per_pixel; in fast_imageblit() local
[all …]
H A Dfb_draw.h26 pixel_to_pat( u32 bpp, u32 pixel) in pixel_to_pat() argument
28 switch (bpp) { in pixel_to_pat()
46 WARN(1, "pixel_to_pat(): unsupported pixelformat %d\n", bpp); in pixel_to_pat()
52 pixel_to_pat( u32 bpp, u32 pixel) in pixel_to_pat() argument
54 switch (bpp) { in pixel_to_pat()
72 WARN(1, "pixel_to_pat(): unsupported pixelformat %d\n", bpp); in pixel_to_pat()
148 unsigned bpp = info->var.bits_per_pixel; in fb_compute_bswapmask() local
150 if ((bpp < 8) && (info->var.nonstd & FB_NONSTD_REV_PIX_IN_B)) { in fb_compute_bswapmask()
155 bswapmask = 7 - bpp + 1; in fb_compute_bswapmask()
/OK3568_Linux_fs/external/linux-rga/core/
H A DRgaUtils.cpp140 float bpp = 0; in get_bpp_from_format() local
151 bpp = 2; in get_bpp_from_format()
154 bpp = 3; in get_bpp_from_format()
159 bpp = 4; in get_bpp_from_format()
164 bpp = 1.5; in get_bpp_from_format()
169 bpp = 2; in get_bpp_from_format()
175 bpp = 0.5; in get_bpp_from_format()
182 bpp = 1; in get_bpp_from_format()
188 bpp = 1.5; in get_bpp_from_format()
213 bpp = 2; in get_bpp_from_format()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gvt/
H A Dfb_decoder.c44 int bpp; /* Bits per pixel, 0 indicates invalid */ member
147 u32 tiled, int stride_mask, int bpp) in intel_vgpu_get_stride() argument
166 if (bpp == 8) in intel_vgpu_get_stride()
168 else if (bpp == 16 || bpp == 32 || bpp == 64) in intel_vgpu_get_stride()
171 gvt_dbg_core("skl: unsupported bpp:%d\n", bpp); in intel_vgpu_get_stride()
231 plane->bpp = skl_pixel_formats[fmt].bpp; in intel_vgpu_decode_primary_plane()
236 plane->bpp = bdw_pixel_formats[fmt].bpp; in intel_vgpu_decode_primary_plane()
240 if (!plane->bpp) { in intel_vgpu_decode_primary_plane()
261 _PRI_PLANE_STRIDE_MASK, plane->bpp); in intel_vgpu_decode_primary_plane()
282 u8 bpp; /* Bits per pixel; 0 indicates invalid */ member
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/shmobile/
H A Dshmob_drm_kms.c29 .bpp = 16,
34 .bpp = 24,
39 .bpp = 32,
44 .bpp = 12,
49 .bpp = 12,
54 .bpp = 16,
59 .bpp = 16,
64 .bpp = 24,
69 .bpp = 24,
111 unsigned int chroma_cpp = format->bpp == 24 ? 2 : 1; in shmob_drm_fb_create()
/OK3568_Linux_fs/kernel/drivers/staging/media/imx/
H A Dimx-media-utils.c24 .bpp = 16,
32 .bpp = 16,
36 .bpp = 12,
41 .bpp = 12,
46 .bpp = 16,
51 .bpp = 12,
56 .bpp = 16,
62 .bpp = 32,
70 .bpp = 16,
79 .bpp = 24,
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/dispnv04/
H A Darb.c45 int bpp; member
56 int pagemiss, cas, bpp; in nv04_calc_arb() local
68 bpp = arb->bpp; in nv04_calc_arb()
84 crtc_drain_rate = pclk_freq * bpp / 8; in nv04_calc_arb()
94 p1 = p1 * bpp / 8; in nv04_calc_arb()
124 drain_rate = pclk_freq * arb->bpp / 8; /* kB/s */ in nv10_calc_arb()
161 + (arb->bpp == 32 ? 8 : 4); /* Margin of error. */ in nv10_calc_arb()
193 nv04_update_arb(struct drm_device *dev, int VClk, int bpp, in nv04_update_arb() argument
207 sim_data.bpp = bpp; in nv04_update_arb()
251 nouveau_calc_arb(struct drm_device *dev, int vclk, int bpp, int *burst, int *lwm) in nouveau_calc_arb() argument
[all …]
/OK3568_Linux_fs/kernel/include/linux/sunrpc/
H A Dcache.h79 char **bpp, int *blen);
244 extern void qword_add(char **bpp, int *lp, char *str);
245 extern void qword_addhex(char **bpp, int *lp, char *buf, int blen);
246 extern int qword_get(char **bpp, char *dest, int bufsize);
248 static inline int get_int(char **bpp, int *anint) in get_int() argument
253 int len = qword_get(bpp, buf, sizeof(buf)); in get_int()
268 static inline int get_uint(char **bpp, unsigned int *anint) in get_uint() argument
271 int len = qword_get(bpp, buf, sizeof(buf)); in get_uint()
284 static inline int get_time(char **bpp, time64_t *time) in get_time() argument
288 int len = qword_get(bpp, buf, sizeof(buf)); in get_time()
[all …]
/OK3568_Linux_fs/external/xserver/fb/
H A Dfbscreen.c112 int bpp) in fbSetupScreen() argument
165 int dpix, int dpiy, int width, int bpp, in wfbFinishScreenInit() argument
170 int dpix, int dpiy, int width, int bpp) in wfbFinishScreenInit()
185 stride = (width * bpp) / 8; in wfbFinishScreenInit()
192 if (Ones(bpp) != 1) in wfbFinishScreenInit()
200 &defaultVisual, ((unsigned long) 1 << (bpp - 1)), in wfbFinishScreenInit()
217 int dpix, int dpiy, int width, int bpp, in wfbScreenInit() argument
220 if (!fbSetupScreen(pScreen, pbits, xsize, ysize, dpix, dpiy, width, bpp)) in wfbScreenInit()
223 width, bpp, setupWrap, finishWrap)) in wfbScreenInit()
230 int dpix, int dpiy, int width, int bpp) in fbScreenInit() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/
H A Dcapture_v1x.c27 .bpp = { 16 },
35 .bpp = { 8, 4, 4 },
43 .bpp = { 8, 16 },
51 .bpp = { 8, 16 },
59 .bpp = { 8, 8, 8 },
69 .bpp = { 8, 16 },
77 .bpp = { 8, 16 },
85 .bpp = { 8, 16 },
93 .bpp = { 8, 16 },
101 .bpp = { 8, 8, 8 },
[all …]
H A Dcapture_v21.c26 .bpp = { 16 },
35 .bpp = { 8, 4, 4 },
44 .bpp = { 8, 16 },
53 .bpp = { 8, 16 },
62 .bpp = { 8, 8, 8 },
73 .bpp = { 8, 16 },
82 .bpp = { 8, 16 },
91 .bpp = { 8, 16 },
100 .bpp = { 8, 16 },
109 .bpp = { 8, 8, 8 },
[all …]
/OK3568_Linux_fs/kernel/drivers/video/fbdev/omap/
H A Dlcdc.c49 int bpp; member
186 xelem = lcdc.xres * lcdc.bpp / 8 / esize; in setup_lcd_dma()
196 xelem = lcdc.yres * lcdc.bpp / 16; in setup_lcd_dma()
210 int bpp = lcdc.bpp; in setup_lcd_dma() local
217 bpp = 16; in setup_lcd_dma()
220 lcdc.screen_width * bpp / 8 / esize); in setup_lcd_dma()
312 lcdc.bpp = 8; in omap_lcdc_setup_plane()
317 lcdc.bpp = 16; in omap_lcdc_setup_plane()
322 lcdc.bpp = 16; in omap_lcdc_setup_plane()
328 lcdc.bpp = 12; in omap_lcdc_setup_plane()
[all …]
/OK3568_Linux_fs/kernel/Documentation/fb/
H A Darkfb.rst19 * 4 bpp pseudocolor modes (with 18bit palette, two variants)
20 * 8 bpp pseudocolor mode (with 18bit palette)
21 * 16 bpp truecolor modes (RGB 555 and RGB 565)
22 * 24 bpp truecolor mode (RGB 888)
23 * 32 bpp truecolor mode (RGB 888)
24 * text mode (activated by bpp = 0)
36 There are two 4 bpp modes. First mode (selected if nonstd == 0) is mode with
54 * support for fontwidths != 8 in 4 bpp modes
H A Ds3fb.rst26 * 4 bpp pseudocolor modes (with 18bit palette, two variants)
27 * 8 bpp pseudocolor mode (with 18bit palette)
28 * 16 bpp truecolor modes (RGB 555 and RGB 565)
29 * 24 bpp truecolor mode (RGB 888) on (only on Virge VX)
30 * 32 bpp truecolor mode (RGB 888) on (not on Virge VX)
31 * text mode (activated by bpp = 0)
45 There are two 4 bpp modes. First mode (selected if nonstd == 0) is mode with
62 * 24 bpp mode support on more cards
63 * support for fontwidths != 8 in 4 bpp modes
/OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/dp/
H A Ddp_panel.c116 u32 bpp = 0, data_rate_khz = 0; in dp_panel_get_supported_bpp() local
118 bpp = min_t(u32, mode_edid_bpp, max_supported_bpp); in dp_panel_get_supported_bpp()
123 while (bpp > min_supported_bpp) { in dp_panel_get_supported_bpp()
124 if (mode_pclk_khz * bpp <= data_rate_khz) in dp_panel_get_supported_bpp()
126 bpp -= 6; in dp_panel_get_supported_bpp()
129 return bpp; in dp_panel_get_supported_bpp()
232 u32 bpp = mode_edid_bpp; in dp_panel_get_mode_bpp() local
242 bpp = dp_link_bit_depth_to_bpp( in dp_panel_get_mode_bpp()
245 bpp = dp_panel_get_supported_bpp(dp_panel, mode_edid_bpp, in dp_panel_get_mode_bpp()
248 return bpp; in dp_panel_get_mode_bpp()
[all …]

12345678910>>...34