Home
last modified time | relevance | path

Searched refs:v4l2_rect (Results 1 – 115 of 115) sorted by relevance

/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-vid-common.h40 bool rect_overlap(const struct v4l2_rect *r1, const struct v4l2_rect *r2);
41 void rect_set_size_to(struct v4l2_rect *r, const struct v4l2_rect *size);
42 void rect_set_min_size(struct v4l2_rect *r, const struct v4l2_rect *min_size);
43 void rect_set_max_size(struct v4l2_rect *r, const struct v4l2_rect *max_size);
44 void rect_map_inside(struct v4l2_rect *r, const struct v4l2_rect *boundary);
45 bool rect_same_size(const struct v4l2_rect *r1, const struct v4l2_rect *r2);
46 struct v4l2_rect rect_intersect(const struct v4l2_rect *a, const struct v4l2_rect *b);
47 void rect_scale(struct v4l2_rect *r, const struct v4l2_rect *from,
48 const struct v4l2_rect *to);
49 int vivid_vid_adjust_sel(unsigned flags, struct v4l2_rect *r);
Dvivid-core.h75 extern const struct v4l2_rect vivid_min_rect;
76 extern const struct v4l2_rect vivid_max_rect;
370 struct v4l2_rect src_rect;
371 struct v4l2_rect fmt_cap_rect;
372 struct v4l2_rect crop_cap;
373 struct v4l2_rect compose_cap;
374 struct v4l2_rect crop_bounds_cap;
398 struct v4l2_rect sink_rect;
399 struct v4l2_rect fmt_out_rect;
400 struct v4l2_rect crop_out;
[all …]
Dvivid-vid-common.c622 void rect_set_size_to(struct v4l2_rect *r, const struct v4l2_rect *size) in rect_set_size_to()
629 void rect_set_min_size(struct v4l2_rect *r, const struct v4l2_rect *min_size) in rect_set_min_size()
638 void rect_set_max_size(struct v4l2_rect *r, const struct v4l2_rect *max_size) in rect_set_max_size()
647 void rect_map_inside(struct v4l2_rect *r, const struct v4l2_rect *boundary) in rect_map_inside()
661 bool rect_same_size(const struct v4l2_rect *r1, const struct v4l2_rect *r2) in rect_same_size()
667 struct v4l2_rect rect_intersect(const struct v4l2_rect *a, const struct v4l2_rect *b) in rect_intersect()
669 struct v4l2_rect r; in rect_intersect()
685 void rect_scale(struct v4l2_rect *r, const struct v4l2_rect *from, in rect_scale()
686 const struct v4l2_rect *to) in rect_scale()
698 bool rect_overlap(const struct v4l2_rect *r1, const struct v4l2_rect *r2) in rect_overlap()
[all …]
Dvivid-vid-out.c381 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; in vivid_try_fmt_vid_out()
386 struct v4l2_rect max_r = { 0, 0, MAX_ZOOM * w, MAX_ZOOM * h }; in vivid_try_fmt_vid_out()
443 struct v4l2_rect *crop = &dev->crop_out; in vivid_s_fmt_vid_out()
444 struct v4l2_rect *compose = &dev->compose_out; in vivid_s_fmt_vid_out()
476 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; in vivid_s_fmt_vid_out()
484 struct v4l2_rect min_r = { in vivid_s_fmt_vid_out()
489 struct v4l2_rect max_r = { in vivid_s_fmt_vid_out()
499 struct v4l2_rect min_r = { in vivid_s_fmt_vid_out()
504 struct v4l2_rect max_r = { in vivid_s_fmt_vid_out()
535 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; in vivid_s_fmt_vid_out()
[all …]
Dvivid-vid-cap.c595 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; in vivid_try_fmt_vid_cap()
600 struct v4l2_rect max_r = { 0, 0, MAX_ZOOM * w, MAX_ZOOM * h }; in vivid_try_fmt_vid_cap()
642 struct v4l2_rect *crop = &dev->crop_cap; in vivid_s_fmt_vid_cap()
643 struct v4l2_rect *compose = &dev->compose_cap; in vivid_s_fmt_vid_cap()
671 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; in vivid_s_fmt_vid_cap()
679 struct v4l2_rect min_r = { in vivid_s_fmt_vid_cap()
684 struct v4l2_rect max_r = { in vivid_s_fmt_vid_cap()
694 struct v4l2_rect min_r = { in vivid_s_fmt_vid_cap()
699 struct v4l2_rect max_r = { in vivid_s_fmt_vid_cap()
740 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; in vivid_s_fmt_vid_cap()
[all …]
Dvivid-tpg.h106 struct v4l2_rect crop;
108 struct v4l2_rect compose;
110 struct v4l2_rect border;
111 struct v4l2_rect square;
214 void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop,
215 const struct v4l2_rect *compose);
Dvivid-kthread-cap.c84 struct v4l2_rect *r = &dev->clips_out[i].c; in copy_pix()
178 struct v4l2_rect r_fb = { in vivid_precalc_copy_rects()
182 struct v4l2_rect r_overlay = { in vivid_precalc_copy_rects()
590 struct v4l2_rect *r = &dev->clips_cap[i].c; in valid_pix()
Dvivid-osd.c279 struct v4l2_rect start_window; in vivid_fb_init_vidmode()
Dvivid-tpg.c389 void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop, in tpg_s_crop_compose()
390 const struct v4l2_rect *compose) in tpg_s_crop_compose()
1950 const struct v4l2_rect *sq = &tpg->square; in tpg_fill_plane_extras()
1951 const struct v4l2_rect *b = &tpg->border; in tpg_fill_plane_extras()
1952 const struct v4l2_rect *c = &tpg->crop; in tpg_fill_plane_extras()
Dvivid-core.c155 const struct v4l2_rect vivid_min_rect = {
159 const struct v4l2_rect vivid_max_rect = {
/linux-4.4.14/drivers/media/platform/soc_camera/
Dsoc_scale_crop.h22 struct v4l2_rect;
33 int soc_camera_client_g_rect(struct v4l2_subdev *sd, struct v4l2_rect *rect);
36 struct v4l2_rect *target_rect, struct v4l2_rect *subrect);
38 struct v4l2_rect *rect, struct v4l2_rect *subrect,
43 struct v4l2_rect *rect, struct v4l2_rect *subrect,
Dsoc_scale_crop.c27 static bool is_smaller(const struct v4l2_rect *r1, const struct v4l2_rect *r2) in is_smaller()
33 static bool is_inside(const struct v4l2_rect *r1, const struct v4l2_rect *r2) in is_inside()
41 int soc_camera_client_g_rect(struct v4l2_subdev *sd, struct v4l2_rect *rect) in soc_camera_client_g_rect()
67 static void update_subrect(struct v4l2_rect *rect, struct v4l2_rect *subrect) in update_subrect()
98 struct v4l2_rect *target_rect, struct v4l2_rect *subrect) in soc_camera_client_s_crop()
100 struct v4l2_rect *rect = &crop->c, *cam_rect = &cam_crop->c; in soc_camera_client_s_crop()
216 struct v4l2_rect *rect, struct v4l2_rect *subrect, in client_set_fmt()
307 struct v4l2_rect *rect, struct v4l2_rect *subrect, in soc_camera_client_scale()
364 struct v4l2_rect *rect, struct v4l2_rect *subrect, in soc_camera_calc_client_output()
Drcar_vin.c518 struct v4l2_rect subrect;
520 struct v4l2_rect rect;
1061 struct v4l2_rect *cam_subrect = &cam->subrect; in rcar_vin_set_rect()
1365 struct v4l2_rect rect; in rcar_vin_get_formats()
1486 const struct v4l2_rect *rect = &a_writable.c; in rcar_vin_set_crop()
1491 struct v4l2_rect *cam_rect = &cam_crop.c; in rcar_vin_set_crop()
Dsh_mobile_ceu_camera.c148 struct v4l2_rect subrect;
150 struct v4l2_rect rect;
1091 struct v4l2_rect rect; in sh_mobile_ceu_get_formats()
1226 const struct v4l2_rect *rect = &a_writable.c; in sh_mobile_ceu_set_crop()
1232 struct v4l2_rect *cam_rect = &cam_crop.c; in sh_mobile_ceu_set_crop()
Dmx3_camera.c807 struct v4l2_rect *rect = &a_writable.c; in mx3_camera_set_crop()
Domap1_camera.c1222 const struct v4l2_rect *rect = &crop->c; in omap1_cam_set_crop()
Dmx2_camera.c915 struct v4l2_rect *rect = &a_writable.c; in mx2_camera_set_crop()
Dpxa_camera.c1343 const struct v4l2_rect *rect = &a->c; in pxa_camera_set_crop()
Dsoc_camera.c1059 const struct v4l2_rect *rect = &a->c; in soc_camera_s_crop()
/linux-4.4.14/drivers/media/platform/omap/
Domap_voutlib.h16 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop);
19 struct v4l2_rect *crop, struct v4l2_window *win,
21 const struct v4l2_rect *new_crop);
26 int omap_vout_new_window(struct v4l2_rect *crop,
31 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop,
Domap_voutlib.c44 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop) in omap_vout_default_crop()
66 struct v4l2_rect try_win; in omap_vout_try_window()
111 int omap_vout_new_window(struct v4l2_rect *crop, in omap_vout_new_window()
166 struct v4l2_rect *crop, struct v4l2_window *win, in omap_vout_new_crop()
167 struct v4l2_framebuffer *fbuf, const struct v4l2_rect *new_crop) in omap_vout_new_crop()
169 struct v4l2_rect try_crop; in omap_vout_new_crop()
282 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop, in omap_vout_new_format()
Domap_voutdef.h145 struct v4l2_rect crop;
Domap_vout_vrfb.c297 struct v4l2_rect *crop = &vout->crop; in omap_vout_calculate_vrfb_offset()
Domap_vout.c279 struct v4l2_rect *crop = &vout->crop; in omap_vout_calculate_offset()
/linux-4.4.14/include/uapi/linux/
Divtv.h55 struct v4l2_rect src;
56 struct v4l2_rect dst;
Dv4l2-subdev.h63 struct v4l2_rect rect;
153 struct v4l2_rect r;
Dvideodev2.h378 struct v4l2_rect { struct
974 struct v4l2_rect c;
979 struct v4l2_rect w;
1018 struct v4l2_rect bounds;
1019 struct v4l2_rect defrect;
1025 struct v4l2_rect c;
1045 struct v4l2_rect r;
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Ddm365_isif.h75 struct v4l2_rect win;
122 struct v4l2_rect win;
188 struct v4l2_rect crop;
Ddm365_isif.c197 struct v4l2_rect *win = &isif->crop; in isif_set_image_window()
760 isif_setwin(struct vpfe_isif_device *isif, struct v4l2_rect *image_win, in isif_setwin()
1578 struct v4l2_rect *rect; in isif_pad_set_selection()
1606 struct v4l2_rect *rect; in isif_pad_get_selection()
/linux-4.4.14/drivers/media/pci/bt8xx/
Dbtcx-risc.h19 int btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win,
21 int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips,
Dbttvp.h168 struct v4l2_rect crop;
182 struct v4l2_rect w;
205 struct v4l2_rect rect;
Dbtcx-risc.c88 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, in btcx_screen_clips()
127 btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, unsigned int n, int mask) in btcx_align()
Dbttv-risc.c386 const struct v4l2_rect * crop) in bttv_calc_geo()
Dbttv-driver.c1943 const struct v4l2_rect * b, in bttv_crop_adjust()
1999 const struct v4l2_rect *b; in limit_scaled_size_lock()
2847 const struct v4l2_rect *b; in bttv_s_crop()
/linux-4.4.14/drivers/media/common/
Dbtcx-risc.h21 int btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win,
23 int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips,
/linux-4.4.14/drivers/media/platform/am437x/
Dam437x-vpfe.h154 struct v4l2_rect win;
183 struct v4l2_rect win;
264 struct v4l2_rect crop;
Dam437x-vpfe.c336 struct v4l2_rect *image_win, in vpfe_ccdc_setwin()
828 struct v4l2_rect *win, unsigned int bpp) in vpfe_ccdc_set_image_window()
845 struct v4l2_rect *win) in vpfe_ccdc_get_image_window()
1013 struct v4l2_rect image_win; in vpfe_get_ccdc_image_format()
1890 struct v4l2_rect image_win; in vpfe_calculate_offsets()
2129 static int enclosed_rectangle(struct v4l2_rect *a, struct v4l2_rect *b) in enclosed_rectangle()
2147 struct v4l2_rect cr = vpfe->crop; in vpfe_s_selection()
2148 struct v4l2_rect r = s->r; in vpfe_s_selection()
/linux-4.4.14/drivers/media/platform/davinci/
Dccdc_hw_device.h77 int (*set_image_window) (struct v4l2_rect *win);
79 void (*get_image_window) (struct v4l2_rect *win);
Ddm355_ccdc.c223 static void ccdc_setwin(struct v4l2_rect *image_win, in ccdc_setwin()
856 static int ccdc_set_image_window(struct v4l2_rect *win) in ccdc_set_image_window()
865 static void ccdc_get_image_window(struct v4l2_rect *win) in ccdc_get_image_window()
Ddm644x_ccdc.c133 static void ccdc_setwin(struct v4l2_rect *image_win, in ccdc_setwin()
765 static int ccdc_set_image_window(struct v4l2_rect *win) in ccdc_set_image_window()
774 static void ccdc_get_image_window(struct v4l2_rect *win) in ccdc_get_image_window()
Disif.c283 static void isif_setwin(struct v4l2_rect *image_win, in isif_setwin()
794 static int isif_set_image_window(struct v4l2_rect *win) in isif_set_image_window()
810 static void isif_get_image_window(struct v4l2_rect *win) in isif_get_image_window()
Dvpbe_display.c551 struct v4l2_rect *c) in vpbe_disp_check_window_params()
662 struct v4l2_rect rect = crop->c; in vpbe_display_s_crop()
729 struct v4l2_rect *rect = &crop->c; in vpbe_display_g_crop()
Dvpfe_capture.c294 struct v4l2_rect image_win; in vpfe_get_ccdc_image_format()
1455 struct v4l2_rect image_win; in vpfe_calculate_offsets()
1641 struct v4l2_rect rect = crop->c; in vpfe_s_crop()
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispresizer.h114 struct v4l2_rect request;
115 struct v4l2_rect active;
Disppreview.h127 struct v4l2_rect crop;
Dispccdc.h134 struct v4l2_rect crop;
Dispresizer.c135 static struct v4l2_rect *
781 struct v4l2_rect *input, in resizer_calc_ratios()
1186 struct v4l2_rect *crop) in resizer_try_crop()
1383 struct v4l2_rect crop; in resizer_try_format()
1504 struct v4l2_rect *crop; in resizer_set_format()
Dispccdc.c1121 const struct v4l2_rect *crop; in ccdc_configure()
1947 static struct v4l2_rect *
1973 struct v4l2_rect *crop; in ccdc_try_format()
2077 struct v4l2_rect *crop) in ccdc_try_crop()
2339 struct v4l2_rect *crop; in ccdc_set_format()
Disppreview.c1694 static struct v4l2_rect *
1740 struct v4l2_rect *crop; in preview_try_format()
1819 struct v4l2_rect *crop) in preview_try_crop()
2042 struct v4l2_rect *crop; in preview_set_format()
/linux-4.4.14/include/media/davinci/
Ddm644x_ccdc.h157 struct v4l2_rect win;
181 struct v4l2_rect win;
Ddm355_ccdc.h266 struct v4l2_rect win;
296 struct v4l2_rect win;
Disif.h460 struct v4l2_rect win;
497 struct v4l2_rect win;
Dvpfe_capture.h152 struct v4l2_rect crop;
/linux-4.4.14/drivers/media/i2c/smiapp/
Dsmiapp.h166 struct v4l2_rect sink_fmt;
167 struct v4l2_rect crop[2];
168 struct v4l2_rect compose; /* compose on sink */
Dsmiapp-core.c1622 struct v4l2_rect *r; in __smiapp_get_format()
1654 struct v4l2_rect **crops, in smiapp_get_crop_compose()
1655 struct v4l2_rect **comps, int which) in smiapp_get_crop_compose()
1688 struct v4l2_rect *comp, *crops[SMIAPP_PADS]; in smiapp_propagate()
1791 struct v4l2_rect *crops[SMIAPP_PADS]; in smiapp_set_format()
1883 struct v4l2_rect **crops, in smiapp_set_compose_binner()
1884 struct v4l2_rect *comp) in smiapp_set_compose_binner()
1931 struct v4l2_rect **crops, in smiapp_set_compose_scaler()
1932 struct v4l2_rect *comp) in smiapp_set_compose_scaler()
2050 struct v4l2_rect *comp, *crops[SMIAPP_PADS]; in smiapp_set_compose()
[all …]
/linux-4.4.14/drivers/media/i2c/
Ds5k5baf.c312 struct v4l2_rect crop_sink;
313 struct v4l2_rect compose;
314 struct v4l2_rect crop_source;
340 static struct v4l2_rect s5k5baf_cis_rect = {
851 static void s5k5baf_rescale(struct v4l2_rect *r, const struct v4l2_rect *v, in s5k5baf_rescale()
852 const struct v4l2_rect *n, in s5k5baf_rescale()
853 const struct v4l2_rect *d) in s5k5baf_rescale()
863 struct v4l2_rect *p, r; in s5k5baf_hw_set_crop_rects()
920 struct v4l2_rect *r = &state->crop_source; in s5k5baf_hw_set_config()
1436 static void s5k5baf_bound_rect(struct v4l2_rect *r, u32 width, u32 height) in s5k5baf_bound_rect()
[all …]
Dmt9v032.c239 struct v4l2_rect crop;
296 struct v4l2_rect *crop = &mt9v032->crop; in mt9v032_update_hblank()
390 static struct v4l2_rect *
410 struct v4l2_rect *crop = &mt9v032->crop; in mt9v032_s_stream()
520 struct v4l2_rect *__crop; in mt9v032_set_format()
577 struct v4l2_rect *__crop; in mt9v032_set_selection()
578 struct v4l2_rect rect; in mt9v032_set_selection()
814 struct v4l2_rect *crop; in mt9v032_open()
Dmt9t001.c129 struct v4l2_rect crop;
260 static struct v4l2_rect *
281 struct v4l2_rect *crop = &mt9t001->crop; in mt9t001_s_stream()
372 struct v4l2_rect *__crop; in mt9t001_set_format()
423 struct v4l2_rect *__crop; in mt9t001_set_selection()
424 struct v4l2_rect rect; in mt9t001_set_selection()
791 struct v4l2_rect *crop; in mt9t001_open()
Dmt9p031.c125 struct v4l2_rect crop; /* Sensor window */
387 const struct v4l2_rect *crop = &mt9p031->crop; in mt9p031_set_params()
521 static struct v4l2_rect *
552 struct v4l2_rect *__crop; in mt9p031_set_format()
603 struct v4l2_rect *__crop; in mt9p031_set_selection()
604 struct v4l2_rect rect; in mt9p031_set_selection()
947 struct v4l2_rect *crop; in mt9p031_open()
Dmt9m032.c163 struct v4l2_rect crop;
196 struct v4l2_rect *crop = &sensor->crop; in mt9m032_update_timing()
353 static struct v4l2_rect *
447 struct v4l2_rect *__crop; in mt9m032_set_pad_selection()
448 struct v4l2_rect rect; in mt9m032_set_pad_selection()
Ds5k6aa.c256 struct v4l2_rect ccd_rect;
652 struct v4l2_rect *r = &s5k6aa->ccd_rect; in s5k6aa_set_input_params()
1058 static struct v4l2_rect *
1117 struct v4l2_rect *crop; in s5k6aa_set_fmt()
1169 struct v4l2_rect *rect; in s5k6aa_get_selection()
1194 struct v4l2_rect *crop_r; in s5k6aa_set_selection()
1428 struct v4l2_rect *crop = v4l2_subdev_get_try_crop(sd, fh->pad, 0); in s5k6aa_open()
Ds5k4ecgx.c123 struct v4l2_rect input_window;
382 const struct v4l2_rect *r) in s5k4ecgx_set_input_window()
407 const struct v4l2_rect *r) in s5k4ecgx_set_zoom_window()
751 const struct v4l2_rect *crop_rect = &priv->curr_frmsize->input_window; in __s5k4ecgx_s_params()
Dtvp5150.c39 struct v4l2_rect rect;
860 struct v4l2_rect rect = a->c; in tvp5150_s_crop()
/linux-4.4.14/drivers/media/platform/vsp1/
Dvsp1_rwpf.c75 static struct v4l2_rect *
104 struct v4l2_rect *crop; in vsp1_rwpf_set_format()
186 struct v4l2_rect *crop; in vsp1_rwpf_set_selection()
Dvsp1_bru.h35 struct v4l2_rect compose;
Dvsp1_bru.c232 static struct v4l2_rect *bru_get_compose(struct vsp1_bru *bru, in bru_get_compose()
299 struct v4l2_rect *compose; in bru_set_format()
354 struct v4l2_rect *compose; in bru_set_selection()
Dvsp1_rwpf.h39 struct v4l2_rect crop;
Dvsp1_rpf.c80 const struct v4l2_rect *crop = &rpf->crop; in rpf_s_stream()
Dvsp1_wpf.c79 const struct v4l2_rect *crop = &wpf->crop; in wpf_s_stream()
Dvsp1_video.c339 struct v4l2_rect *rect = in vsp1_pipeline_validate_branch()
/linux-4.4.14/drivers/media/platform/ti-vpe/
Dvpdma.h190 const struct v4l2_rect *c_rect,
194 const struct v4l2_rect *c_rect,
Dvpdma.c627 const struct v4l2_rect *c_rect, in vpdma_add_out_dtd()
635 struct v4l2_rect rect = *c_rect; in vpdma_add_out_dtd()
698 const struct v4l2_rect *c_rect, in vpdma_add_in_dtd()
707 struct v4l2_rect rect = *c_rect; in vpdma_add_in_dtd()
Dvpe.c318 struct v4l2_rect c_rect; /* crop/compose rectangle */
/linux-4.4.14/include/video/
Dimx-ipu-v3.h177 struct v4l2_rect rect;
274 void ipu_csi_get_window(struct ipu_csi *csi, struct v4l2_rect *w);
275 void ipu_csi_set_window(struct ipu_csi *csi, struct v4l2_rect *w);
/linux-4.4.14/include/media/
Dv4l2-subdev.h565 struct v4l2_rect try_crop;
566 struct v4l2_rect try_compose;
769 __V4L2_SUBDEV_MK_GET_TRY(v4l2_rect, v4l2_subdev_get_try_crop, try_crop)
770 __V4L2_SUBDEV_MK_GET_TRY(v4l2_rect, v4l2_subdev_get_try_compose, try_compose)
/linux-4.4.14/drivers/media/platform/s3c-camif/
Dcamif-core.h124 struct v4l2_rect rect;
271 struct v4l2_rect camif_crop;
Dcamif-capture.c734 struct v4l2_rect *crop = &camif->camif_crop; in __camif_video_try_format()
1024 struct v4l2_rect *r) in __camif_try_compose()
1040 struct v4l2_rect rect = sel->r; in s3c_camif_s_selection()
1288 struct v4l2_rect *crop = &camif->camif_crop; in __camif_subdev_try_format()
1304 struct v4l2_rect *crop = &camif->camif_crop; in s3c_camif_subdev_set_fmt()
1370 struct v4l2_rect *crop = &camif->camif_crop; in s3c_camif_subdev_get_selection()
1403 static void __camif_try_crop(struct camif_dev *camif, struct v4l2_rect *r) in __camif_try_crop()
1439 struct v4l2_rect *or = &camif->vp[i].out_frame.rect; in __camif_try_crop()
1457 struct v4l2_rect *crop = &camif->camif_crop; in s3c_camif_subdev_set_selection()
Dcamif-core.c154 struct v4l2_rect *camif_crop = &vp->camif->camif_crop; in s3c_camif_get_scaler_config()
Dcamif-regs.c134 struct v4l2_rect *crop = &camif->camif_crop; in camif_hw_set_camera_crop()
/linux-4.4.14/drivers/media/platform/sti/bdisp/
Dbdisp.h76 struct v4l2_rect crop;
Dbdisp-hw.c470 struct v4l2_rect src_rect = src->crop; in bdisp_hw_build_node()
471 struct v4l2_rect dst_rect = dst->crop; in bdisp_hw_build_node()
Dbdisp-v4l2.c912 static int is_rect_enclosed(struct v4l2_rect *a, struct v4l2_rect *b) in is_rect_enclosed()
933 struct v4l2_rect *in, out; in bdisp_s_selection()
/linux-4.4.14/drivers/media/i2c/soc_camera/
Dov5642.c612 struct v4l2_rect crop_rect;
857 struct v4l2_rect rect = a->c; in ov5642_s_crop()
885 struct v4l2_rect *rect = &a->c; in ov5642_g_crop()
Dmt9t031.c78 struct v4l2_rect rect; /* Sensor window */
202 struct v4l2_rect *rect, u16 xskip, u16 yskip) in mt9t031_set_params()
299 struct v4l2_rect rect = a->c; in mt9t031_s_crop()
372 struct v4l2_rect rect = mt9t031->rect; in mt9t031_set_fmt()
Dmt9m111.c209 struct v4l2_rect rect; /* cropping rectangle */
319 struct mt9m111_context *ctx, struct v4l2_rect *rect, in mt9m111_setup_rect_ctx()
333 static int mt9m111_setup_geometry(struct mt9m111 *mt9m111, struct v4l2_rect *rect, in mt9m111_setup_geometry()
388 struct v4l2_rect rect = a->c; in mt9m111_s_crop()
547 struct v4l2_rect *rect = &mt9m111->rect; in mt9m111_set_fmt()
Dmt9t112.c90 struct v4l2_rect frame;
842 const struct v4l2_rect *rect, in mt9t112_set_params()
902 const struct v4l2_rect *rect = &a->c; in mt9t112_s_crop()
932 struct v4l2_rect rect = { in mt9t112_s_fmt()
1092 struct v4l2_rect rect = { in mt9t112_probe()
Dov6650.c201 struct v4l2_rect rect; /* sensor cropping window */
450 struct v4l2_rect rect = a->c; in ov6650_s_crop()
522 static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect) in is_unscaled_ok()
Dmt9m001.c96 struct v4l2_rect rect; /* Sensor window */
178 struct v4l2_rect rect = a->c; in mt9m001_s_crop()
Dmt9v022.c156 struct v4l2_rect rect; /* Sensor window */
283 struct v4l2_rect rect = a->c; in mt9v022_s_crop()
Dimx074.c214 struct v4l2_rect *rect = &a->c; in imx074_g_crop()
Drj54n1cb0c.c157 struct v4l2_rect rect; /* Sensor window */
545 const struct v4l2_rect *rect = &a->c; in rj54n1_s_crop()
Dov772x.c390 struct v4l2_rect rect;
/linux-4.4.14/drivers/media/platform/s5p-jpeg/
Djpeg-core.h235 struct v4l2_rect crop_rect;
Djpeg-core.c1571 struct v4l2_rect *r);
1579 struct v4l2_rect scale_rect; in s5p_jpeg_s_fmt()
1683 struct v4l2_rect *r) in exynos3250_jpeg_try_downscale()
1716 static int enclosed_rectangle(struct v4l2_rect *a, struct v4l2_rect *b) in enclosed_rectangle()
1729 struct v4l2_rect *r) in exynos3250_jpeg_try_crop()
1731 struct v4l2_rect base_rect; in exynos3250_jpeg_try_crop()
1818 struct v4l2_rect *rect = &s->r; in s5p_jpeg_s_selection()
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dfimc-isp.h66 struct v4l2_rect rect;
Dfimc-lite.h91 struct v4l2_rect rect;
Dfimc-lite.c589 struct v4l2_rect *rect; in fimc_lite_subdev_try_fmt()
619 static void fimc_lite_try_crop(struct fimc_lite *fimc, struct v4l2_rect *r) in fimc_lite_try_crop()
636 static void fimc_lite_try_compose(struct fimc_lite *fimc, struct v4l2_rect *r) in fimc_lite_try_compose()
639 struct v4l2_rect *crop_rect = &fimc->inp_frame.rect; in fimc_lite_try_compose()
894 static int enclosed_rectangle(struct v4l2_rect *a, struct v4l2_rect *b) in enclosed_rectangle()
937 struct v4l2_rect rect = sel->r; in fimc_lite_s_selection()
Dfimc-capture.c657 struct v4l2_rect *r, in fimc_capture_try_selection()
1308 static int enclosed_rectangle(struct v4l2_rect *a, struct v4l2_rect *b) in enclosed_rectangle()
1325 struct v4l2_rect rect = s->r; in fimc_cap_s_selection()
1608 struct v4l2_rect *r = &sel->r; in fimc_subdev_get_selection()
1609 struct v4l2_rect *try_sel; in fimc_subdev_get_selection()
1663 struct v4l2_rect *r = &sel->r; in fimc_subdev_set_selection()
1664 struct v4l2_rect *try_sel; in fimc_subdev_set_selection()
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134.h639 struct v4l2_rect crop_bounds;
640 struct v4l2_rect crop_defrect;
641 struct v4l2_rect crop_current;
Dsaa7134-video.c1256 sizeof(struct v4l2_rect))) in saa7134_g_fmt_vid_overlay()
1626 struct v4l2_rect *b = &dev->crop_bounds; in saa7134_s_crop()
1627 struct v4l2_rect *c = &dev->crop_current; in saa7134_s_crop()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-driver.h520 struct v4l2_rect main_rect;
752 struct v4l2_rect osd_rect; /* current OSD position and size */
753 struct v4l2_rect main_rect; /* current Main window position and size */
Divtvfb.c249 static int ivtvfb_set_display_window(struct ivtv *itv, struct v4l2_rect *ivtv_window) in ivtvfb_set_display_window()
519 struct v4l2_rect ivtv_window; in ivtvfb_set_var()
980 struct v4l2_rect start_window; in ivtvfb_init_vidmode()
Divtv-ioctl.c851 struct v4l2_rect r = { 0, 0, 720, 0 }; in ivtv_s_selection()
894 struct v4l2_rect r = { 0, 0, 720, 0 }; in ivtv_g_selection()
/linux-4.4.14/drivers/media/platform/
Dsh_vou.c84 struct v4l2_rect rect;
440 struct v4l2_rect *rect = &vou_dev->rect; in sh_vou_configure_geometry()
511 struct v4l2_rect output;
941 struct v4l2_rect *rect = &sel->r; in sh_vou_s_selection()
1227 struct v4l2_rect *rect; in sh_vou_probe()
Dsh_veu.c101 struct v4l2_rect frame;
Dfsl-viu.c144 struct v4l2_rect crop_current;
/linux-4.4.14/drivers/media/platform/coda/
Dcoda.h153 struct v4l2_rect rect;
Dcoda-bit.c1908 struct v4l2_rect *rect = &q_data_dst->rect; in coda_finish_decode()
Dcoda-common.c718 struct v4l2_rect r, *rsel; in coda_g_selection()
/linux-4.4.14/drivers/gpu/ipu-v3/
Dipu-csi.c492 void ipu_csi_get_window(struct ipu_csi *csi, struct v4l2_rect *w) in ipu_csi_get_window()
511 void ipu_csi_set_window(struct ipu_csi *csi, struct v4l2_rect *w) in ipu_csi_set_window()
/linux-4.4.14/drivers/media/platform/s5p-tv/
Dmixer_video.c407 static int mxr_is_rect_inside(struct v4l2_rect *a, struct v4l2_rect *b) in mxr_is_rect_inside()
428 struct v4l2_rect res; in mxr_s_selection()
/linux-4.4.14/drivers/media/platform/exynos-gsc/
Dgsc-core.h203 struct v4l2_rect crop;
Dgsc-m2m.c434 static int is_rectangle_enclosed(struct v4l2_rect *a, struct v4l2_rect *b) in is_rectangle_enclosed()
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-compat-ioctl32.c35 struct v4l2_rect c;
40 struct v4l2_rect w;
/linux-4.4.14/drivers/media/pci/ngene/
Dngene.h600 struct v4l2_rect w;