23#include "config_components.h"
29#define APTX_BLOCK_SIZE 4
30#define APTX_PACKET_SIZE (256*APTX_BLOCK_SIZE)
32#define APTX_HD_BLOCK_SIZE 6
33#define APTX_HD_PACKET_SIZE (256*APTX_HD_BLOCK_SIZE)
81 return ret >= 0 ? 0 : ret;
89 return ret >= 0 ? 0 : ret;
98 .class_name =
"aptx (hd) demuxer",
104#if CONFIG_APTX_DEMUXER
108 .p.extensions =
"aptx",
117#if CONFIG_APTX_HD_DEMUXER
121 .p.extensions =
"aptxhd",
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_header(FFV1Context *f, RangeCoder *c)
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
@ AV_OPT_TYPE_INT
Underlying C type is int.
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
const char * av_default_item_name(void *ptr)
Return the context name.
@ AV_SAMPLE_FMT_S32P
signed 32 bits, planar
#define LIBAVUTIL_VERSION_INT
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
int nb_channels
Number of channels in this layout.
Describe the class of an AVClass context structure.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
AVChannelLayout ch_layout
The channel layout and number of channels.
enum AVMediaType codec_type
General type of the encoded data.
int block_align
The number of bytes per coded audio frame, required by some formats.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
The number of audio samples per second.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base.