FFmpeg
|
#include <stdint.h>
#include "libavcodec/avcodec.h"
#include "dsp.h"
#include "rc.h"
#include "libavutil/float_dsp.h"
#include "libavutil/libm.h"
#include "libavutil/mem_internal.h"
#include "libavutil/tx.h"
Go to the source code of this file.
Data Structures | |
struct | CeltBlock |
struct | CeltFrame |
Macros | |
#define | CELT_SHORT_BLOCKSIZE 120 |
#define | CELT_OVERLAP CELT_SHORT_BLOCKSIZE |
#define | CELT_MAX_LOG_BLOCKS 3 |
#define | CELT_MAX_FRAME_SIZE (CELT_SHORT_BLOCKSIZE * (1 << CELT_MAX_LOG_BLOCKS)) |
#define | CELT_MAX_BANDS 21 |
#define | CELT_VECTORS 11 |
#define | CELT_ALLOC_STEPS 6 |
#define | CELT_FINE_OFFSET 21 |
#define | CELT_MAX_FINE_BITS 8 |
#define | CELT_NORM_SCALE 16384 |
#define | CELT_QTHETA_OFFSET 4 |
#define | CELT_QTHETA_OFFSET_TWOPHASE 16 |
#define | CELT_POSTFILTER_MINPERIOD 15 |
#define | CELT_ENERGY_SILENCE (-28.0f) |
Enumerations | |
enum | CeltSpread { CELT_SPREAD_NONE, CELT_SPREAD_LIGHT, CELT_SPREAD_NORMAL, CELT_SPREAD_AGGRESSIVE } |
enum | CeltBlockSize { CELT_BLOCK_120, CELT_BLOCK_240, CELT_BLOCK_480, CELT_BLOCK_960, CELT_BLOCK_NB } |
Functions | |
static av_always_inline uint32_t | celt_rng (CeltFrame *f) |
static av_always_inline void | celt_renormalize_vector (float *X, int N, float gain) |
int | ff_celt_init (AVCodecContext *avctx, CeltFrame **f, int output_channels, int apply_phase_inv) |
void | ff_celt_free (CeltFrame **f) |
void | ff_celt_flush (CeltFrame *f) |
int | ff_celt_decode_frame (CeltFrame *f, OpusRangeCoder *rc, float **output, int coded_channels, int frame_size, int startband, int endband) |
void | ff_celt_quant_bands (CeltFrame *f, OpusRangeCoder *rc) |
void | ff_celt_bitalloc (CeltFrame *f, OpusRangeCoder *rc, int encode) |
#define CELT_OVERLAP CELT_SHORT_BLOCKSIZE |
#define CELT_MAX_FRAME_SIZE (CELT_SHORT_BLOCKSIZE * (1 << CELT_MAX_LOG_BLOCKS)) |
enum CeltSpread |
enum CeltBlockSize |
|
static |
Definition at line 150 of file celt.h.
Referenced by process_anticollapse(), and quant_band_template().
|
static |
Definition at line 156 of file celt.h.
Referenced by process_anticollapse(), and quant_band_template().
int ff_celt_init | ( | AVCodecContext * | avctx, |
CeltFrame ** | f, | ||
int | output_channels, | ||
int | apply_phase_inv | ||
) |
Definition at line 545 of file dec_celt.c.
Referenced by opus_decode_init().
void ff_celt_free | ( | CeltFrame ** | f | ) |
Definition at line 528 of file dec_celt.c.
Referenced by ff_celt_init(), and opus_decode_close().
void ff_celt_flush | ( | CeltFrame * | f | ) |
Definition at line 497 of file dec_celt.c.
Referenced by ff_celt_init(), opus_decode_flush(), and opus_decode_frame().
int ff_celt_decode_frame | ( | CeltFrame * | f, |
OpusRangeCoder * | rc, | ||
float ** | output, | ||
int | coded_channels, | ||
int | frame_size, | ||
int | startband, | ||
int | endband | ||
) |
Definition at line 323 of file dec_celt.c.
Referenced by opus_decode_frame(), and opus_decode_redundancy().
void ff_celt_quant_bands | ( | CeltFrame * | f, |
OpusRangeCoder * | rc | ||
) |
Definition at line 28 of file celt.c.
Referenced by celt_encode_frame(), and ff_celt_decode_frame().
void ff_celt_bitalloc | ( | CeltFrame * | f, |
OpusRangeCoder * | rc, | ||
int | encode | ||
) |
Definition at line 137 of file celt.c.
Referenced by bands_dist(), celt_encode_frame(), and ff_celt_decode_frame().