Lines Matching defs:avctx
62 AVCodecContext *avctx;
151 if(s->avctx->height - y > 1) {
153 if(s->avctx->height - y > 2) {
155 if(s->avctx->height - y > 3) {
328 if (s->size < encoded_buf_size * (int64_t)(100 - s->avctx->discard_damaged_percentage) / 100)
334 avpriv_request_sample(s->avctx, "encoded_buf_size 0");
426 static av_cold int cinepak_decode_init(AVCodecContext *avctx)
428 CinepakContext *s = avctx->priv_data;
430 s->avctx = avctx;
431 s->width = (avctx->width + 3) & ~3;
432 s->height = (avctx->height + 3) & ~3;
437 if (avctx->bits_per_coded_sample != 8) {
439 avctx->pix_fmt = AV_PIX_FMT_RGB24;
442 avctx->pix_fmt = AV_PIX_FMT_PAL8;
452 static int cinepak_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
457 CinepakContext *s = avctx->priv_data;
473 av_log(avctx, AV_LOG_ERROR, "cinepak_predecode_check failed\n");
477 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
481 s->frame->palette_has_changed = ff_copy_palette(s->pal, avpkt, avctx);
485 av_log(avctx, AV_LOG_ERROR, "cinepak_decode failed\n");
500 static av_cold int cinepak_decode_end(AVCodecContext *avctx)
502 CinepakContext *s = avctx->priv_data;