libavformat/qcp.c File Reference

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

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

Go to the source code of this file.

Data Structures

struct  QCPContext

Defines

#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.
static const uint8_t guid_evrc [16]
 EVRC GUID as stored in the file.
static const uint8_t guid_smv [16]
 SMV GUID as stored in the file.
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.


Define Documentation

#define QCP_MAX_MODE   4

Definition at line 36 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:
guid contains at least 16 bytes
Returns:
1 if the guid is a qcelp_13k guid, 0 otherwise

Definition at line 70 of file qcp.c.

Referenced by qcp_read_header().

static int qcp_probe ( AVProbeData pd  )  [static]

Definition at line 75 of file qcp.c.

static int qcp_read_header ( AVFormatContext s  )  [static]

Definition at line 83 of file qcp.c.

static int qcp_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 136 of file qcp.c.


Variable Documentation

Initial value:

 {
    .name           = "qcp",
    .long_name      = NULL_IF_CONFIG_SMALL("QCP format"),
    .priv_data_size = sizeof(QCPContext),
    .read_probe     = qcp_probe,
    .read_header    = qcp_read_header,
    .read_packet    = qcp_read_packet,
}

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

Referenced by qcp_read_header().


Generated on Fri Oct 26 02:48:02 2012 for FFmpeg by  doxygen 1.5.8