Lines Matching refs:avctx
30 static av_cold int aura_decode_init(AVCodecContext *avctx)
33 if (avctx->width & 0x3)
35 avctx->pix_fmt = AV_PIX_FMT_YUV422P;
40 static int aura_decode_frame(AVCodecContext *avctx,
53 if (pkt->size != 48 + avctx->height * avctx->width) {
54 av_log(avctx, AV_LOG_ERROR, "got a buffer with %d bytes when %d were expected\n",
55 pkt->size, 48 + avctx->height * avctx->width);
62 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
70 for (y = 0; y < avctx->height; y++) {
81 for (x = 1; x < (avctx->width >> 1); x++) {
90 Y += frame->linesize[0] - avctx->width;
91 U += frame->linesize[1] - (avctx->width >> 1);
92 V += frame->linesize[2] - (avctx->width >> 1);