FFmpeg
Functions
aptxenc.c File Reference
#include "libavutil/channel_layout.h"
#include "aptx.h"
#include "encode.h"

Go to the source code of this file.

Functions

static av_always_inline void aptx_qmf_polyphase_analysis (FilterSignal signal[NB_FILTERS], const int32_t coeffs[NB_FILTERS][FILTER_TAPS], int shift, int32_t samples[NB_FILTERS], int32_t *low_subband_output, int32_t *high_subband_output)
 
static void aptx_qmf_tree_analysis (QMFAnalysis *qmf, int32_t samples[4], int32_t subband_samples[4])
 
static av_always_inline int32_t aptx_bin_search (int32_t value, int32_t factor, const int32_t *intervals, int32_t nb_intervals)
 
static void aptx_quantize_difference (Quantize *quantize, int32_t sample_difference, int32_t dither, int32_t quantization_factor, ConstTables *tables)
 
static void aptx_encode_channel (Channel *channel, int32_t samples[4], int hd)
 
static void aptx_insert_sync (Channel channels[NB_CHANNELS], int32_t *idx)
 
static uint16_t aptx_pack_codeword (Channel *channel)
 
static uint32_t aptxhd_pack_codeword (Channel *channel)
 
static void aptx_encode_samples (AptXContext *ctx, int32_t samples[NB_CHANNELS][4], uint8_t *output)
 
static int aptx_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 
static av_cold int aptx_close (AVCodecContext *avctx)
 

Function Documentation

◆ aptx_qmf_polyphase_analysis()

static av_always_inline void aptx_qmf_polyphase_analysis ( FilterSignal  signal[NB_FILTERS],
const int32_t  coeffs[NB_FILTERS][FILTER_TAPS],
int  shift,
int32_t  samples[NB_FILTERS],
int32_t low_subband_output,
int32_t high_subband_output 
)
static

Definition at line 34 of file aptxenc.c.

Referenced by aptx_qmf_tree_analysis().

◆ aptx_qmf_tree_analysis()

static void aptx_qmf_tree_analysis ( QMFAnalysis qmf,
int32_t  samples[4],
int32_t  subband_samples[4] 
)
static

Definition at line 59 of file aptxenc.c.

Referenced by aptx_encode_channel().

◆ aptx_bin_search()

static av_always_inline int32_t aptx_bin_search ( int32_t  value,
int32_t  factor,
const int32_t intervals,
int32_t  nb_intervals 
)
static

Definition at line 84 of file aptxenc.c.

Referenced by aptx_quantize_difference().

◆ aptx_quantize_difference()

static void aptx_quantize_difference ( Quantize quantize,
int32_t  sample_difference,
int32_t  dither,
int32_t  quantization_factor,
ConstTables tables 
)
static

Definition at line 97 of file aptxenc.c.

Referenced by aptx_encode_channel().

◆ aptx_encode_channel()

static void aptx_encode_channel ( Channel channel,
int32_t  samples[4],
int  hd 
)
static

Definition at line 137 of file aptxenc.c.

Referenced by aptx_encode_samples().

◆ aptx_insert_sync()

static void aptx_insert_sync ( Channel  channels[NB_CHANNELS],
int32_t idx 
)
static

Definition at line 152 of file aptxenc.c.

Referenced by aptx_encode_samples().

◆ aptx_pack_codeword()

static uint16_t aptx_pack_codeword ( Channel channel)
static

Definition at line 170 of file aptxenc.c.

Referenced by aptx_encode_samples().

◆ aptxhd_pack_codeword()

static uint32_t aptxhd_pack_codeword ( Channel channel)
static

Definition at line 179 of file aptxenc.c.

Referenced by aptx_encode_samples().

◆ aptx_encode_samples()

static void aptx_encode_samples ( AptXContext ctx,
int32_t  samples[NB_CHANNELS][4],
uint8_t *  output 
)
static

Definition at line 188 of file aptxenc.c.

Referenced by aptx_encode_frame().

◆ aptx_encode_frame()

static int aptx_encode_frame ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int got_packet_ptr 
)
static

Definition at line 209 of file aptxenc.c.

◆ aptx_close()

static av_cold int aptx_close ( AVCodecContext avctx)
static

Definition at line 237 of file aptxenc.c.