FFmpeg
Loading...
Searching...
No Matches
jpegxl_anim_dec.c File Reference

Animated JPEG XL Demuxer. More...

#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,
}
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition avformat.h:498
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
#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
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
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)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static av_cold int read_close(AVFormatContext *ctx)
Definition libcdio.c:143

Definition at line 196 of file jpegxl_anim_dec.c.