• Home
  • Raw
  • Download

Lines Matching refs:frame

123 	struct gsc_frame *frame = &ctx->s_frame;  in gsc_hw_set_in_size()  local
127 cfg = GSC_SRCIMG_OFFSET_X(frame->crop.left); in gsc_hw_set_in_size()
128 cfg |= GSC_SRCIMG_OFFSET_Y(frame->crop.top); in gsc_hw_set_in_size()
132 cfg = GSC_SRCIMG_WIDTH(frame->f_width); in gsc_hw_set_in_size()
133 cfg |= GSC_SRCIMG_HEIGHT(frame->f_height); in gsc_hw_set_in_size()
137 cfg = GSC_CROPPED_WIDTH(frame->crop.width); in gsc_hw_set_in_size()
138 cfg |= GSC_CROPPED_HEIGHT(frame->crop.height); in gsc_hw_set_in_size()
145 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_image_rgb() local
149 if (frame->colorspace == V4L2_COLORSPACE_REC709) in gsc_hw_set_in_image_rgb()
154 if (frame->fmt->pixelformat == V4L2_PIX_FMT_RGB565X) in gsc_hw_set_in_image_rgb()
156 else if (frame->fmt->pixelformat == V4L2_PIX_FMT_RGB32) in gsc_hw_set_in_image_rgb()
165 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_image_format() local
175 if (is_rgb(frame->fmt->color)) { in gsc_hw_set_in_image_format()
179 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_hw_set_in_image_format()
180 depth += frame->fmt->depth[i]; in gsc_hw_set_in_image_format()
182 switch (frame->fmt->num_comp) { in gsc_hw_set_in_image_format()
185 if (frame->fmt->yorder == GSC_LSB_Y) in gsc_hw_set_in_image_format()
189 if (frame->fmt->corder == GSC_CBCR) in gsc_hw_set_in_image_format()
199 if (frame->fmt->corder == GSC_CBCR) in gsc_hw_set_in_image_format()
212 if (is_tiled(frame->fmt)) in gsc_hw_set_in_image_format()
236 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_out_size() local
241 cfg = GSC_DSTIMG_OFFSET_X(frame->crop.left); in gsc_hw_set_out_size()
242 cfg |= GSC_DSTIMG_OFFSET_Y(frame->crop.top); in gsc_hw_set_out_size()
245 cfg = GSC_DSTIMG_WIDTH(frame->f_width); in gsc_hw_set_out_size()
246 cfg |= GSC_DSTIMG_HEIGHT(frame->f_height); in gsc_hw_set_out_size()
253 cfg = GSC_SCALED_WIDTH(frame->crop.height); in gsc_hw_set_out_size()
254 cfg |= GSC_SCALED_HEIGHT(frame->crop.width); in gsc_hw_set_out_size()
256 cfg = GSC_SCALED_WIDTH(frame->crop.width); in gsc_hw_set_out_size()
257 cfg |= GSC_SCALED_HEIGHT(frame->crop.height); in gsc_hw_set_out_size()
265 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_out_image_rgb() local
269 if (frame->colorspace == V4L2_COLORSPACE_REC709) in gsc_hw_set_out_image_rgb()
274 if (frame->fmt->pixelformat == V4L2_PIX_FMT_RGB565X) in gsc_hw_set_out_image_rgb()
276 else if (frame->fmt->pixelformat == V4L2_PIX_FMT_RGB32) in gsc_hw_set_out_image_rgb()
285 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_out_image_format() local
295 if (is_rgb(frame->fmt->color)) { in gsc_hw_set_out_image_format()
305 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_hw_set_out_image_format()
306 depth += frame->fmt->depth[i]; in gsc_hw_set_out_image_format()
308 switch (frame->fmt->num_comp) { in gsc_hw_set_out_image_format()
311 if (frame->fmt->yorder == GSC_LSB_Y) in gsc_hw_set_out_image_format()
315 if (frame->fmt->corder == GSC_CBCR) in gsc_hw_set_out_image_format()
325 if (frame->fmt->corder == GSC_CBCR) in gsc_hw_set_out_image_format()
335 if (is_tiled(frame->fmt)) in gsc_hw_set_out_image_format()
403 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_global_alpha() local
406 if (!is_rgb(frame->fmt->color)) { in gsc_hw_set_global_alpha()