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 "demux.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 FFInputFormat 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 44 of file jpegxl_anim_dec.c.

◆ jpegxl_anim_read_header()

static int jpegxl_anim_read_header ( AVFormatContext s)
static

Definition at line 75 of file jpegxl_anim_dec.c.

◆ jpegxl_anim_read_packet()

static int jpegxl_anim_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 147 of file jpegxl_anim_dec.c.

◆ jpegxl_anim_close()

static int jpegxl_anim_close ( AVFormatContext s)
static

Definition at line 187 of file jpegxl_anim_dec.c.

Variable Documentation

◆ ff_jpegxl_anim_demuxer

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

Definition at line 196 of file jpegxl_anim_dec.c.

JXLAnimDemuxContext
Definition: jpegxl_anim_dec.c:40
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
jpegxl_anim_probe
static int jpegxl_anim_probe(const AVProbeData *p)
Definition: jpegxl_anim_dec.c:44
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:480
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
jpegxl_anim_close
static int jpegxl_anim_close(AVFormatContext *s)
Definition: jpegxl_anim_dec.c:187
FF_INFMT_FLAG_INIT_CLEANUP
#define FF_INFMT_FLAG_INIT_CLEANUP
For an FFInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition: demux.h:35
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
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:94
jpegxl_anim_read_header
static int jpegxl_anim_read_header(AVFormatContext *s)
Definition: jpegxl_anim_dec.c:75
jpegxl_anim_read_packet
static int jpegxl_anim_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: jpegxl_anim_dec.c:147
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30