Lines Matching defs:avctx

149     AVCodecContext *avctx;
379 avpriv_request_sample(s->avctx, "Too big code length");
394 avpriv_request_sample(s->avctx, "No place for run symbol");
401 avpriv_request_sample(s->avctx, "Too big code length");
1181 static int decode_block(AVCodecContext *avctx, void *tdata,
1184 EXRContext *s = avctx->priv_data;
1225 avpriv_report_missing_feature(s->avctx, "Subres tile before full res tile");
1245 av_image_check_size2(td->xsize, td->ysize, s->avctx->max_pixels, AV_PIX_FMT_NONE, 0, s->avctx) < 0)
1270 av_image_check_size2(td->xsize, td->ysize, s->avctx->max_pixels, AV_PIX_FMT_NONE, 0, s->avctx) < 0)
1284 window_xmin = FFMIN(avctx->width, FFMAX(0, s->xmin + col));
1285 window_xmax = FFMIN(avctx->width, FFMAX(0, s->xmin + col + td->xsize));
1286 window_ymin = FFMIN(avctx->height, FFMAX(0, line ));
1287 window_ymax = FFMIN(avctx->height, FFMAX(0, line + td->ysize));
1306 window_xmax = avctx->width;
1308 axmax = FFMAX(0, (avctx->width - (s->xmax + 1))) * step;
1311 if (avctx->max_pixels && uncompressed_size > avctx->max_pixels * 16LL)
1352 av_log(avctx, AV_LOG_ERROR, "decode_block() failed.\n");
1541 av_log(s->avctx, AV_LOG_WARNING,
1583 av_log(s->avctx, AV_LOG_ERROR, "Header too short to parse.\n");
1591 av_log(s->avctx, AV_LOG_ERROR, "Wrong magic number %d.\n", magic_number);
1597 avpriv_report_missing_feature(s->avctx, "Version %d", version);
1608 avpriv_report_missing_feature(s->avctx, "deep data");
1668 av_log(s->avctx, AV_LOG_INFO,
1675 av_log(s->avctx, AV_LOG_INFO,
1703 av_log(s->avctx, AV_LOG_WARNING,
1714 av_log(s->avctx, AV_LOG_ERROR, "Incomplete header.\n");
1721 avpriv_report_missing_feature(s->avctx, "Pixel type %d",
1732 avpriv_report_missing_feature(s->avctx,
1742 av_log(s->avctx, AV_LOG_ERROR,
1750 av_log(s->avctx, AV_LOG_WARNING,
1783 av_log(s->avctx, AV_LOG_ERROR, "Missing red channel.\n");
1785 av_log(s->avctx, AV_LOG_ERROR, "Missing green channel.\n");
1787 av_log(s->avctx, AV_LOG_ERROR, "Missing blue channel.\n");
1851 av_log(s->avctx, AV_LOG_DEBUG, "line order: %d.\n", line_order);
1853 av_log(s->avctx, AV_LOG_ERROR, "Unknown line order.\n");
1880 av_log(s->avctx, AV_LOG_WARNING,
1890 av_log(s->avctx, AV_LOG_WARNING,
1901 avpriv_report_missing_feature(s->avctx, "Tile level mode %d",
1908 avpriv_report_missing_feature(s->avctx, "Tile level round %d",
1930 s->avctx->framerate.num = bytestream2_get_le32(gb);
1931 s->avctx->framerate.den = bytestream2_get_le32(gb);
1975 av_log(s->avctx, AV_LOG_ERROR, "Incomplete header\n");
2008 av_log(s->avctx, AV_LOG_ERROR, "Missing compression attribute.\n");
2015 av_log(s->avctx, AV_LOG_ERROR, "Invalid tile attribute.\n");
2022 av_log(s->avctx, AV_LOG_ERROR, "Incomplete frame.\n");
2037 static int decode_frame(AVCodecContext *avctx, AVFrame *picture,
2040 EXRContext *s = avctx->priv_data;
2069 avctx->pix_fmt = AV_PIX_FMT_GBRAPF32;
2072 avctx->pix_fmt = AV_PIX_FMT_GBRAPF32;
2076 avctx->pix_fmt = AV_PIX_FMT_GBRPF32;
2078 avctx->pix_fmt = AV_PIX_FMT_GRAYF32;
2085 avctx->pix_fmt = AV_PIX_FMT_RGBA64;
2087 avctx->pix_fmt = AV_PIX_FMT_YA16;
2091 avctx->pix_fmt = AV_PIX_FMT_RGB48;
2093 avctx->pix_fmt = AV_PIX_FMT_GRAY16;
2098 av_log(avctx, AV_LOG_ERROR, "Missing channel list.\n");
2103 avctx->color_trc = s->apply_trc_type;
2125 avpriv_report_missing_feature(avctx, "Compression %d", s->compression);
2133 av_log(avctx, AV_LOG_ERROR, "Wrong or missing size information.\n");
2137 if ((ret = ff_set_dimensions(avctx, s->w, s->h)) < 0)
2140 ff_set_sar(s->avctx, av_d2q(av_int2float(s->sar), 255));
2142 s->desc = av_pix_fmt_desc_get(avctx->pix_fmt);
2148 out_line_size = avctx->width * 4;
2151 out_line_size = avctx->width * 2 * s->desc->nb_components;
2162 if ((ret = ff_thread_get_buffer(avctx, picture, 0)) < 0)
2170 av_log(s->avctx, AV_LOG_DEBUG, "recreating invalid scanline offset table\n");
2202 avctx->execute2(avctx, decode_block, s->thread_data, NULL, nb_blocks);
2206 if (ymax < avctx->height)
2209 for (y = ymax; y < avctx->height; y++) {
2221 static av_cold int decode_init(AVCodecContext *avctx)
2223 EXRContext *s = avctx->priv_data;
2231 s->avctx = avctx;
2266 s->thread_data = av_calloc(avctx->thread_count, sizeof(*s->thread_data));
2273 static av_cold int decode_end(AVCodecContext *avctx)
2275 EXRContext *s = avctx->priv_data;
2277 for (i = 0; i < avctx->thread_count; i++) {