FFmpeg
Macros | Functions
aacenc_tns.c File Reference

AAC encoder temporal noise shaping. More...

#include "libavutil/libm.h"
#include "aacenc.h"
#include "aacenc_tns.h"
#include "aactab.h"
#include "aacenc_utils.h"
#include "aacenc_quantization.h"

Macros

#define TNS_Q_BITS   4
 
#define TNS_Q_BITS_IS8   4
 
#define TNS_ENABLE_COEF_COMPRESSION
 
#define TNS_GAIN_THRESHOLD_LOW   1.4f
 
#define TNS_GAIN_THRESHOLD_HIGH   1.16f*TNS_GAIN_THRESHOLD_LOW
 

Functions

void ff_aac_encode_tns_info (AACEncContext *s, SingleChannelElement *sce)
 Encode TNS data. More...
 
void ff_aac_apply_tns (AACEncContext *s, SingleChannelElement *sce)
 
void ff_aac_search_for_tns (AACEncContext *s, SingleChannelElement *sce)
 

Detailed Description

AAC encoder temporal noise shaping.

Author
Rostislav Pehlivanov ( atomnuker gmail com )

Function Documentation

§ ff_aac_encode_tns_info()

void ff_aac_encode_tns_info ( AACEncContext s,
SingleChannelElement sce 
)

Encode TNS data.

Coefficient compression is simply not lossless as it should be on any decoder tested and as such is not active.