Lines Matching defs:codec

3  * Coda multi-standard codec IP
296 * Normalize all supported YUV 4:2:0 formats to the value used in the codec
338 const struct coda_codec *codec,
346 if (codec) {
347 w = codec->max_w;
348 h = codec->max_h;
586 static int coda_try_fmt(struct coda_ctx *ctx, const struct coda_codec *codec,
603 coda_get_max_dimensions(dev, codec, &max_w, &max_h);
652 const struct coda_codec *codec;
690 codec = coda_find_codec(ctx->dev, q_data_src->fourcc,
692 if (!codec)
695 ret = coda_try_fmt(ctx, codec, f);
703 if (codec->src_fourcc == V4L2_PIX_FMT_JPEG &&
752 const struct coda_codec *codec;
763 codec = coda_find_codec(dev, f->fmt.pix.pixelformat, q_data_dst->fourcc);
765 return coda_try_fmt(ctx, codec, f);
845 const struct coda_codec *codec;
866 /* Setting the coded format determines the selected codec */
867 codec = coda_find_codec(ctx->dev, q_data_src->fourcc,
869 if (!codec) {
870 v4l2_err(&ctx->dev->v4l2_dev, "failed to determine codec\n");
873 ctx->codec = codec;
887 const struct coda_codec *codec;
908 /* Setting the coded format determines the selected codec */
909 codec = coda_find_codec(ctx->dev, f->fmt.pix.pixelformat,
911 if (!codec) {
912 v4l2_err(&ctx->dev->v4l2_dev, "failed to determine codec\n");
915 ctx->codec = codec;
1286 const struct coda_codec *codec;
1297 codec = coda_find_codec(ctx->dev, fsize->pixel_format,
1300 codec = coda_find_codec(ctx->dev, V4L2_PIX_FMT_YUV420,
1303 if (!codec)
1308 fsize->stepwise.max_width = codec->max_w;
1311 fsize->stepwise.max_height = codec->max_h;
1322 const struct coda_codec *codec;
1333 codec = coda_find_codec(ctx->dev, f->pixel_format,
1336 codec = coda_find_codec(ctx->dev, V4L2_PIX_FMT_YUV420,
1339 if (!codec)
1342 if (f->width < MIN_W || f->width > codec->max_w ||
1343 f->height < MIN_H || f->height > codec->max_h)
1662 ctx->codec = coda_find_codec(ctx->dev, ctx->cvd->src_formats[0],
1664 max_w = min(ctx->codec->max_w, 1920U);
1665 max_h = min(ctx->codec->max_h, 1088U);
1669 ctx->params.codec_mode = ctx->codec->mode;
1686 if (ctx->codec->src_fourcc == V4L2_PIX_FMT_YUV420) {
1802 switch (ctx->codec->src_fourcc) {
3349 MODULE_DESCRIPTION("Coda multi-standard codec V4L2 driver");