Lines Matching refs:avctx
27 static av_cold int zero12v_decode_init(AVCodecContext *avctx)
29 avctx->pix_fmt = AV_PIX_FMT_YUV422P16;
30 avctx->bits_per_raw_sample = 10;
32 if (avctx->codec_tag == MKTAG('a', '1', '2', 'v'))
33 avpriv_request_sample(avctx, "transparency");
38 static int zero12v_decode_frame(AVCodecContext *avctx, void *data,
42 const int width = avctx->width;
46 int stride = avctx->width * 8 / 3;
49 av_log(avctx, AV_LOG_ERROR, "Width 1 not supported.\n");
53 if ( avctx->codec_tag == MKTAG('0', '1', '2', 'v')
54 && avpkt->size % avctx->height == 0
55 && avpkt->size / avctx->height * 3 >= width * 8)
56 stride = avpkt->size / avctx->height;
58 if (avpkt->size < avctx->height * stride) {
59 av_log(avctx, AV_LOG_ERROR, "Packet too small: %d instead of %d\n",
60 avpkt->size, avctx->height * stride);
64 if ((ret = ff_get_buffer(avctx, pic, 0)) < 0)
75 while (line++ < avctx->height) {