Lines Matching refs:avctx
36 AVCodecContext *avctx;
115 static int vble_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
118 VBLEContext *ctx = avctx->priv_data;
124 int width_uv = avctx->width / 2, height_uv = avctx->height / 2;
128 av_log(avctx, AV_LOG_ERROR, "Invalid packet size\n");
133 if ((ret = ff_get_buffer(avctx, pic, 0)) < 0)
144 av_log(avctx, AV_LOG_WARNING, "Unsupported VBLE Version: %d\n", version);
150 av_log(avctx, AV_LOG_ERROR, "Invalid Code\n");
155 vble_restore_plane(ctx, pic, &gb, 0, offset, avctx->width, avctx->height);
158 if (!(ctx->avctx->flags & CODEC_FLAG_GRAY)) {
159 offset += avctx->width * avctx->height;
171 static av_cold int vble_decode_close(AVCodecContext *avctx)
173 VBLEContext *ctx = avctx->priv_data;
179 static av_cold int vble_decode_init(AVCodecContext *avctx)
181 VBLEContext *ctx = avctx->priv_data;
184 ctx->avctx = avctx;
187 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
188 avctx->bits_per_raw_sample = 8;
190 ctx->size = avpicture_get_size(avctx->pix_fmt,
191 avctx->width, avctx->height);
196 av_log(avctx, AV_LOG_ERROR, "Could not allocate values buffer.\n");
197 vble_decode_close(avctx);