Lines Matching defs:avctx
61 av_log(a->avctx, AV_LOG_WARNING, "Clipping level %d, increase qscale\n", level);
175 if (a->avctx->codec_id == AV_CODEC_ID_ASV1) {
204 if (!(a->avctx->flags & AV_CODEC_FLAG_GRAY)) {
212 static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
215 ASV1Context *const a = avctx->priv_data;
255 ret = encode_frame(avctx, pkt, clone, got_packet);
261 if ((ret = ff_alloc_packet(avctx, pkt, a->mb_height * a->mb_width * MAX_MB_SIZE +
291 if (avctx->codec_id == AV_CODEC_ID_ASV1)
298 if (avctx->codec_id == AV_CODEC_ID_ASV1) {
309 static av_cold int encode_init(AVCodecContext *avctx)
311 ASV1Context *const a = avctx->priv_data;
313 const int scale = avctx->codec_id == AV_CODEC_ID_ASV1 ? 1 : 2;
315 ff_asv_common_init(avctx);
316 ff_fdctdsp_init(&a->fdsp, avctx);
317 ff_pixblockdsp_init(&a->pdsp, avctx);
319 if (avctx->global_quality <= 0)
320 avctx->global_quality = 4 * FF_QUALITY_SCALE;
323 avctx->global_quality / 2) / avctx->global_quality;
325 avctx->extradata = av_mallocz(8);
326 if (!avctx->extradata)
328 avctx->extradata_size = 8;
329 ((uint32_t *) avctx->extradata)[0] = av_le2ne32(a->inv_qscale);
330 ((uint32_t *) avctx->extradata)[1] = av_le2ne32(AV_RL32("ASUS"));