FFmpeg
Data Structures | Macros | Functions | Variables
idroqdec.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "avio_internal.h"

Go to the source code of this file.

Data Structures

struct  RoqDemuxContext
 

Macros

#define RoQ_MAGIC_NUMBER   0x1084
 
#define RoQ_CHUNK_PREAMBLE_SIZE   8
 
#define RoQ_AUDIO_SAMPLE_RATE   22050
 
#define RoQ_CHUNKS_TO_SCAN   30
 
#define RoQ_INFO   0x1001
 
#define RoQ_QUAD_CODEBOOK   0x1002
 
#define RoQ_QUAD_VQ   0x1011
 
#define RoQ_SOUND_MONO   0x1020
 
#define RoQ_SOUND_STEREO   0x1021
 

Functions

static int roq_probe (const AVProbeData *p)
 
static int roq_read_header (AVFormatContext *s)
 
static int roq_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_roq_demuxer
 

Detailed Description

id RoQ format file demuxer by Mike Melanson (melan.nosp@m.son@.nosp@m.pcisy.nosp@m.s.ne.nosp@m.t) for more information on the .roq file format, visit: http://www.csse.monash.edu.au/~timf/

Definition in file idroqdec.c.

Macro Definition Documentation

◆ RoQ_MAGIC_NUMBER

#define RoQ_MAGIC_NUMBER   0x1084

Definition at line 37 of file idroqdec.c.

◆ RoQ_CHUNK_PREAMBLE_SIZE

#define RoQ_CHUNK_PREAMBLE_SIZE   8

Definition at line 38 of file idroqdec.c.

◆ RoQ_AUDIO_SAMPLE_RATE

#define RoQ_AUDIO_SAMPLE_RATE   22050

Definition at line 39 of file idroqdec.c.

◆ RoQ_CHUNKS_TO_SCAN

#define RoQ_CHUNKS_TO_SCAN   30

Definition at line 40 of file idroqdec.c.

◆ RoQ_INFO

#define RoQ_INFO   0x1001

Definition at line 42 of file idroqdec.c.

◆ RoQ_QUAD_CODEBOOK

#define RoQ_QUAD_CODEBOOK   0x1002

Definition at line 43 of file idroqdec.c.

◆ RoQ_QUAD_VQ

#define RoQ_QUAD_VQ   0x1011

Definition at line 44 of file idroqdec.c.

◆ RoQ_SOUND_MONO

#define RoQ_SOUND_MONO   0x1020

Definition at line 45 of file idroqdec.c.

◆ RoQ_SOUND_STEREO

#define RoQ_SOUND_STEREO   0x1021

Definition at line 46 of file idroqdec.c.

Function Documentation

◆ roq_probe()

static int roq_probe ( const AVProbeData p)
static

Definition at line 63 of file idroqdec.c.

◆ roq_read_header()

static int roq_read_header ( AVFormatContext s)
static

Definition at line 72 of file idroqdec.c.

◆ roq_read_packet()

static int roq_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 95 of file idroqdec.c.

Variable Documentation

◆ ff_roq_demuxer

const FFInputFormat ff_roq_demuxer
Initial value:
= {
.p.name = "roq",
.p.long_name = NULL_IF_CONFIG_SMALL("id RoQ"),
.priv_data_size = sizeof(RoqDemuxContext),
}

Definition at line 241 of file idroqdec.c.

RoqDemuxContext
Definition: idroqdec.c:48
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:41
roq_read_packet
static int roq_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: idroqdec.c:95
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
roq_read_header
static int roq_read_header(AVFormatContext *s)
Definition: idroqdec.c:72
roq_probe
static int roq_probe(const AVProbeData *p)
Definition: idroqdec.c:63
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30