Lines Matching defs:frame

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