FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
aacenc_tns.h File Reference

AAC encoder temporal noise shaping. More...

#include "aacenc.h"

Go to the source code of this file.

Macros

#define TNS_Q_BITS   4
 
#define TNS_GAIN_THRESHOLD_LOW   1.395f
 
#define TNS_GAIN_THRESHOLD_HIGH   11.19f
 
#define TNS_E_RATIO_LOW   0.77
 
#define TNS_E_RATIO_HIGH   1.23
 
#define TNS_SPREAD_THRESHOLD   37.081512f
 

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 )

Definition in file aacenc_tns.h.

Macro Definition Documentation

#define TNS_Q_BITS   4

Definition at line 34 of file aacenc_tns.h.

Referenced by ff_aac_encode_tns_info(), and quantize_coefs().

#define TNS_GAIN_THRESHOLD_LOW   1.395f

Definition at line 37 of file aacenc_tns.h.

Referenced by ff_aac_search_for_tns().

#define TNS_GAIN_THRESHOLD_HIGH   11.19f

Definition at line 38 of file aacenc_tns.h.

Referenced by ff_aac_search_for_tns().

#define TNS_E_RATIO_LOW   0.77

Definition at line 42 of file aacenc_tns.h.

Referenced by ff_aac_search_for_tns().

#define TNS_E_RATIO_HIGH   1.23

Definition at line 43 of file aacenc_tns.h.

Referenced by ff_aac_search_for_tns().

#define TNS_SPREAD_THRESHOLD   37.081512f

Definition at line 46 of file aacenc_tns.h.

Referenced by ff_aac_search_for_tns().

Function Documentation

void ff_aac_encode_tns_info ( AACEncContext s,
SingleChannelElement sce 
)

Encode TNS data.

Coefficient compression saves a single bit per coefficient.

Definition at line 38 of file aacenc_tns.c.

void ff_aac_apply_tns ( AACEncContext s,
SingleChannelElement sce 
)

Definition at line 85 of file aacenc_tns.c.

void ff_aac_search_for_tns ( AACEncContext s,
SingleChannelElement sce 
)

Definition at line 125 of file aacenc_tns.c.