FFmpeg
Data Structures | Functions | Variables
jpegxl_anim_dec.c File Reference
#include <stdint.h>
#include <string.h>
#include "libavcodec/jpegxl.h"
#include "libavcodec/jpegxl_parse.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  JXLAnimDemuxContext
 

Functions

static int jpegxl_anim_probe (const AVProbeData *p)
 
static int jpegxl_anim_read_header (AVFormatContext *s)
 
static int jpegxl_anim_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int jpegxl_anim_close (AVFormatContext *s)
 

Variables

const AVInputFormat ff_jpegxl_anim_demuxer
 

Detailed Description

Animated JPEG XL Demuxer

See also
ISO/IEC 18181-1 and 18181-2

Definition in file jpegxl_anim_dec.c.

Function Documentation

◆ jpegxl_anim_probe()

static int jpegxl_anim_probe ( const AVProbeData p)
static

Definition at line 43 of file jpegxl_anim_dec.c.

◆ jpegxl_anim_read_header()

static int jpegxl_anim_read_header ( AVFormatContext s)
static

Definition at line 74 of file jpegxl_anim_dec.c.

◆ jpegxl_anim_read_packet()

static int jpegxl_anim_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 144 of file jpegxl_anim_dec.c.

◆ jpegxl_anim_close()

static int jpegxl_anim_close ( AVFormatContext s)
static

Definition at line 182 of file jpegxl_anim_dec.c.

Variable Documentation

◆ ff_jpegxl_anim_demuxer

const AVInputFormat ff_jpegxl_anim_demuxer
Initial value:
= {
.name = "jpegxl_anim",
.long_name = NULL_IF_CONFIG_SMALL("Animated JPEG XL"),
.priv_data_size = sizeof(JXLAnimDemuxContext),
.flags_internal = FF_FMT_INIT_CLEANUP,
.mime_type = "image/jxl",
.extensions = "jxl",
}

Definition at line 191 of file jpegxl_anim_dec.c.

JXLAnimDemuxContext
Definition: jpegxl_anim_dec.c:39
FF_FMT_INIT_CLEANUP
#define FF_FMT_INIT_CLEANUP
For an AVInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition: internal.h:46
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:480
jpegxl_anim_probe
static int jpegxl_anim_probe(const AVProbeData *p)
Definition: jpegxl_anim_dec.c:43
read_close
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:143
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:481
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:41
jpegxl_anim_close
static int jpegxl_anim_close(AVFormatContext *s)
Definition: jpegxl_anim_dec.c:182
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:106
jpegxl_anim_read_header
static int jpegxl_anim_read_header(AVFormatContext *s)
Definition: jpegxl_anim_dec.c:74
jpegxl_anim_read_packet
static int jpegxl_anim_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: jpegxl_anim_dec.c:144
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:29
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:474