Lines Matching refs:avctx
110 av_log(a->avctx, AV_LOG_ERROR, "coded coeff pattern damaged\n");
170 if (a->avctx->codec_id == AV_CODEC_ID_ASV1) {
198 if (!(a->avctx->flags&CODEC_FLAG_GRAY)) {
204 static int decode_frame(AVCodecContext *avctx,
208 ASV1Context * const a = avctx->priv_data;
214 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
224 if (avctx->codec_id == AV_CODEC_ID_ASV1)
271 static av_cold int decode_init(AVCodecContext *avctx)
273 ASV1Context * const a = avctx->priv_data;
274 const int scale = avctx->codec_id == AV_CODEC_ID_ASV1 ? 1 : 2;
277 if (avctx->extradata_size < 1) {
278 av_log(avctx, AV_LOG_WARNING, "No extradata provided\n");
281 ff_asv_common_init(avctx);
282 ff_blockdsp_init(&a->bdsp, avctx);
283 ff_idctdsp_init(&a->idsp, avctx);
286 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
288 if (avctx->extradata_size < 1 || (a->inv_qscale = avctx->extradata[0]) == 0) {
289 av_log(avctx, AV_LOG_ERROR, "illegal qscale 0\n");
290 if (avctx->codec_id == AV_CODEC_ID_ASV1)
305 static av_cold int decode_end(AVCodecContext *avctx)
307 ASV1Context * const a = avctx->priv_data;