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

AAC Spectral Band Replication function declarations. More...

#include "get_bits.h"
#include "aac.h"
#include "sbr.h"

Go to the source code of this file.

Functions

av_cold void ff_aac_sbr_init (void)
 Initialize SBR.
 
av_cold void ff_aac_sbr_ctx_init (AACContext *ac, SpectralBandReplication *sbr)
 Initialize one SBR context.
 
av_cold void ff_aac_sbr_ctx_close (SpectralBandReplication *sbr)
 Close one SBR context.
 
int ff_decode_sbr_extension (AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int crc, int cnt, int id_aac)
 Decode one SBR element.
 
void ff_sbr_apply (AACContext *ac, SpectralBandReplication *sbr, int id_aac, float *L, float *R)
 Apply one SBR element to one AAC element.
 

Detailed Description

AAC Spectral Band Replication function declarations.

Author
Robert Swain ( rob opendot cl )

Definition in file aacsbr.h.

Function Documentation

av_cold void ff_aac_sbr_init ( void  )

Initialize SBR.

Definition at line 89 of file aacsbr.c.

Referenced by aac_decode_init().

av_cold void ff_aac_sbr_ctx_init ( AACContext ac,
SpectralBandReplication sbr 
)

Initialize one SBR context.

Definition at line 142 of file aacsbr.c.

Referenced by che_configure().

av_cold void ff_aac_sbr_ctx_close ( SpectralBandReplication sbr)

Close one SBR context.

Definition at line 159 of file aacsbr.c.

Referenced by aac_decode_close(), and che_configure().

int ff_decode_sbr_extension ( AACContext ac,
SpectralBandReplication sbr,
GetBitContext gb_host,
int  crc,
int  cnt,
int  id_aac 
)

Decode one SBR element.

Decode one SBR element.

Parameters
crcflag indicating the presence of CRC checksum
cntlength of TYPE_FIL syntactic element in bytes
Returns
Returns number of bytes consumed from the TYPE_FIL element.

Definition at line 1066 of file aacsbr.c.

Referenced by decode_extension_payload().

void ff_sbr_apply ( AACContext ac,
SpectralBandReplication sbr,
int  id_aac,
float *  L,
float *  R 
)

Apply one SBR element to one AAC element.

Definition at line 1667 of file aacsbr.c.

Referenced by spectral_to_sample().