Lines Matching defs:frame
32 #include "libavutil/frame.h"
88 * Initalize the decoder on a per-frame basis. All of these need to be set
89 * once each time the decoder is reset, which it must be each frame to make
98 /* reset the encoder every frame for image2 muxer */
158 * not every frame.
241 * Encode an entire frame. Currently animation, is not supported by
243 * and encode a one-frame image (for image2 and image2pipe).
245 static int libjxl_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
249 const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(frame->format);
261 av_log(avctx, AV_LOG_ERROR, "Error frame-initializing JxlEncoder\n");
268 info.xsize = frame->width;
269 info.ysize = frame->height;
286 avctx->color_range == AVCOL_RANGE_UNSPECIFIED && frame->color_range == AVCOL_RANGE_MPEG)
288 else if (avctx->color_range != AVCOL_RANGE_JPEG && frame->color_range != AVCOL_RANGE_JPEG)
303 switch (frame->color_trc && frame->color_trc != AVCOL_TRC_UNSPECIFIED
304 ? frame->color_trc : avctx->color_trc) {
349 frame->color_primaries && frame->color_primaries != AVCOL_PRI_UNSPECIFIED
350 ? frame->color_primaries : avctx->color_primaries);
354 sd = av_frame_get_side_data(frame, AV_FRAME_DATA_ICC_PROFILE);
368 jxl_fmt.align = frame->linesize[0];
370 if (JxlEncoderAddImageFrame(ctx->options, &jxl_fmt, frame->data[0], jxl_fmt.align * info.ysize) != JXL_ENC_SUCCESS) {
376 * Run this after the last frame in the image has been passed.