| /linux/drivers/media/platform/ti/omap/ |
| H A D | omap_voutlib.c | 48 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 …]
|
| /linux/drivers/media/platform/qcom/venus/ |
| H A D | hfi_plat_bufs_v6.c | 55 #define SIZE_H264D_LB_FE_TOP_DATA(width, height) \ argument 58 #define SIZE_H264D_LB_FE_TOP_CTRL(width, height) \ argument 61 #define SIZE_H264D_LB_FE_LEFT_CTRL(width, height) \ argument 62 (MAX_FE_NBR_CTRL_LCU64_LINE_BUFFER_SIZE * (((height) + 15) >> 4)) 64 #define SIZE_H264D_LB_SE_TOP_CTRL(width, height) \ argument 67 #define SIZE_H264D_LB_SE_LEFT_CTRL(width, height) \ argument 68 (MAX_SE_NBR_CTRL_LCU64_LINE_BUFFER_SIZE * (((height) + 15) >> 4)) 70 #define SIZE_H264D_LB_PE_TOP_DATA(width, height) \ argument 73 #define SIZE_H264D_LB_VSP_TOP(width, height) (((((width) + 15) >> 4) << 7)) argument 75 #define SIZE_H264D_LB_RECON_DMA_METADATA_WR(width, height) \ argument [all …]
|
| /linux/include/media/ |
| H A D | v4l2-rect.h | 22 r->height = size->height; in v4l2_rect_set_size_to() 35 if (r->height < min_size->height) in v4l2_rect_set_min_size() 36 r->height = min_size->height; in v4l2_rect_set_min_size() 49 if (r->height > max_size->height) in v4l2_rect_set_max_size() 50 r->height = max_size->height; in v4l2_rect_set_max_size() 68 if (r->top + r->height > boundary->top + boundary->height) in v4l2_rect_map_inside() 69 r->top = boundary->top + boundary->height - r->height; in v4l2_rect_map_inside() 82 return r1->width == r2->width && r1->height == r2->height; in v4l2_rect_same_size() 125 bottom = min(r1->top + r1->height, r2->top + r2->height); in v4l2_rect_intersect() 127 r->height = max(0, bottom - r->top); in v4l2_rect_intersect() [all …]
|
| /linux/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | msm_media_info.h | 895 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 …]
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fb_logo.c | 124 for (i = 0; i < logo->height; i++) in fb_set_logo() 135 for (i = 0; i < logo->height; i++) { in fb_set_logo() 182 static void fb_rotate_logo_ud(const u8 *in, u8 *out, u32 width, u32 height) in fb_rotate_logo_ud() argument 184 u32 size = width * height, i; in fb_rotate_logo_ud() 192 static void fb_rotate_logo_cw(const u8 *in, u8 *out, u32 width, u32 height) in fb_rotate_logo_cw() argument 194 int i, j, h = height - 1; in fb_rotate_logo_cw() 196 for (i = 0; i < height; i++) in fb_rotate_logo_cw() 198 out[height * j + h - i] = *in++; in fb_rotate_logo_cw() 201 static void fb_rotate_logo_ccw(const u8 *in, u8 *out, u32 width, u32 height) in fb_rotate_logo_ccw() argument 205 for (i = 0; i < height; i++) in fb_rotate_logo_ccw() [all …]
|
| H A D | bitblit.c | 28 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, int fg, int bg) in bit_clear() argument 68 region.dy = sy * vc->vc_font.height; in bit_clear() 70 region.height = height * vc->vc_font.height; in bit_clear() 100 image->height); in bit_putcs_aligned() [all …]
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_framebuffer_test.c | 36 .cmd = { .width = 600, .height = 600, .pixel_format = DRM_FORMAT_ABGR8888, 41 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 46 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 51 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 56 .cmd = { .width = MAX_WIDTH + 1, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 61 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 66 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = 0, 71 .cmd = { .width = 0, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, 76 .cmd = { .width = MAX_WIDTH, .height = 0, .pixel_format = DRM_FORMAT_ABGR8888, 81 .cmd = { .width = MAX_WIDTH, .height = MAX_HEIGHT, .pixel_format = DRM_FORMAT_ABGR8888, [all …]
|
| /linux/drivers/video/fbdev/mb862xx/ |
| H A D | mb862xxfb_accel.c | 61 cmd[5] = (area->height << 16) | area->width; in mb86290fb_copyarea() 70 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit1() argument 95 (GDC_CMD_BITMAP << 16) | (2 + (step * height)); in mb86290fb_imageblit1() 97 cmd[8] = (height << 16) | width; in mb86290fb_imageblit1() 99 while (i < height) { in mb86290fb_imageblit1() 119 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit8() argument 128 (GDC_CMD_BLT_DRAW << 16) | (2 + (height * step)); in mb86290fb_imageblit8() 130 cmd[2] = (height << 16) | width; in mb86290fb_imageblit8() 136 while (i < height) { in mb86290fb_imageblit8() 158 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit16() argument [all …]
|
| /linux/drivers/video/fbdev/sis/ |
| H A D | sis_accel.c | 105 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 …]
|
| /linux/scripts/kconfig/lxdialog/ |
| H A D | yesno.c | 14 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument 17 int y = height - 2; in print_buttons() 29 int dialog_yesno(const char *title, const char *prompt, int height, int width) in dialog_yesno() argument 35 if (getmaxy(stdscr) < (height + YESNO_HEIGHT_MIN)) in dialog_yesno() 42 y = (getmaxy(stdscr) - height) / 2; in dialog_yesno() 44 draw_shadow(stdscr, y, x, height, width); in dialog_yesno() 46 dialog = newwin(height, width, y, x); in dialog_yesno() 49 draw_box(dialog, 0, 0, height, width, in dialog_yesno() 52 mvwaddch(dialog, height - 3, 0, ACS_LTEE); in dialog_yesno() 63 print_buttons(dialog, height, width, 0); in dialog_yesno() [all …]
|
| H A D | textbox.c | 101 static void print_page(WINDOW *win, int height, int width) in print_page() argument 106 for (i = 0; i < height; i++) { in print_page() 156 int height, width, boxh, boxw; in dialog_textbox() local 177 getmaxyx(stdscr, height, width); in dialog_textbox() 178 if (height < TEXTBOX_HEIGHT_MIN || width < TEXTBOX_WIDTH_MIN) in dialog_textbox() 181 height = initial_height; in dialog_textbox() 183 if (height > 4) in dialog_textbox() 184 height -= 4; in dialog_textbox() 186 height = 0; in dialog_textbox() 197 y = (getmaxy(stdscr) - height) / 2; in dialog_textbox() [all …]
|
| H A D | inputbox.c | 16 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument 19 int y = height - 2; in print_buttons() 31 int dialog_inputbox(const char *title, const char *prompt, int height, int width, in dialog_inputbox() argument 48 if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGHT_MIN)) in dialog_inputbox() 55 y = (getmaxy(stdscr) - height) / 2; in dialog_inputbox() 57 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox() 59 dialog = newwin(height, width, y, x); in dialog_inputbox() 62 draw_box(dialog, 0, 0, height, width, in dialog_inputbox() 65 mvwaddch(dialog, height - 3, 0, ACS_LTEE); in dialog_inputbox() 84 print_buttons(dialog, height, width, 0); in dialog_inputbox() [all …]
|
| H A D | menubox.c | 91 int height) in print_arrows() argument 111 y = y + height + 1; in print_arrows() 115 if ((height < item_no) && (scroll + height < item_no)) { in print_arrows() 134 static void print_buttons(WINDOW * win, int height, int width, int selected) in print_buttons() argument 137 int y = height - 2; in print_buttons() 167 int height, width, menu_height; in dialog_menu() local 173 height = getmaxy(stdscr); in dialog_menu() 175 if (height < MENUBOX_HEIGHT_MIN || width < MENUBOX_WIDTH_MIN) in dialog_menu() 178 height -= 4; in dialog_menu() 180 menu_height = height - 10; in dialog_menu() [all …]
|
| /linux/drivers/gpu/drm/panel/ |
| H A D | panel-simple.c | 86 unsigned int height; member 272 connector->display_info.height_mm = panel->desc->size.height; in panel_simple_get_non_edid_modes() 471 of_property_read_u32(np, "height-mm", &desc->size.height); in panel_dpi_probe() 817 .height = 136, 843 .height = 58, 882 .height = 67, 897 .height = 91, 923 .height = 122, 952 .height = 86, 976 .height = 125, [all …]
|
| /linux/drivers/media/pci/solo6x10/ |
| H A D | solo6x10-enc.c | 26 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 …]
|
| /linux/drivers/firmware/efi/ |
| H A D | earlycon.c | 93 u32 i, height; in efi_earlycon_scroll_up() local 103 height = screen_info.lfb_height; in efi_earlycon_scroll_up() 105 for (i = 0; i < height - font->height; i++) { in efi_earlycon_scroll_up() 110 src = efi_earlycon_map((i + font->height) * len, len); in efi_earlycon_scroll_up() 132 src = font->data + c * font->height * bytes + h * bytes; in efi_earlycon_write_char() 165 for (h = 0; h < font->height; h++) { in efi_earlycon_write() 192 efi_y += font->height; in efi_earlycon_write() 200 efi_y += font->height; in efi_earlycon_write() 203 if (efi_y + font->height > si->lfb_height) { in efi_earlycon_write() 209 efi_y -= font->height; in efi_earlycon_write() [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | atafb_mfb.c | 25 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()
|
| /linux/drivers/media/i2c/ |
| H A D | tw9910.c | 218 unsigned short height; member 238 .height = 480, 245 .height = 480, 252 .height = 240, 259 .height = 240, 266 .height = 120, 273 .height = 120, 283 .height = 576, 290 .height = 576, 297 .height = 288, [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_draw.c | 65 unsigned int height, unsigned int width, in drm_draw_blit16() argument 70 for (y = 0; y < height; y++) in drm_draw_blit16() 79 unsigned int height, unsigned int width, in drm_draw_blit24() argument 84 for (y = 0; y < height; y++) { in drm_draw_blit24() 101 unsigned int height, unsigned int width, in drm_draw_blit32() argument 106 for (y = 0; y < height; y++) in drm_draw_blit32() 117 unsigned int height, unsigned int width, in drm_draw_fill16() argument 122 for (y = 0; y < height; y++) in drm_draw_fill16() 129 unsigned int height, unsigned int width, in drm_draw_fill24() argument 134 for (y = 0; y < height; y++) { in drm_draw_fill24() [all …]
|
| /linux/drivers/media/test-drivers/vivid/ |
| H A D | vivid-vid-cap.c | 65 if (webcam_sizes[frmsize_idx].height >= 2160) in webcam_ival_count() 68 if (webcam_sizes[frmsize_idx].height >= 1080) in webcam_ival_count() 71 if (webcam_sizes[frmsize_idx].height >= 720) in webcam_ival_count() 84 unsigned h = dev->fmt_cap_rect.height; in vid_cap_queue_setup() 155 dev->fmt_cap_rect.height) / in vid_cap_buf_prepare() 360 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect() 361 return dev->src_rect.height == 480 ? in vivid_get_pixel_aspect() 382 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; in vivid_update_format_cap() 392 dev->src_rect.height = 480; in vivid_update_format_cap() 396 dev->src_rect.height = 576; in vivid_update_format_cap() [all …]
|
| /linux/drivers/staging/media/meson/vdec/ |
| H A D | vdec_helpers.c | 54 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 …]
|
| /linux/lib/ |
| H A D | btree.c | 178 head->height = 0; in __btree_init() 209 int height = head->height; in btree_last() local 212 if (height == 0) in btree_last() 215 for ( ; height > 1; height--) in btree_last() 243 int i, height = head->height; in btree_lookup_node() local 246 if (height == 0) in btree_lookup_node() 249 for ( ; height > 1; height--) { in btree_lookup_node() 309 int i, height; in btree_get_prev() local 316 if (head->height == 0) in btree_get_prev() 323 for (height = head->height ; height > 1; height--) { in btree_get_prev() [all …]
|
| /linux/drivers/media/platform/ti/omap3isp/ |
| H A D | ispresizer.c | 353 u32 width, u32 height) in resizer_set_output_size() argument 360 rgval |= (height << ISPRSZ_OUT_SIZE_VERT_SHIFT) in resizer_set_output_size() 416 u32 width, u32 height) in resizer_set_input_size() argument 423 rgval |= (height << ISPRSZ_IN_SIZE_VERT_SHIFT) in resizer_set_input_size() 507 clock = div_u64((u64)limit * res->crop.active.height, ofmt->height); in omap3isp_resizer_max_rate() 589 * res->crop.active.height; in resizer_adjust_bandwidth() 795 unsigned int height; in resizer_calc_ratios() local 801 min_height = ((input->height - 7) * 256 - 32 - 64 * spv) / 1024 + 1; in resizer_calc_ratios() 803 max_height = ((input->height - 4) * 256 + 255 - 16 - 32 * spv) / 64 + 1; in resizer_calc_ratios() 805 output->height = clamp(output->height, min_height, max_height); in resizer_calc_ratios() [all …]
|
| /linux/include/video/ |
| H A D | omapvrfb.h | 30 extern void omap_vrfb_adjust_size(u16 *width, u16 *height, 32 extern u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp); 35 u16 width, u16 height, 37 extern int omap_vrfb_map_angle(struct vrfb *vrfb, u16 height, u8 rot); 44 static inline void omap_vrfb_adjust_size(u16 *width, u16 *height, in omap_vrfb_adjust_size() argument 46 static inline u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp) in omap_vrfb_min_phys_size() argument 51 u16 width, u16 height, unsigned bytespp, bool yuv_mode) {} in omap_vrfb_setup() argument 52 static inline int omap_vrfb_map_angle(struct vrfb *vrfb, u16 height, u8 rot) in omap_vrfb_map_angle() argument
|
| /linux/drivers/media/platform/chips-media/coda/ |
| H A D | imx-vdoa.c | 86 unsigned int height; member 172 writel(dst_q_data->height << 16 | dst_q_data->width, in vdoa_device_run() 183 val = dst_q_data->bytesperline * dst_q_data->height; in vdoa_device_run() 190 val = round_up(src_q_data->bytesperline * src_q_data->height, 4096); in vdoa_device_run() 236 unsigned int width, unsigned int height, in vdoa_context_configure() argument 243 height < 16 || height > 4096 || height % 16 != 0) in vdoa_context_configure() 258 src_q_data->height = height; in vdoa_context_configure() 261 round_up(src_q_data->bytesperline * height, 4096) + in vdoa_context_configure() 262 src_q_data->bytesperline * height / 2; in vdoa_context_configure() 265 dst_q_data->height = height; in vdoa_context_configure() [all …]
|