Lines Matching defs:avctx

53     AVCodecContext *avctx;
62 * @param avctx codec context
65 static av_cold int decode_init(AVCodecContext *avctx)
67 FrapsContext * const s = avctx->priv_data;
69 s->avctx = avctx;
102 if ((ret = ff_huff_build_tree(s->avctx, &vlc, 256, VLC_BITS,
136 static int decode_frame(AVCodecContext *avctx, AVFrame *f,
139 FrapsContext * const s = avctx->priv_data;
154 av_log(avctx, AV_LOG_ERROR, "Packet is too short\n");
164 avpriv_report_missing_feature(avctx, "Fraps version %u", version);
171 unsigned needed_size = avctx->width * avctx->height + 1024;
174 av_log(avctx, AV_LOG_ERROR,
180 unsigned needed_size = avctx->width * avctx->height * 3;
189 av_log(avctx, AV_LOG_ERROR,
201 av_log(avctx, AV_LOG_ERROR, "error in data stream\n");
207 av_log(avctx, AV_LOG_ERROR, "plane %i offset is out of bounds\n", i);
222 avctx->pix_fmt = version & 1 ? is_pal ? AV_PIX_FMT_PAL8 : AV_PIX_FMT_BGR24 : AV_PIX_FMT_YUVJ420P;
223 avctx->color_range = version & 1 ? AVCOL_RANGE_UNSPECIFIED
225 avctx->colorspace = version & 1 ? AVCOL_SPC_UNSPECIFIED : AVCOL_SPC_BT709;
227 if ((ret = ff_thread_get_buffer(avctx, f, 0)) < 0)
234 if (((avctx->width % 8) != 0) || ((avctx->height % 2) != 0)) {
235 av_log(avctx, AV_LOG_ERROR, "Invalid frame size %dx%d\n",
236 avctx->width, avctx->height);
241 for (y = 0; y < avctx->height / 2; y++) {
246 for (x = 0; x < avctx->width; x += 8) {
266 for (y = 0; y <avctx->height; y++)
268 &buf[y * avctx->width],
269 avctx->width);
272 for (y = 0; y<avctx->height; y++)
273 memcpy(&f->data[0][(avctx->height - y - 1) * f->linesize[0]],
274 &buf[y * avctx->width * 3],
275 3 * avctx->width);
288 avctx->width >> is_chroma,
289 avctx->height >> is_chroma,
292 av_log(avctx, AV_LOG_ERROR, "Error decoding plane %i\n", i);
301 if ((ret = fraps2_decode_plane(s, f->data[0] + i + (f->linesize[0] * (avctx->height - 1)),
302 -f->linesize[0], avctx->width, avctx->height,
304 av_log(avctx, AV_LOG_ERROR, "Error decoding plane %i\n", i);
310 for (j = 0; j < avctx->height; j++) {
311 uint8_t *line_end = out + 3*avctx->width;
317 out += f->linesize[0] - 3*avctx->width;
330 * @param avctx codec context
333 static av_cold int decode_end(AVCodecContext *avctx)
335 FrapsContext *s = (FrapsContext*)avctx->priv_data;