FFmpeg
Data Structures | Macros | Functions | Variables
usmdec.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavcodec/bytestream.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  USMChannel
 
struct  USMDemuxContext
 

Macros

#define VIDEOI   0
 
#define AUDIOI   1
 
#define ALPHAI   2
 
#define SUBTTI   3
 

Functions

static int usm_probe (const AVProbeData *p)
 
static int usm_read_header (AVFormatContext *s)
 
static int parse_utf (AVFormatContext *s, AVIOContext *pb, USMChannel *ch, int ch_type, uint32_t parent_chunk_size)
 
static int64_t parse_chunk (AVFormatContext *s, AVIOContext *pb, uint32_t chunk_type, uint32_t chunk_size, AVPacket *pkt)
 
static int usm_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int usm_read_close (AVFormatContext *s)
 

Variables

const AVInputFormat ff_usm_demuxer
 

Macro Definition Documentation

◆ VIDEOI

#define VIDEOI   0

Definition at line 29 of file usmdec.c.

◆ AUDIOI

#define AUDIOI   1

Definition at line 30 of file usmdec.c.

◆ ALPHAI

#define ALPHAI   2

Definition at line 31 of file usmdec.c.

◆ SUBTTI

#define SUBTTI   3

Definition at line 32 of file usmdec.c.

Function Documentation

◆ usm_probe()

static int usm_probe ( const AVProbeData p)
static

Definition at line 54 of file usmdec.c.

◆ usm_read_header()

static int usm_read_header ( AVFormatContext s)
static

Definition at line 65 of file usmdec.c.

◆ parse_utf()

static int parse_utf ( AVFormatContext s,
AVIOContext pb,
USMChannel ch,
int  ch_type,
uint32_t  parent_chunk_size 
)
static

Definition at line 71 of file usmdec.c.

Referenced by parse_chunk().

◆ parse_chunk()

static int64_t parse_chunk ( AVFormatContext s,
AVIOContext pb,
uint32_t  chunk_type,
uint32_t  chunk_size,
AVPacket pkt 
)
static

Definition at line 228 of file usmdec.c.

Referenced by usm_read_packet().

◆ usm_read_packet()

static int usm_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 367 of file usmdec.c.

◆ usm_read_close()

static int usm_read_close ( AVFormatContext s)
static

Definition at line 409 of file usmdec.c.

Variable Documentation

◆ ff_usm_demuxer

const AVInputFormat ff_usm_demuxer
Initial value:
= {
.name = "usm",
.long_name = NULL_IF_CONFIG_SMALL("CRI USM"),
.priv_data_size = sizeof(USMDemuxContext),
.extensions = "usm",
}

Definition at line 417 of file usmdec.c.

AVFMT_NO_BYTE_SEEK
#define AVFMT_NO_BYTE_SEEK
Format does not allow seeking by bytes.
Definition: avformat.h:488
USMDemuxContext
Definition: usmdec.c:47
AVFMT_NOBINSEARCH
#define AVFMT_NOBINSEARCH
Format does not allow to fall back on binary search via read_timestamp.
Definition: avformat.h:486
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
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
usm_probe
static int usm_probe(const AVProbeData *p)
Definition: usmdec.c:54
usm_read_header
static int usm_read_header(AVFormatContext *s)
Definition: usmdec.c:65
usm_read_close
static int usm_read_close(AVFormatContext *s)
Definition: usmdec.c:409
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:29
usm_read_packet
static int usm_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: usmdec.c:367
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:474