Lines Matching defs:avctx

187 static av_noinline int read_hufftable(AVCodecContext *avctx, VLC *vlc)
189 PhotoCDContext *s = avctx->priv_data;
224 static av_noinline int decode_huff(AVCodecContext *avctx, AVFrame *frame,
227 PhotoCDContext *s = avctx->priv_data;
273 x2 = avctx->width >> (scaling + !!idx);
293 static int photocd_decode_frame(AVCodecContext *avctx, AVFrame *p,
296 PhotoCDContext *s = avctx->priv_data;
307 av_log(avctx, AV_LOG_WARNING, "this is a thumbnails file, "
324 ret = ff_set_dimensions(avctx, img_info[s->resolution].width, img_info[s->resolution].height);
328 if ((ret = ff_thread_get_buffer(avctx, p, 0)) < 0)
346 for (int y = 0; y < avctx->height; y += 2) {
347 bytestream2_get_buffer(gb, ptr, avctx->width);
350 bytestream2_get_buffer(gb, ptr, avctx->width);
353 bytestream2_get_buffer(gb, ptr1, avctx->width >> 1);
356 bytestream2_get_buffer(gb, ptr2, avctx->width >> 1);
381 if ((ret = read_hufftable(avctx, &s->vlc[n])) < 0)
385 if (decode_huff(avctx, p, s->resolution, 3) < 0)
393 if ((ret = read_hufftable(avctx, &s->vlc[n])) < 0)
397 if (decode_huff(avctx, p, 4, 4) < 0)
406 for (int y = 0; y < avctx->height >> 1; y++) {
407 for (int x = 0; x < avctx->width >> 1; x++) {
422 static av_cold int photocd_decode_init(AVCodecContext *avctx)
424 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
425 avctx->colorspace = AVCOL_SPC_BT709;
426 avctx->color_primaries = AVCOL_PRI_BT709;
427 avctx->color_trc = AVCOL_TRC_IEC61966_2_1;
428 avctx->color_range = AVCOL_RANGE_JPEG;
433 static av_cold int photocd_decode_close(AVCodecContext *avctx)
435 PhotoCDContext *s = avctx->priv_data;