webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Macros | Functions
celt_encoder.c File Reference
#include "cpu_support.h"
#include "os_support.h"
#include "mdct.h"
#include <math.h>
#include "celt.h"
#include "pitch.h"
#include "bands.h"
#include "modes.h"
#include "entcode.h"
#include "quant_bands.h"
#include "rate.h"
#include "stack_alloc.h"
#include "mathops.h"
#include "float_cast.h"
#include <stdarg.h>
#include "celt_lpc.h"
#include "vq.h"

Classes

struct  OpusCustomEncoder
 Encoder state. More...
 

Macros

#define CELT_ENCODER_C
 
#define ENCODER_RESET_START   rng
 
#define MSWAP(a, b)   do {opus_val16 tmp = a;a=b;b=tmp;} while(0)
 

Functions

int celt_encoder_get_size (int channels)
 
OPUS_CUSTOM_NOSTATIC int opus_custom_encoder_get_size (const CELTMode *mode, int channels)
 
int celt_encoder_init (CELTEncoder *st, opus_int32 sampling_rate, int channels, int arch)
 
void celt_preemphasis (const opus_val16 *OPUS_RESTRICT pcmp, celt_sig *OPUS_RESTRICT inp, int N, int CC, int upsample, const opus_val16 *coef, celt_sig *mem, int clip)
 
int celt_encode_with_ec (CELTEncoder *OPUS_RESTRICT st, const opus_val16 *pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes, ec_enc *enc)
 
int opus_custom_encoder_ctl (CELTEncoder *OPUS_RESTRICT st, int request,...)
 

Macro Definition Documentation

◆ CELT_ENCODER_C

#define CELT_ENCODER_C

◆ ENCODER_RESET_START

#define ENCODER_RESET_START   rng

◆ MSWAP

#define MSWAP (   a,
  b 
)    do {opus_val16 tmp = a;a=b;b=tmp;} while(0)

Function Documentation

◆ celt_encode_with_ec()

int celt_encode_with_ec ( CELTEncoder *OPUS_RESTRICT  st,
const opus_val16 pcm,
int  frame_size,
unsigned char *  compressed,
int  nbCompressedBytes,
ec_enc enc 
)

< Interleaved signal MDCTs

< Interleaved normalised MDCTs

◆ celt_encoder_get_size()

int celt_encoder_get_size ( int  channels)

◆ celt_encoder_init()

int celt_encoder_init ( CELTEncoder st,
opus_int32  sampling_rate,
int  channels,
int  arch 
)

◆ celt_preemphasis()

void celt_preemphasis ( const opus_val16 *OPUS_RESTRICT  pcmp,
celt_sig *OPUS_RESTRICT  inp,
int  N,
int  CC,
int  upsample,
const opus_val16 coef,
celt_sig mem,
int  clip 
)

◆ opus_custom_encoder_ctl()

int opus_custom_encoder_ctl ( CELTEncoder *OPUS_RESTRICT  st,
int  request,
  ... 
)

◆ opus_custom_encoder_get_size()

OPUS_CUSTOM_NOSTATIC int opus_custom_encoder_get_size ( const CELTMode mode,
int  channels 
)