FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
qcp.c File Reference

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

#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "riff.h"

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_4gv [16]
 
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 38 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 77 of file qcp.c.

Referenced by qcp_read_header().

static int qcp_probe ( AVProbeData pd)
static

Definition at line 82 of file qcp.c.

static int qcp_read_header ( AVFormatContext s)
static

Definition at line 90 of file qcp.c.

static int qcp_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 145 of file qcp.c.

Variable Documentation

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 47 of file qcp.c.

Referenced by is_qcelp_13k_guid().

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 55 of file qcp.c.

Referenced by qcp_read_header().

const uint8_t guid_4gv[16]
static
Initial value:
= {
0xca, 0x29, 0xfd, 0x3c, 0x53, 0xf6, 0xf5, 0x4e,
0x90, 0xe9, 0xf4, 0x23, 0x6d, 0x59, 0x9b, 0x61
}

Definition at line 60 of file qcp.c.

Referenced by qcp_read_header().

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 68 of file qcp.c.

Referenced by qcp_read_header().

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:145
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int qcp_probe(AVProbeData *pd)
Definition: qcp.c:82
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:510
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int qcp_read_header(AVFormatContext *s)
Definition: qcp.c:90
Definition: qcp.c:35

Definition at line 198 of file qcp.c.