Home
last modified time | relevance | path

Searched refs:height (Results 1 – 25 of 1061) sorted by relevance

12345678910>>...43

/drivers/media/platform/omap/
Domap_voutlib.c48 crop->height = (pix->height < fbuf->fmt.height) ? in omap_vout_default_crop()
49 pix->height : fbuf->fmt.height; in omap_vout_default_crop()
51 crop->height &= ~1; in omap_vout_default_crop()
53 crop->top = ((pix->height - crop->height) >> 1) & ~1; in omap_vout_default_crop()
79 try_win.height += try_win.top; in omap_vout_try_window()
84 try_win.height = (try_win.height < fbuf->fmt.height) ? in omap_vout_try_window()
85 try_win.height : fbuf->fmt.height; in omap_vout_try_window()
88 if (try_win.top + try_win.height > fbuf->fmt.height) in omap_vout_try_window()
89 try_win.height = fbuf->fmt.height - try_win.top; in omap_vout_try_window()
91 try_win.height &= ~1; in omap_vout_try_window()
[all …]
/drivers/staging/media/atomisp/pci/runtime/frame/src/
Dframe.c35 unsigned int height,
40 unsigned int height,
47 unsigned int height,
53 unsigned int height,
77 unsigned int height,
84 unsigned int height,
115 ia_css_frame_allocate(frame, info->res.width, info->res.height, in ia_css_frame_allocate_from_info()
125 unsigned int height, in ia_css_frame_allocate() argument
132 if (!frame || width == 0 || height == 0) in ia_css_frame_allocate()
137 width, height, format, padded_width, raw_bit_depth); in ia_css_frame_allocate()
[all …]
/drivers/gpu/drm/selftests/
Dtest-drm_framebuffer.c29 .cmd = { .width = 600, .height = 600, .pixel_format = DRM_FORMAT_ABGR8888,
34 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
39 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
44 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
49 .cmd = { .width = MAX_WIDTH + 1, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
54 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
59 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = 0,
64 .cmd = { .width = 0, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
69 .cmd = { .width = MAX_WIDTH, .height = 0, .pixel_format = DRM_FORMAT_ABGR8888,
74 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888,
[all …]
/drivers/gpu/drm/msm/disp/dpu1/
Dmsm_media_info.h895 static unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument
899 if (!height) in VENUS_Y_SCANLINES()
908 sclines = MSM_MEDIA_ALIGN(height, 32); in VENUS_Y_SCANLINES()
912 sclines = MSM_MEDIA_ALIGN(height, 16); in VENUS_Y_SCANLINES()
926 static unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument
930 if (!height) in VENUS_UV_SCANLINES()
940 sclines = MSM_MEDIA_ALIGN((height + 1) >> 1, 16); in VENUS_UV_SCANLINES()
943 sclines = MSM_MEDIA_ALIGN((height + 1) >> 1, 32); in VENUS_UV_SCANLINES()
987 static unsigned int VENUS_Y_META_SCANLINES(int color_fmt, int height) in VENUS_Y_META_SCANLINES() argument
991 if (!height) in VENUS_Y_META_SCANLINES()
[all …]
/drivers/video/fbdev/core/
Dfbcon_cw.c28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in cw_update_attr()
29 int width = (vc->vc_font.height + 7) >> 3; in cw_update_attr()
49 int sx, int dy, int dx, int height, int width) in cw_bmove() argument
55 area.sx = vxres - ((sy + height) * vc->vc_font.height); in cw_bmove()
57 area.dx = vxres - ((dy + height) * vc->vc_font.height); in cw_bmove()
59 area.width = height * vc->vc_font.height; in cw_bmove()
60 area.height = width * vc->vc_font.width; in cw_bmove()
66 int sx, int height, int width) in cw_clear() argument
74 region.dx = vxres - ((sy + height) * vc->vc_font.height); in cw_clear()
76 region.height = width * vc->vc_font.width; in cw_clear()
[all …]
Dfbcon_ud.c28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in ud_update_attr()
30 unsigned int cellsize = vc->vc_font.height * width; in ud_update_attr()
49 int sx, int dy, int dx, int height, int width) in ud_bmove() argument
56 area.sy = vyres - ((sy + height) * vc->vc_font.height); in ud_bmove()
58 area.dy = vyres - ((dy + height) * vc->vc_font.height); in ud_bmove()
60 area.height = height * vc->vc_font.height; in ud_bmove()
67 int sx, int height, int width) in ud_clear() argument
76 region.dy = vyres - ((sy + height) * vc->vc_font.height); in ud_clear()
79 region.height = height * vc->vc_font.height; in ud_clear()
105 image->height); in ud_putcs_aligned()
[all …]
Dbitblit.c28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in update_attr()
30 unsigned int cellsize = vc->vc_font.height * width; in update_attr()
47 int sx, int dy, int dx, int height, int width) in bit_bmove() argument
52 area.sy = sy * vc->vc_font.height; in bit_bmove()
54 area.dy = dy * vc->vc_font.height; in bit_bmove()
55 area.height = height * vc->vc_font.height; in bit_bmove()
62 int sx, int height, int width) in bit_clear() argument
69 region.dy = sy * vc->vc_font.height; in bit_clear()
71 region.height = height * vc->vc_font.height; in bit_clear()
97 image->height); in bit_putcs_aligned()
[all …]
Dfbcon_rotate.h40 static inline void rotate_ud(const char *in, char *out, u32 width, u32 height) in rotate_ud() argument
47 for (i = 0; i < height; i++) { in rotate_ud()
51 height - (1 + i), in rotate_ud()
58 static inline void rotate_cw(const char *in, char *out, u32 width, u32 height) in rotate_cw() argument
60 int i, j, h = height, w = width; in rotate_cw()
61 int shift = (8 - (height % 8)) & 7; in rotate_cw()
64 height = (height + 7) & ~7; in rotate_cw()
69 pattern_set_bit(height - 1 - i - shift, j, in rotate_cw()
70 height, out); in rotate_cw()
76 static inline void rotate_ccw(const char *in, char *out, u32 width, u32 height) in rotate_ccw() argument
[all …]
Dfbcon_ccw.c28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in ccw_update_attr()
29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr()
30 int mod = vc->vc_font.height % 8; in ccw_update_attr()
64 int sx, int dy, int dx, int height, int width) in ccw_bmove() argument
70 area.sx = sy * vc->vc_font.height; in ccw_bmove()
72 area.dx = dy * vc->vc_font.height; in ccw_bmove()
74 area.width = height * vc->vc_font.height; in ccw_bmove()
75 area.height = width * vc->vc_font.width; in ccw_bmove()
81 int sx, int height, int width) in ccw_clear() argument
89 region.dx = sy * vc->vc_font.height; in ccw_clear()
[all …]
/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c63 cmd[5] = (area->height << 16) | area->width; in mb86290fb_copyarea()
72 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit1() argument
97 (GDC_CMD_BITMAP << 16) | (2 + (step * height)); in mb86290fb_imageblit1()
99 cmd[8] = (height << 16) | width; in mb86290fb_imageblit1()
101 while (i < height) { in mb86290fb_imageblit1()
121 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit8() argument
130 (GDC_CMD_BLT_DRAW << 16) | (2 + (height * step)); in mb86290fb_imageblit8()
132 cmd[2] = (height << 16) | width; in mb86290fb_imageblit8()
138 while (i < height) { in mb86290fb_imageblit8()
160 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit16() argument
[all …]
/drivers/video/fbdev/sis/
Dsis_accel.c105 int src_y, int dst_x, int dst_y, int width, int height) in SiS300SubsequentScreenToScreenCopy() argument
126 src_y += height-1; in SiS300SubsequentScreenToScreenCopy()
127 dst_y += height-1; in SiS300SubsequentScreenToScreenCopy()
129 SiS300SetupRect(width, height) in SiS300SubsequentScreenToScreenCopy()
192 int dst_x, int dst_y, int width, int height) in SiS310SubsequentScreenToScreenCopy() argument
208 if((mymax - mymin) < height) { in SiS310SubsequentScreenToScreenCopy()
231 SiS310SetupRect(width, height) in SiS310SubsequentScreenToScreenCopy()
311 int width, height; in fbcon_sis_fillrect() local
322 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) in fbcon_sis_fillrect()
327 height = ((rect->dy + rect->height) > vyres) ? (vyres - rect->dy) : rect->height; in fbcon_sis_fillrect()
[all …]
/drivers/gpu/drm/panel/
Dpanel-simple.c71 unsigned int height; member
224 connector->display_info.height_mm = panel->desc->size.height; in panel_simple_get_non_edid_modes()
440 of_property_read_u32(np, "height-mm", &desc->size.height); in panel_dpi_probe()
682 .height = 136,
708 .height = 58,
732 .height = 91,
757 .height = 86,
781 .height = 125,
806 .height = 136,
829 .height = 125,
[all …]
/drivers/gpu/drm/
Ddrm_panel_orientation_quirks.c28 int height; member
35 .height = 1280,
41 .height = 1280,
49 .height = 1920,
57 .height = 1920,
65 .height = 1920,
73 .height = 1280,
82 .height = 1280,
90 .height = 1280,
97 .height = 1920,
[all …]
/drivers/media/pci/solo6x10/
Dsolo6x10-enc.c26 unsigned long height; in solo_capture_config() local
51 height = solo_dev->video_vsize; in solo_capture_config()
54 SOLO_DIM_V_MB_NUM_FRAME(height / 8) | in solo_capture_config()
55 SOLO_DIM_V_MB_NUM_FIELD(height / 16)); in solo_capture_config()
59 height = solo_dev->video_vsize; in solo_capture_config()
62 SOLO_DIM_V_MB_NUM_FRAME(height / 8) | in solo_capture_config()
63 SOLO_DIM_V_MB_NUM_FIELD(height / 16)); in solo_capture_config()
67 height = solo_dev->video_vsize / 2; in solo_capture_config()
70 SOLO_DIM_V_MB_NUM_FRAME(height / 8) | in solo_capture_config()
71 SOLO_DIM_V_MB_NUM_FIELD(height / 16)); in solo_capture_config()
[all …]
/drivers/firmware/efi/
Dearlycon.c89 u32 i, height; in efi_earlycon_scroll_up() local
92 height = screen_info.lfb_height; in efi_earlycon_scroll_up()
94 for (i = 0; i < height - font->height; i++) { in efi_earlycon_scroll_up()
99 src = efi_earlycon_map((i + font->height) * len, len); in efi_earlycon_scroll_up()
121 src = font->data + c * font->height * bytes + h * bytes; in efi_earlycon_write_char()
159 for (h = 0; h < font->height; h++) { in efi_earlycon_write()
185 efi_y += font->height; in efi_earlycon_write()
192 efi_y += font->height; in efi_earlycon_write()
195 if (efi_y + font->height > si->lfb_height) { in efi_earlycon_write()
198 efi_y -= font->height; in efi_earlycon_write()
[all …]
/drivers/media/i2c/
Dtw9910.c223 unsigned short height; member
243 .height = 480,
250 .height = 480,
257 .height = 240,
264 .height = 240,
271 .height = 120,
278 .height = 120,
288 .height = 576,
295 .height = 576,
302 .height = 288,
[all …]
/drivers/media/test-drivers/vivid/
Dvivid-vid-cap.c88 unsigned h = dev->fmt_cap_rect.height; in vid_cap_queue_setup()
161 dev->fmt_cap_rect.height) / in vid_cap_buf_prepare()
370 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect()
371 return dev->src_rect.height == 480 ? in vivid_get_pixel_aspect()
391 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; in vivid_update_format_cap()
401 dev->src_rect.height = 480; in vivid_update_format_cap()
405 dev->src_rect.height = 576; in vivid_update_format_cap()
413 dev->src_rect.height = bt->height; in vivid_update_format_cap()
437 if (bt->width == 720 && bt->height <= 576) in vivid_update_format_cap()
452 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap()
[all …]
Dvivid-vid-out.c30 unsigned h = dev->fmt_out_rect.height; in vid_out_queue_setup()
107 unsigned int h = dev->fmt_out_rect.height; in vid_out_buf_prepare()
229 dev->sink_rect.height = 480; in vivid_update_format_out()
233 dev->sink_rect.height = 576; in vivid_update_format_out()
241 dev->sink_rect.height = bt->height; in vivid_update_format_out()
257 if (bt->width == 720 && bt->height <= 576) in vivid_update_format_out()
274 dev->crop_out.height /= 2; in vivid_update_format_out()
310 dev->sink_rect.width == 720 && dev->sink_rect.height <= 576) in vivid_get_pixel_aspect()
311 return dev->sink_rect.height == 480 ? in vivid_get_pixel_aspect()
326 mp->height = dev->fmt_out_rect.height; in vivid_g_fmt_vid_out()
[all …]
/drivers/staging/media/rkisp1/
Drkisp1-resizer.c236 sink_crop->height == sink_fmt->height && in rkisp1_dcrop_config()
247 rkisp1_write(rkisp1, sink_crop->height, rsz->config->dual_crop.v_size); in rkisp1_dcrop_config()
253 sink_fmt->width, sink_fmt->height, in rkisp1_dcrop_config()
254 sink_crop->width, sink_crop->height); in rkisp1_dcrop_config()
368 if (sink_y->height != src_y->height) { in rkisp1_rsz_config_regs()
370 if (sink_y->height < src_y->height) in rkisp1_rsz_config_regs()
372 ratio = rkisp1_rsz_calc_ratio(sink_y->height, src_y->height); in rkisp1_rsz_config_regs()
376 if (sink_c->height != src_c->height) { in rkisp1_rsz_config_regs()
378 if (sink_c->height < src_c->height) in rkisp1_rsz_config_regs()
380 ratio = rkisp1_rsz_calc_ratio(sink_c->height, src_c->height); in rkisp1_rsz_config_regs()
[all …]
/drivers/video/fbdev/
Datafb_mfb.c25 int height, int width) in atafb_mfb_copyarea() argument
33 fb_memmove(dest, src, height * (width >> 3)); in atafb_mfb_copyarea()
37 for (rows = height; rows--;) { in atafb_mfb_copyarea()
43 src = (u8 *)info->screen_base + (sy + height - 1) * next_line + (sx >> 3); in atafb_mfb_copyarea()
44 dest = (u8 *)info->screen_base + (dy + height - 1) * next_line + (dx >> 3); in atafb_mfb_copyarea()
45 for (rows = height; rows--;) { in atafb_mfb_copyarea()
54 int sy, int sx, int height, int width) in atafb_mfb_fillrect() argument
63 fb_memset255(dest, height * (width >> 3)); in atafb_mfb_fillrect()
65 fb_memclear(dest, height * (width >> 3)); in atafb_mfb_fillrect()
67 for (rows = height; rows--; dest += next_line) { in atafb_mfb_fillrect()
/drivers/video/fbdev/matrox/
Dmatroxfb_accel.c209 int sx, int dy, int dx, int height, int width) in matrox_accel_bmove() argument
234 end = (sy+height-1)*vxres+sx+curr_ydstorg(minfo); in matrox_accel_bmove()
236 dy += height-1; in matrox_accel_bmove()
243 mga_ydstlen(dy, height); in matrox_accel_bmove()
250 int sy, int sx, int dy, int dx, int height, in matrox_accel_bmove_lin() argument
276 end = (sy+height-1)*vxres+sx+curr_ydstorg(minfo); in matrox_accel_bmove_lin()
278 dy += height-1; in matrox_accel_bmove_lin()
286 mga_outl(M_LEN | M_EXEC, height); in matrox_accel_bmove_lin()
298 …es_virtual >> 1, area->sy, area->sx >> 1, area->dy, area->dx >> 1, area->height, area->width >> 1); in matroxfb_cfb4_copyarea()
304 … minfo->fbcon.var.xres_virtual, area->sy, area->sx, area->dy, area->dx, area->height, area->width); in matroxfb_copyarea()
[all …]
/drivers/media/platform/omap3isp/
Dispresizer.c351 u32 width, u32 height) in resizer_set_output_size() argument
358 rgval |= (height << ISPRSZ_OUT_SIZE_VERT_SHIFT) in resizer_set_output_size()
414 u32 width, u32 height) in resizer_set_input_size() argument
421 rgval |= (height << ISPRSZ_IN_SIZE_VERT_SHIFT) in resizer_set_input_size()
505 clock = div_u64((u64)limit * res->crop.active.height, ofmt->height); in omap3isp_resizer_max_rate()
587 * res->crop.active.height; in resizer_adjust_bandwidth()
793 unsigned int height; in resizer_calc_ratios() local
799 min_height = ((input->height - 7) * 256 - 32 - 64 * spv) / 1024 + 1; in resizer_calc_ratios()
801 max_height = ((input->height - 4) * 256 + 255 - 16 - 32 * spv) / 64 + 1; in resizer_calc_ratios()
803 output->height = clamp(output->height, min_height, max_height); in resizer_calc_ratios()
[all …]
/drivers/media/platform/rcar-vin/
Drcar-v4l2.c147 return pix->bytesperline * pix->height * 3 / 2; in rvin_format_sizeimage()
149 return pix->bytesperline * pix->height * 2; in rvin_format_sizeimage()
151 return pix->bytesperline * pix->height; in rvin_format_sizeimage()
198 &pix->height, 2, vin->info->max_height, 0, 0); in rvin_format_align()
204 pix->width, pix->height, pix->bytesperline, pix->sizeimage); in rvin_format_align()
228 vin->src_rect.height = vin->format.height; in rvin_reset_format()
233 vin->format.height *= 2; in rvin_reset_format()
243 vin->compose.height = vin->format.height; in rvin_reset_format()
259 u32 width, height; in rvin_try_format() local
274 height = pix->height; in rvin_try_format()
[all …]
/drivers/media/platform/vsp1/
Dvsp1_rwpf.c97 format->height = clamp_t(unsigned int, fmt->format.height, in vsp1_rwpf_set_format()
112 crop->height = fmt->format.height; in vsp1_rwpf_set_format()
121 format->width = fmt->format.height; in vsp1_rwpf_set_format()
122 format->height = fmt->format.width; in vsp1_rwpf_set_format()
165 sel->r.height = format->height; in vsp1_rwpf_get_selection()
218 sel->r.height = round_down(sel->r.height, 2); in vsp1_rwpf_set_selection()
222 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); in vsp1_rwpf_set_selection()
225 sel->r.height = min_t(unsigned int, sel->r.height, in vsp1_rwpf_set_selection()
226 format->height - sel->r.top); in vsp1_rwpf_set_selection()
235 format->height = crop->height; in vsp1_rwpf_set_selection()
/drivers/staging/media/meson/vdec/
Dvdec_helpers.c54 u32 amvdec_am21c_body_size(u32 width, u32 height) in amvdec_am21c_body_size() argument
57 u32 height_32 = ALIGN(height, 32) / 32; in amvdec_am21c_body_size()
64 u32 amvdec_am21c_head_size(u32 width, u32 height) in amvdec_am21c_head_size() argument
67 u32 height_64 = ALIGN(height, 64) / 64; in amvdec_am21c_head_size()
73 u32 amvdec_am21c_size(u32 width, u32 height) in amvdec_am21c_size() argument
75 return ALIGN(amvdec_am21c_body_size(width, height) + in amvdec_am21c_size()
76 amvdec_am21c_head_size(width, height), SZ_64K); in amvdec_am21c_size()
99 u32 height, u32 reg) in set_canvas_yuv420m() argument
117 width, height, MESON_CANVAS_WRAP_NONE, in set_canvas_yuv420m()
123 width / 2, height / 2, MESON_CANVAS_WRAP_NONE, in set_canvas_yuv420m()
[all …]

12345678910>>...43