qcp.c File Reference

QCP format (.qcp) demuxer. More...

Include dependency graph for qcp.c:

Go to the source code of this file.

Data Structures

struct  QCPContext
 

Macros

#define QCP_MAX_MODE   4
 

Functions

static int is_qcelp_13k_guid (const uint8_t *guid)
 
static int qcp_probe (AVProbeData *pd)
 
static int qcp_read_header (AVFormatContext *s)
 
static int qcp_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const uint8_t guid_qcelp_13k_part [15]
 Last 15 out of 16 bytes of QCELP-13K GUID, as stored in the file; the first byte of the GUID can be either 0x41 or 0x42. More...
 
static const uint8_t guid_evrc [16]
 EVRC GUID as stored in the file. More...
 
static const uint8_t guid_smv [16]
 SMV GUID as stored in the file. More...
 
AVInputFormat ff_qcp_demuxer
 

Detailed Description

QCP format (.qcp) demuxer.

Author
Kenan Gillet
See also
RFC 3625: "The QCP File Format and Media Types for Speech Data" http://tools.ietf.org/html/rfc3625

Definition in file qcp.c.

Macro Definition Documentation

#define QCP_MAX_MODE   4

Definition at line 37 of file qcp.c.

Referenced by qcp_read_header(), and qcp_read_packet().

Function Documentation

static int is_qcelp_13k_guid ( const uint8_t guid)
static
Parameters
guidcontains at least 16 bytes
Returns
1 if the guid is a qcelp_13k guid, 0 otherwise

Definition at line 71 of file qcp.c.

Referenced by qcp_read_header().

static int qcp_probe ( AVProbeData pd)
static

Definition at line 76 of file qcp.c.

static int qcp_read_header ( AVFormatContext s)
static

Definition at line 84 of file qcp.c.

static int qcp_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 136 of file qcp.c.

Variable Documentation

AVInputFormat ff_qcp_demuxer
Initial value:
= {
.name = "qcp",
.long_name = NULL_IF_CONFIG_SMALL("QCP"),
.priv_data_size = sizeof(QCPContext),
}
static int qcp_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: qcp.c:136
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int read_probe(AVProbeData *pd)
static int qcp_probe(AVProbeData *pd)
Definition: qcp.c:76
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:517
static int qcp_read_header(AVFormatContext *s)
Definition: qcp.c:84
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
Definition: qcp.c:34

Definition at line 189 of file qcp.c.

const uint8_t guid_evrc[16]
static
Initial value:
= {
0x8d, 0xd4, 0x89, 0xe6, 0x76, 0x90, 0xb5, 0x46,
0x91, 0xef, 0x73, 0x6a, 0x51, 0x00, 0xce, 0xb4
}

EVRC GUID as stored in the file.

Definition at line 54 of file qcp.c.

Referenced by qcp_read_header().

const uint8_t guid_qcelp_13k_part[15]
static
Initial value:
= {
0x6d, 0x7f, 0x5e, 0x15, 0xb1, 0xd0, 0x11, 0xba,
0x91, 0x00, 0x80, 0x5f, 0xb4, 0xb9, 0x7e
}

Last 15 out of 16 bytes of QCELP-13K GUID, as stored in the file; the first byte of the GUID can be either 0x41 or 0x42.

Definition at line 46 of file qcp.c.

Referenced by is_qcelp_13k_guid().

const uint8_t guid_smv[16]
static
Initial value:
= {
0x75, 0x2b, 0x7c, 0x8d, 0x97, 0xa7, 0x49, 0xed,
0x98, 0x5e, 0xd5, 0x3c, 0x8c, 0xc7, 0x5f, 0x84
}

SMV GUID as stored in the file.

Definition at line 62 of file qcp.c.

Referenced by qcp_read_header().