Lines Matching defs:avctx
38 AVCodecContext *avctx;
117 static int vble_decode_frame(AVCodecContext *avctx, AVFrame *pic,
120 VBLEContext *ctx = avctx->priv_data;
125 int width_uv = avctx->width / 2, height_uv = avctx->height / 2;
129 av_log(avctx, AV_LOG_ERROR, "Invalid packet size\n");
134 if ((ret = ff_thread_get_buffer(avctx, pic, 0)) < 0)
145 av_log(avctx, AV_LOG_WARNING, "Unsupported VBLE Version: %d\n", version);
151 av_log(avctx, AV_LOG_ERROR, "Invalid Code\n");
156 vble_restore_plane(ctx, pic, &gb, 0, offset, avctx->width, avctx->height);
159 if (!(ctx->avctx->flags & AV_CODEC_FLAG_GRAY)) {
160 offset += avctx->width * avctx->height;
172 static av_cold int vble_decode_close(AVCodecContext *avctx)
174 VBLEContext *ctx = avctx->priv_data;
180 static av_cold int vble_decode_init(AVCodecContext *avctx)
182 VBLEContext *ctx = avctx->priv_data;
185 ctx->avctx = avctx;
188 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
189 avctx->bits_per_raw_sample = 8;
191 ctx->size = av_image_get_buffer_size(avctx->pix_fmt,
192 avctx->width, avctx->height, 1);
197 av_log(avctx, AV_LOG_ERROR, "Could not allocate values buffer.\n");