Lines Matching refs:frame
127 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_size() local
131 cfg = GSC_SRCIMG_OFFSET_X(frame->crop.left); in gsc_hw_set_in_size()
132 cfg |= GSC_SRCIMG_OFFSET_Y(frame->crop.top); in gsc_hw_set_in_size()
136 cfg = GSC_SRCIMG_WIDTH(frame->f_width); in gsc_hw_set_in_size()
137 cfg |= GSC_SRCIMG_HEIGHT(frame->f_height); in gsc_hw_set_in_size()
141 cfg = GSC_CROPPED_WIDTH(frame->crop.width); in gsc_hw_set_in_size()
142 cfg |= GSC_CROPPED_HEIGHT(frame->crop.height); in gsc_hw_set_in_size()
149 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_image_rgb() local
153 if (frame->colorspace == V4L2_COLORSPACE_REC709) in gsc_hw_set_in_image_rgb()
158 if (frame->fmt->pixelformat == V4L2_PIX_FMT_RGB565X) in gsc_hw_set_in_image_rgb()
160 else if (frame->fmt->pixelformat == V4L2_PIX_FMT_RGB32) in gsc_hw_set_in_image_rgb()
169 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_image_format() local
179 if (is_rgb(frame->fmt->color)) { in gsc_hw_set_in_image_format()
183 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_hw_set_in_image_format()
184 depth += frame->fmt->depth[i]; in gsc_hw_set_in_image_format()
186 switch (frame->fmt->num_comp) { in gsc_hw_set_in_image_format()
189 if (frame->fmt->yorder == GSC_LSB_Y) in gsc_hw_set_in_image_format()
193 if (frame->fmt->corder == GSC_CBCR) in gsc_hw_set_in_image_format()
203 if (frame->fmt->corder == GSC_CBCR) in gsc_hw_set_in_image_format()
216 if (is_tiled(frame->fmt)) in gsc_hw_set_in_image_format()
240 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_out_size() local
245 cfg = GSC_DSTIMG_OFFSET_X(frame->crop.left); in gsc_hw_set_out_size()
246 cfg |= GSC_DSTIMG_OFFSET_Y(frame->crop.top); in gsc_hw_set_out_size()
249 cfg = GSC_DSTIMG_WIDTH(frame->f_width); in gsc_hw_set_out_size()
250 cfg |= GSC_DSTIMG_HEIGHT(frame->f_height); in gsc_hw_set_out_size()
257 cfg = GSC_SCALED_WIDTH(frame->crop.height); in gsc_hw_set_out_size()
258 cfg |= GSC_SCALED_HEIGHT(frame->crop.width); in gsc_hw_set_out_size()
260 cfg = GSC_SCALED_WIDTH(frame->crop.width); in gsc_hw_set_out_size()
261 cfg |= GSC_SCALED_HEIGHT(frame->crop.height); in gsc_hw_set_out_size()
269 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_out_image_rgb() local
273 if (frame->colorspace == V4L2_COLORSPACE_REC709) in gsc_hw_set_out_image_rgb()
278 if (frame->fmt->pixelformat == V4L2_PIX_FMT_RGB565X) in gsc_hw_set_out_image_rgb()
280 else if (frame->fmt->pixelformat == V4L2_PIX_FMT_RGB32) in gsc_hw_set_out_image_rgb()
289 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_out_image_format() local
299 if (is_rgb(frame->fmt->color)) { in gsc_hw_set_out_image_format()
309 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_hw_set_out_image_format()
310 depth += frame->fmt->depth[i]; in gsc_hw_set_out_image_format()
312 switch (frame->fmt->num_comp) { in gsc_hw_set_out_image_format()
315 if (frame->fmt->yorder == GSC_LSB_Y) in gsc_hw_set_out_image_format()
319 if (frame->fmt->corder == GSC_CBCR) in gsc_hw_set_out_image_format()
329 if (frame->fmt->corder == GSC_CBCR) in gsc_hw_set_out_image_format()
339 if (is_tiled(frame->fmt)) in gsc_hw_set_out_image_format()
407 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_global_alpha() local
410 if (!is_rgb(frame->fmt->color)) { in gsc_hw_set_global_alpha()