FFmpeg
Data Structures | Macros | Functions | Variables
qcp.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "demux.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 (const 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...
 
const FFInputFormat 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

◆ QCP_MAX_MODE

#define QCP_MAX_MODE   4

Definition at line 39 of file qcp.c.

Function Documentation

◆ is_qcelp_13k_guid()

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

Referenced by qcp_read_header().

◆ qcp_probe()

static int qcp_probe ( const AVProbeData pd)
static

Definition at line 83 of file qcp.c.

◆ qcp_read_header()

static int qcp_read_header ( AVFormatContext s)
static

Definition at line 91 of file qcp.c.

◆ qcp_read_packet()

static int qcp_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 146 of file qcp.c.

Variable Documentation

◆ guid_qcelp_13k_part

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

Referenced by is_qcelp_13k_guid().

◆ guid_evrc

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

Referenced by qcp_read_header().

◆ guid_4gv

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

Referenced by qcp_read_header().

◆ guid_smv

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

Referenced by qcp_read_header().

◆ ff_qcp_demuxer

const FFInputFormat ff_qcp_demuxer
Initial value:
= {
.p.name = "qcp",
.p.long_name = NULL_IF_CONFIG_SMALL("QCP"),
.priv_data_size = sizeof(QCPContext),
}

Definition at line 199 of file qcp.c.

qcp_probe
static int qcp_probe(const AVProbeData *pd)
Definition: qcp.c:83
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
qcp_read_packet
static int qcp_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: qcp.c:146
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
qcp_read_header
static int qcp_read_header(AVFormatContext *s)
Definition: qcp.c:91
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
QCPContext
Definition: qcp.c:36