Lines Matching defs:avctx
27 static av_cold int decode_init(AVCodecContext *avctx)
29 if (avctx->width & 1) {
30 av_log(avctx, AV_LOG_ERROR, "v210x needs even width\n");
33 avctx->pix_fmt = AV_PIX_FMT_YUV422P16;
34 avctx->bits_per_raw_sample = 10;
39 static int decode_frame(AVCodecContext *avctx, AVFrame *pic,
43 int width = avctx->width;
48 if (avpkt->size < avctx->width * avctx->height * 8 / 3) {
49 av_log(avctx, AV_LOG_ERROR, "Packet too small\n");
53 if (avpkt->size > avctx->width * avctx->height * 8 / 3) {
54 avpriv_request_sample(avctx, "(Probably) padded data");
57 if ((ret = ff_get_buffer(avctx, pic, 0)) < 0)
81 if (++y >= avctx->height)
97 if (++y >= avctx->height)
112 if (++y >= avctx->height)