FFmpeg
Data Structures | Macros | Functions | Variables
aptxdec.c File Reference
#include "config_components.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "demux.h"

Go to the source code of this file.

Data Structures

struct  AptXDemuxerContext
 

Macros

#define APTX_BLOCK_SIZE   4
 
#define APTX_PACKET_SIZE   (256*APTX_BLOCK_SIZE)
 
#define APTX_HD_BLOCK_SIZE   6
 
#define APTX_HD_PACKET_SIZE   (256*APTX_HD_BLOCK_SIZE)
 

Functions

static AVStreamaptx_read_header_common (AVFormatContext *s)
 
static int aptx_read_header (AVFormatContext *s)
 
static int aptx_hd_read_header (AVFormatContext *s)
 
static int aptx_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int aptx_hd_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption aptx_options []
 
static const AVClass aptx_demuxer_class
 

Macro Definition Documentation

◆ APTX_BLOCK_SIZE

#define APTX_BLOCK_SIZE   4

Definition at line 29 of file aptxdec.c.

◆ APTX_PACKET_SIZE

#define APTX_PACKET_SIZE   (256*APTX_BLOCK_SIZE)

Definition at line 30 of file aptxdec.c.

◆ APTX_HD_BLOCK_SIZE

#define APTX_HD_BLOCK_SIZE   6

Definition at line 32 of file aptxdec.c.

◆ APTX_HD_PACKET_SIZE

#define APTX_HD_PACKET_SIZE   (256*APTX_HD_BLOCK_SIZE)

Definition at line 33 of file aptxdec.c.

Function Documentation

◆ aptx_read_header_common()

static AVStream* aptx_read_header_common ( AVFormatContext s)
static

Definition at line 40 of file aptxdec.c.

Referenced by aptx_hd_read_header(), and aptx_read_header().

◆ aptx_read_header()

static int aptx_read_header ( AVFormatContext s)
static

Definition at line 54 of file aptxdec.c.

◆ aptx_hd_read_header()

static int aptx_hd_read_header ( AVFormatContext s)
static

Definition at line 65 of file aptxdec.c.

◆ aptx_read_packet()

static int aptx_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 76 of file aptxdec.c.

◆ aptx_hd_read_packet()

static int aptx_hd_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 84 of file aptxdec.c.

Variable Documentation

◆ aptx_options

const AVOption aptx_options[]
static
Initial value:
= {
{ "sample_rate", "", 0x42, AV_OPT_TYPE_INT, {.i64 = 48000}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}

Definition at line 92 of file aptxdec.c.

◆ aptx_demuxer_class

const AVClass aptx_demuxer_class
static
Initial value:
= {
.class_name = "aptx (hd) demuxer",
.item_name = av_default_item_name,
.option = aptx_options,
}

Definition at line 97 of file aptxdec.c.

aptx_options
static const AVOption aptx_options[]
Definition: aptxdec.c:92
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:245
AV_OPT_FLAG_DECODING_PARAM
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
Definition: opt.h:284