Home
last modified time | relevance | path

Searched refs:q_data_src (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/media/platform/chips-media/coda/
H A Dcoda-jpeg.c280 struct coda_q_data *q_data_src; in coda_jpeg_decode_header() local
301 q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in coda_jpeg_decode_header()
302 if (header.frame.height != q_data_src->height || in coda_jpeg_decode_header()
303 header.frame.width != q_data_src->width) { in coda_jpeg_decode_header()
878 struct coda_q_data *q_data_src; in coda9_jpeg_encode_header() local
882 q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in coda9_jpeg_encode_header()
883 chroma_format = coda9_jpeg_chroma_format(q_data_src->fourcc); in coda9_jpeg_encode_header()
945 ret = coda_jpeg_put_word(q_data_src->height, &stream); in coda9_jpeg_encode_header()
948 ret = coda_jpeg_put_word(q_data_src->width, &stream); in coda9_jpeg_encode_header()
1072 struct coda_q_data *q_data_src; in coda9_jpeg_prepare_encode() local
[all …]
H A Dcoda-bit.c627 struct coda_q_data *q_data_src; in coda_encode_header() local
645 q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in coda_encode_header()
646 r = &q_data_src->rect; in coda_encode_header()
833 struct coda_q_data *q_data_src; in coda_setup_iram() local
835 q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in coda_setup_iram()
836 mb_width = DIV_ROUND_UP(q_data_src->rect.width, 16); in coda_setup_iram()
1043 struct coda_q_data *q_data_src; in coda_encoder_reqbufs() local
1050 q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in coda_encoder_reqbufs()
1051 ret = coda_alloc_context_buffers(ctx, q_data_src); in coda_encoder_reqbufs()
1065 struct coda_q_data *q_data_src, *q_data_dst; in coda_start_encoding() local
[all …]
H A Dcoda-common.c451 struct coda_q_data *q_data_src; in coda_enum_fmt() local
460 q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in coda_enum_fmt()
463 if (q_data_src->fourcc == V4L2_PIX_FMT_JPEG && in coda_enum_fmt()
657 const struct coda_q_data *q_data_src; in coda_try_fmt_vid_cap() local
669 q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in coda_try_fmt_vid_cap()
678 if (q_data_src->fourcc == V4L2_PIX_FMT_JPEG && in coda_try_fmt_vid_cap()
680 hscale = coda_jpeg_scale(q_data_src->width, f->fmt.pix.width); in coda_try_fmt_vid_cap()
681 vscale = coda_jpeg_scale(q_data_src->height, f->fmt.pix.height); in coda_try_fmt_vid_cap()
683 f->fmt.pix.width = q_data_src->width >> hscale; in coda_try_fmt_vid_cap()
684 f->fmt.pix.height = q_data_src->height >> vscale; in coda_try_fmt_vid_cap()
[all …]
/linux/drivers/media/platform/mediatek/vcodec/encoder/
H A Dmtk_vcodec_enc.c370 struct mtk_q_data *q_data_src = &ctx->q_data[MTK_Q_DATA_SRC]; in mtk_venc_set_param() local
373 switch (q_data_src->fmt->fourcc) { in mtk_venc_set_param()
387 mtk_v4l2_venc_err(ctx, "Unsupported fourcc =%d", q_data_src->fmt->fourcc); in mtk_venc_set_param()
394 param->width = q_data_src->visible_width; in mtk_venc_set_param()
395 param->height = q_data_src->visible_height; in mtk_venc_set_param()
397 param->buf_width = q_data_src->coded_width; in mtk_venc_set_param()
398 param->buf_height = q_data_src->coded_height; in mtk_venc_set_param()