Lines Matching refs:frameinfo

244 	struct delta_frameinfo *frameinfo = &ctx->frameinfo;  in set_default_params()  local
247 memset(frameinfo, 0, sizeof(*frameinfo)); in set_default_params()
248 frameinfo->pixelformat = V4L2_PIX_FMT_NV12; in set_default_params()
249 frameinfo->width = DELTA_DEFAULT_WIDTH; in set_default_params()
250 frameinfo->height = DELTA_DEFAULT_HEIGHT; in set_default_params()
251 frameinfo->aligned_width = ALIGN(frameinfo->width, in set_default_params()
253 frameinfo->aligned_height = ALIGN(frameinfo->height, in set_default_params()
255 frameinfo->size = frame_size(frameinfo->aligned_width, in set_default_params()
256 frameinfo->aligned_height, in set_default_params()
257 frameinfo->pixelformat); in set_default_params()
258 frameinfo->field = V4L2_FIELD_NONE; in set_default_params()
259 frameinfo->colorspace = V4L2_COLORSPACE_REC709; in set_default_params()
260 frameinfo->xfer_func = V4L2_XFER_FUNC_DEFAULT; in set_default_params()
261 frameinfo->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in set_default_params()
262 frameinfo->quantization = V4L2_QUANTIZATION_DEFAULT; in set_default_params()
349 dec = delta_find_decoder(ctx, streamformat, ctx->frameinfo.pixelformat); in delta_open_decoder()
458 struct delta_frameinfo *frameinfo = &ctx->frameinfo; in delta_g_fmt_frame() local
466 delta_frameinfo_str(frameinfo, str, sizeof(str))); in delta_g_fmt_frame()
468 pix->pixelformat = frameinfo->pixelformat; in delta_g_fmt_frame()
469 pix->width = frameinfo->aligned_width; in delta_g_fmt_frame()
470 pix->height = frameinfo->aligned_height; in delta_g_fmt_frame()
471 pix->field = frameinfo->field; in delta_g_fmt_frame()
472 pix->bytesperline = frame_stride(frameinfo->aligned_width, in delta_g_fmt_frame()
473 frameinfo->pixelformat); in delta_g_fmt_frame()
474 pix->sizeimage = frameinfo->size; in delta_g_fmt_frame()
478 frameinfo->colorspace = streaminfo->colorspace; in delta_g_fmt_frame()
479 frameinfo->xfer_func = streaminfo->xfer_func; in delta_g_fmt_frame()
480 frameinfo->ycbcr_enc = streaminfo->ycbcr_enc; in delta_g_fmt_frame()
481 frameinfo->quantization = streaminfo->quantization; in delta_g_fmt_frame()
483 pix->colorspace = frameinfo->colorspace; in delta_g_fmt_frame()
484 pix->xfer_func = frameinfo->xfer_func; in delta_g_fmt_frame()
485 pix->ycbcr_enc = frameinfo->ycbcr_enc; in delta_g_fmt_frame()
486 pix->quantization = frameinfo->quantization; in delta_g_fmt_frame()
502 dec = delta_find_decoder(ctx, streamformat, ctx->frameinfo.pixelformat); in delta_try_fmt_stream()
648 struct delta_frameinfo frameinfo; in delta_s_fmt_frame() local
679 memset(&frameinfo, 0, sizeof(frameinfo)); in delta_s_fmt_frame()
680 frameinfo.pixelformat = pix->pixelformat; in delta_s_fmt_frame()
681 frameinfo.width = pix->width; in delta_s_fmt_frame()
682 frameinfo.height = pix->height; in delta_s_fmt_frame()
683 frameinfo.aligned_width = pix->width; in delta_s_fmt_frame()
684 frameinfo.aligned_height = pix->height; in delta_s_fmt_frame()
685 frameinfo.size = pix->sizeimage; in delta_s_fmt_frame()
686 frameinfo.field = pix->field; in delta_s_fmt_frame()
687 frameinfo.colorspace = pix->colorspace; in delta_s_fmt_frame()
688 frameinfo.xfer_func = pix->xfer_func; in delta_s_fmt_frame()
689 frameinfo.ycbcr_enc = pix->ycbcr_enc; in delta_s_fmt_frame()
690 frameinfo.quantization = pix->quantization; in delta_s_fmt_frame()
691 ret = call_dec_op(dec, set_frameinfo, ctx, &frameinfo); in delta_s_fmt_frame()
696 ret = call_dec_op(dec, get_frameinfo, ctx, &frameinfo); in delta_s_fmt_frame()
701 ctx->frameinfo = frameinfo; in delta_s_fmt_frame()
705 delta_frameinfo_str(&frameinfo, str, sizeof(str))); in delta_s_fmt_frame()
707 pix->pixelformat = frameinfo.pixelformat; in delta_s_fmt_frame()
708 pix->width = frameinfo.aligned_width; in delta_s_fmt_frame()
709 pix->height = frameinfo.aligned_height; in delta_s_fmt_frame()
711 pix->sizeimage = frameinfo.size; in delta_s_fmt_frame()
712 pix->field = frameinfo.field; in delta_s_fmt_frame()
713 pix->colorspace = frameinfo.colorspace; in delta_s_fmt_frame()
714 pix->xfer_func = frameinfo.xfer_func; in delta_s_fmt_frame()
715 pix->ycbcr_enc = frameinfo.ycbcr_enc; in delta_s_fmt_frame()
716 pix->quantization = frameinfo.quantization; in delta_s_fmt_frame()
725 struct delta_frameinfo *frameinfo = &ctx->frameinfo; in delta_g_selection() local
732 (frameinfo->flags & DELTA_FRAMEINFO_FLAG_CROP)) { in delta_g_selection()
733 crop = frameinfo->crop; in delta_g_selection()
738 crop.width = frameinfo->width; in delta_g_selection()
739 crop.height = frameinfo->height; in delta_g_selection()
753 s->r.width = frameinfo->aligned_width; in delta_g_selection()
754 s->r.height = frameinfo->aligned_height; in delta_g_selection()
1178 struct delta_frameinfo *frameinfo) in delta_get_frameinfo_default() argument
1182 memset(frameinfo, 0, sizeof(*frameinfo)); in delta_get_frameinfo_default()
1183 frameinfo->pixelformat = V4L2_PIX_FMT_NV12; in delta_get_frameinfo_default()
1184 frameinfo->width = streaminfo->width; in delta_get_frameinfo_default()
1185 frameinfo->height = streaminfo->height; in delta_get_frameinfo_default()
1186 frameinfo->aligned_width = ALIGN(streaminfo->width, in delta_get_frameinfo_default()
1188 frameinfo->aligned_height = ALIGN(streaminfo->height, in delta_get_frameinfo_default()
1190 frameinfo->size = frame_size(frameinfo->aligned_width, in delta_get_frameinfo_default()
1191 frameinfo->aligned_height, in delta_get_frameinfo_default()
1192 frameinfo->pixelformat); in delta_get_frameinfo_default()
1194 frameinfo->flags |= DELTA_FRAMEINFO_FLAG_CROP; in delta_get_frameinfo_default()
1195 frameinfo->crop = streaminfo->crop; in delta_get_frameinfo_default()
1198 frameinfo->flags |= DELTA_FRAMEINFO_FLAG_PIXELASPECT; in delta_get_frameinfo_default()
1199 frameinfo->pixelaspect = streaminfo->pixelaspect; in delta_get_frameinfo_default()
1201 frameinfo->field = streaminfo->field; in delta_get_frameinfo_default()
1313 struct delta_frameinfo *frameinfo = &ctx->frameinfo; in delta_vb2_au_start_streaming() local
1325 ctx->frameinfo.pixelformat, &dec); in delta_vb2_au_start_streaming()
1370 ret = call_dec_op(dec, get_frameinfo, ctx, frameinfo); in delta_vb2_au_start_streaming()
1379 delta_frameinfo_str(frameinfo, str2, sizeof(str2))); in delta_vb2_au_start_streaming()
1422 struct delta_frameinfo *frameinfo = &ctx->frameinfo; in delta_vb2_frame_queue_setup() local
1423 unsigned int size = frameinfo->size; in delta_vb2_frame_queue_setup()
1473 frame->info = ctx->frameinfo; in delta_vb2_frame_prepare()