FFmpeg
Data Structures | Macros | Functions | Variables
usmdec.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.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 FFInputFormat ff_usm_demuxer
 

Macro Definition Documentation

◆ VIDEOI

#define VIDEOI   0

Definition at line 30 of file usmdec.c.

◆ AUDIOI

#define AUDIOI   1

Definition at line 31 of file usmdec.c.

◆ ALPHAI

#define ALPHAI   2

Definition at line 32 of file usmdec.c.

◆ SUBTTI

#define SUBTTI   3

Definition at line 33 of file usmdec.c.

Function Documentation

◆ usm_probe()

static int usm_probe ( const AVProbeData p)
static

Definition at line 55 of file usmdec.c.

◆ usm_read_header()

static int usm_read_header ( AVFormatContext s)
static

Definition at line 66 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 72 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 229 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 368 of file usmdec.c.

◆ usm_read_close()

static int usm_read_close ( AVFormatContext s)
static

Definition at line 410 of file usmdec.c.

Variable Documentation

◆ ff_usm_demuxer

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

Definition at line 418 of file usmdec.c.

AVFMT_NO_BYTE_SEEK
#define AVFMT_NO_BYTE_SEEK
Format does not allow seeking by bytes.
Definition: avformat.h:487
USMDemuxContext
Definition: usmdec.c:48
AVFMT_NOBINSEARCH
#define AVFMT_NOBINSEARCH
Format does not allow to fall back on binary search via read_timestamp.
Definition: avformat.h:485
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
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
read_header
static int read_header(FFV1Context *f, RangeCoder *c)
Definition: ffv1dec.c:553
usm_probe
static int usm_probe(const AVProbeData *p)
Definition: usmdec.c:55
usm_read_header
static int usm_read_header(AVFormatContext *s)
Definition: usmdec.c:66
usm_read_close
static int usm_read_close(AVFormatContext *s)
Definition: usmdec.c:410
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
usm_read_packet
static int usm_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: usmdec.c:368