Lines Matching defs:avctx
397 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
400 FMVCContext *s = avctx->priv_data;
430 avpriv_report_missing_feature(avctx, "Compression type %d", type);
434 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
441 dst = frame->data[0] + (avctx->height - 1) * frame->linesize[0];
442 for (y = 0; y < avctx->height; y++) {
443 memcpy(dst, src, avctx->width * s->bpp);
484 avpriv_report_missing_feature(avctx, "Compression type %d", type);
520 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
527 ddst = frame->data[0] + (avctx->height - 1) * frame->linesize[0];
528 for (y = 0; y < avctx->height; y++) {
529 memcpy(ddst, ssrc, avctx->width * s->bpp);
540 static av_cold int decode_init(AVCodecContext *avctx)
542 FMVCContext *s = avctx->priv_data;
545 switch (avctx->bits_per_coded_sample) {
547 avctx->pix_fmt = AV_PIX_FMT_RGB555LE;
550 avctx->pix_fmt = AV_PIX_FMT_BGR24;
553 avctx->pix_fmt = AV_PIX_FMT_BGRA;
556 av_log(avctx, AV_LOG_ERROR, "Unsupported bitdepth %i\n",
557 avctx->bits_per_coded_sample);
561 s->stride = (avctx->width * avctx->bits_per_coded_sample + 31) / 32;
573 s->yb = avctx->height / BLOCK_HEIGHT;
574 m = avctx->height % BLOCK_HEIGHT;
616 s->bpp = avctx->bits_per_coded_sample >> 3;
617 s->buffer_size = avctx->width * avctx->height * 4;
618 s->pbuffer_size = avctx->width * avctx->height * 4;
627 static av_cold int decode_close(AVCodecContext *avctx)
629 FMVCContext *s = avctx->priv_data;