Lines Matching defs:avctx
38 static av_cold int vcr1_decode_init(AVCodecContext *avctx)
40 avctx->pix_fmt = AV_PIX_FMT_YUV410P;
42 if (avctx->width % 8 || avctx->height%4) {
43 avpriv_request_sample(avctx, "odd dimensions (%d x %d) support", avctx->width, avctx->height);
50 static int vcr1_decode_frame(AVCodecContext *avctx, AVFrame *p,
53 VCR1Context *const a = avctx->priv_data;
58 if(avpkt->size < 32 + avctx->height + avctx->width*avctx->height*5/8){
59 av_log(avctx, AV_LOG_ERROR, "Insufficient input data. %d < %d\n", avpkt->size , 32 + avctx->height + avctx->width*avctx->height*5/8);
63 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
73 for (y = 0; y < avctx->height; y++) {
81 av_assert0 (bytestream_end - bytestream >= 4 + avctx->width);
87 for (x = 0; x < avctx->width; x += 4) {
100 av_assert0 (bytestream_end - bytestream >= avctx->width / 2);
104 for (x = 0; x < avctx->width; x += 8) {