Lines Matching refs:fmt
89 struct v4l2_subdev_format *fmt) in vsp1_rwpf_get_format() argument
93 fmt->format = *vsp1_entity_get_pad_format(&rwpf->entity, cfg, fmt->pad, in vsp1_rwpf_get_format()
94 fmt->which); in vsp1_rwpf_get_format()
100 struct v4l2_subdev_format *fmt) in vsp1_rwpf_set_format() argument
107 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && in vsp1_rwpf_set_format()
108 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32) in vsp1_rwpf_set_format()
109 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32; in vsp1_rwpf_set_format()
111 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, fmt->pad, in vsp1_rwpf_set_format()
112 fmt->which); in vsp1_rwpf_set_format()
114 if (fmt->pad == RWPF_PAD_SOURCE) { in vsp1_rwpf_set_format()
118 format->code = fmt->format.code; in vsp1_rwpf_set_format()
119 fmt->format = *format; in vsp1_rwpf_set_format()
123 format->code = fmt->format.code; in vsp1_rwpf_set_format()
124 format->width = clamp_t(unsigned int, fmt->format.width, in vsp1_rwpf_set_format()
126 format->height = clamp_t(unsigned int, fmt->format.height, in vsp1_rwpf_set_format()
131 fmt->format = *format; in vsp1_rwpf_set_format()
134 crop = vsp1_rwpf_get_crop(rwpf, cfg, fmt->which); in vsp1_rwpf_set_format()
137 crop->width = fmt->format.width; in vsp1_rwpf_set_format()
138 crop->height = fmt->format.height; in vsp1_rwpf_set_format()
142 fmt->which); in vsp1_rwpf_set_format()
143 *format = fmt->format; in vsp1_rwpf_set_format()