Lines Matching defs:codec
3 * Coda multi-standard codec IP
297 * Normalize all supported YUV 4:2:0 formats to the value used in the codec
339 const struct coda_codec *codec,
347 if (codec) {
348 w = codec->max_w;
349 h = codec->max_h;
587 static int coda_try_fmt(struct coda_ctx *ctx, const struct coda_codec *codec,
604 coda_get_max_dimensions(dev, codec, &max_w, &max_h);
658 const struct coda_codec *codec;
703 codec = coda_find_codec(ctx->dev, q_data_src->fourcc,
705 if (!codec)
708 ret = coda_try_fmt(ctx, codec, f);
716 if (codec->src_fourcc == V4L2_PIX_FMT_JPEG &&
765 const struct coda_codec *codec;
776 codec = coda_find_codec(dev, f->fmt.pix.pixelformat, q_data_dst->fourcc);
778 return coda_try_fmt(ctx, codec, f);
858 const struct coda_codec *codec;
888 /* Setting the coded format determines the selected codec */
889 codec = coda_find_codec(ctx->dev, q_data_src->fourcc,
891 if (!codec) {
892 v4l2_err(&ctx->dev->v4l2_dev, "failed to determine codec\n");
895 ctx->codec = codec;
909 const struct coda_codec *codec;
930 /* Setting the coded format determines the selected codec */
931 codec = coda_find_codec(ctx->dev, f->fmt.pix.pixelformat,
933 if (!codec) {
934 v4l2_err(&ctx->dev->v4l2_dev, "failed to determine codec\n");
937 ctx->codec = codec;
1286 const struct coda_codec *codec;
1294 codec = coda_find_codec(ctx->dev, fsize->pixel_format,
1297 codec = coda_find_codec(ctx->dev, V4L2_PIX_FMT_YUV420,
1300 if (!codec)
1305 fsize->stepwise.max_width = codec->max_w;
1308 fsize->stepwise.max_height = codec->max_h;
1319 const struct coda_codec *codec;
1330 codec = coda_find_codec(ctx->dev, f->pixel_format,
1333 codec = coda_find_codec(ctx->dev, V4L2_PIX_FMT_YUV420,
1336 if (!codec)
1339 if (f->width < MIN_W || f->width > codec->max_w ||
1340 f->height < MIN_H || f->height > codec->max_h)
1656 ctx->codec = coda_find_codec(ctx->dev, ctx->cvd->src_formats[0],
1658 max_w = min(ctx->codec->max_w, 1920U);
1659 max_h = min(ctx->codec->max_h, 1088U);
1663 ctx->params.codec_mode = ctx->codec->mode;
1685 if (ctx->codec->src_fourcc == V4L2_PIX_FMT_YUV420) {
1801 switch (ctx->codec->src_fourcc) {
3361 MODULE_DESCRIPTION("Coda multi-standard codec V4L2 driver");