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

Go to the source code of this file.

Data Structures

struct  BitReader
 
struct  MOFLEXDemuxContext
 

Functions

static int pop (BitReader *br, AVIOContext *pb)
 
static int pop_int (BitReader *br, AVIOContext *pb, int n)
 
static int pop_length (BitReader *br, AVIOContext *pb)
 
static int read_var_byte (AVFormatContext *s, unsigned *out)
 
static int moflex_probe (const AVProbeData *p)
 
static int moflex_read_sync (AVFormatContext *s)
 
static int moflex_read_header (AVFormatContext *s)
 
static int moflex_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int moflex_read_seek (AVFormatContext *s, int stream_index, int64_t pts, int flags)
 
static int moflex_read_close (AVFormatContext *s)
 

Variables

const FFInputFormat ff_moflex_demuxer
 

Function Documentation

◆ pop()

static int pop ( BitReader br,
AVIOContext pb 
)
static

Definition at line 45 of file moflex.c.

Referenced by moflex_read_packet(), pop_int(), and pop_length().

◆ pop_int()

static int pop_int ( BitReader br,
AVIOContext pb,
int  n 
)
static

Definition at line 59 of file moflex.c.

Referenced by moflex_read_packet().

◆ pop_length()

static int pop_length ( BitReader br,
AVIOContext pb 
)
static

Definition at line 76 of file moflex.c.

Referenced by moflex_read_packet().

◆ read_var_byte()

static int read_var_byte ( AVFormatContext s,
unsigned *  out 
)
static

Definition at line 88 of file moflex.c.

Referenced by moflex_read_sync().

◆ moflex_probe()

static int moflex_probe ( const AVProbeData p)
static

Definition at line 121 of file moflex.c.

◆ moflex_read_sync()

static int moflex_read_sync ( AVFormatContext s)
static

Definition at line 156 of file moflex.c.

Referenced by moflex_read_header(), and moflex_read_packet().

◆ moflex_read_header()

static int moflex_read_header ( AVFormatContext s)
static

Definition at line 250 of file moflex.c.

◆ moflex_read_packet()

static int moflex_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 264 of file moflex.c.

◆ moflex_read_seek()

static int moflex_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  pts,
int  flags 
)
static

Definition at line 356 of file moflex.c.

◆ moflex_read_close()

static int moflex_read_close ( AVFormatContext s)
static

Definition at line 366 of file moflex.c.

Variable Documentation

◆ ff_moflex_demuxer

const FFInputFormat ff_moflex_demuxer
Initial value:
= {
.p.name = "moflex",
.p.long_name = NULL_IF_CONFIG_SMALL("MobiClip MOFLEX"),
.p.extensions = "moflex",
.p.flags = AVFMT_GENERIC_INDEX,
.priv_data_size = sizeof(MOFLEXDemuxContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
}

Definition at line 375 of file moflex.c.

moflex_probe
static int moflex_probe(const AVProbeData *p)
Definition: moflex.c:121
read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:151
MOFLEXDemuxContext
Definition: moflex.c:35
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
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:550
moflex_read_close
static int moflex_read_close(AVFormatContext *s)
Definition: moflex.c:366
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
moflex_read_seek
static int moflex_read_seek(AVFormatContext *s, int stream_index, int64_t pts, int flags)
Definition: moflex.c:356
moflex_read_packet
static int moflex_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: moflex.c:264
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
moflex_read_header
static int moflex_read_header(AVFormatContext *s)
Definition: moflex.c:250