FFmpeg
Loading...
Searching...
No Matches
usmdec.c File Reference
#include "libavutil/intfloat.h"
#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 31 of file usmdec.c.

Referenced by parse_chunk(), and parse_utf().

◆ AUDIOI

#define AUDIOI   1

Definition at line 32 of file usmdec.c.

Referenced by parse_chunk(), and parse_utf().

◆ ALPHAI

#define ALPHAI   2

Definition at line 33 of file usmdec.c.

Referenced by parse_chunk(), and parse_utf().

◆ SUBTTI

#define SUBTTI   3

Definition at line 34 of file usmdec.c.

Referenced by parse_chunk().

Function Documentation

◆ usm_probe()

static int usm_probe ( const AVProbeData * p)
static

Definition at line 56 of file usmdec.c.

◆ usm_read_header()

static int usm_read_header ( AVFormatContext * s)
static

Definition at line 67 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 73 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 230 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 369 of file usmdec.c.

◆ usm_read_close()

static int usm_read_close ( AVFormatContext * s)
static

Definition at line 411 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),
}
#define AVFMT_NO_BYTE_SEEK
Format does not allow seeking by bytes.
Definition avformat.h:506
#define AVFMT_NOBINSEARCH
Format does not allow to fall back on binary search via read_timestamp.
Definition avformat.h:504
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
#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
static int usm_read_header(AVFormatContext *s)
Definition usmdec.c:67
static int usm_read_close(AVFormatContext *s)
Definition usmdec.c:411
static int usm_probe(const AVProbeData *p)
Definition usmdec.c:56
static int usm_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition usmdec.c:369

Definition at line 419 of file usmdec.c.