Lines Matching refs:frame
35 #include "libavutil/frame.h"
225 static int libjxl_color_encoding_event(AVCodecContext *avctx, AVFrame *frame)
261 avctx->color_range = frame->color_range = AVCOL_RANGE_JPEG;
314 frame->color_trc = avctx->color_trc;
315 frame->color_primaries = avctx->color_primaries;
316 frame->colorspace = avctx->colorspace;
321 static int libjxl_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
380 if ((ret = libjxl_color_encoding_event(avctx, frame)) < 0)
385 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
387 ctx->jxl_pixfmt.align = frame->linesize[0];
388 if (JxlDecoderSetImageOutBuffer(ctx->decoder, &ctx->jxl_pixfmt, frame->data[0], frame->buf[0]->size)
395 /* full image is one frame, even if animated */
397 frame->pict_type = AV_PICTURE_TYPE_I;
398 frame->key_frame = 1;
400 AVFrameSideData *sd = av_frame_new_side_data_from_buf(frame, AV_FRAME_DATA_ICC_PROFILE, ctx->iccp);