#include "avcodec.h"
#include "bitstream.h"
#include "dsputil.h"
#include "mpeg4audio.h"
#include "aacpsy.h"
#include "aac.h"
#include "aactab.h"
Go to the source code of this file.
Data Structures | |
| struct | BandCodingPath | 
| structure used in optimal codebook search  More... | |
| struct | AACEncContext | 
| AAC encoder context.  More... | |
Functions | |
| static void | put_audio_specific_config (AVCodecContext *avctx) | 
| Make AAC audio config object.   | |
| static av_cold int | aac_encode_init (AVCodecContext *avctx) | 
| static void | put_ics_info (AACEncContext *s, IndividualChannelStream *info) | 
| Encode ics_info element.   | |
| static int | calculate_band_sign_bits (AACEncContext *s, SingleChannelElement *sce, int group_len, int start, int size) | 
| Calculate the number of bits needed to code all coefficient signs in current band.   | |
| static void | encode_pulses (AACEncContext *s, Pulse *pulse) | 
| Encode pulse data.   | |
| static void | encode_spectral_coeffs (AACEncContext *s, SingleChannelElement *sce) | 
| Encode spectral coefficients processed by psychoacoustic model.   | |
| static void | put_bitstream_info (AVCodecContext *avctx, AACEncContext *s, const char *name) | 
| Write some auxiliary information about the created AAC file.   | |
| static av_cold int | aac_encode_end (AVCodecContext *avctx) | 
Variables | |
| static const uint8_t | swb_size_1024_96 [] | 
| static const uint8_t | swb_size_1024_64 [] | 
| static const uint8_t | swb_size_1024_48 [] | 
| static const uint8_t | swb_size_1024_32 [] | 
| static const uint8_t | swb_size_1024_24 [] | 
| static const uint8_t | swb_size_1024_16 [] | 
| static const uint8_t | swb_size_1024_8 [] | 
| static const uint8_t *const | swb_size_1024 [] | 
| static const uint8_t | swb_size_128_96 [] | 
| static const uint8_t | swb_size_128_48 [] | 
| static const uint8_t | swb_size_128_24 [] | 
| static const uint8_t | swb_size_128_16 [] | 
| static const uint8_t | swb_size_128_8 [] | 
| static const uint8_t *const | swb_size_128 [] | 
| static const uint8_t | run_value_bits_long [64] | 
| bits needed to code codebook run value for long windows   | |
| static const uint8_t | run_value_bits_short [16] | 
| bits needed to code codebook run value for short windows   | |
| static const uint8_t *const | run_value_bits [2] | 
| static const uint8_t | aac_chan_configs [6][5] | 
| default channel configurations   | |
| AVCodec | aac_encoder | 
Definition in file aacenc.c.
| static av_cold int aac_encode_end | ( | AVCodecContext * | avctx | ) |  [static] | 
        
| static av_cold int aac_encode_init | ( | AVCodecContext * | avctx | ) |  [static] | 
        
| static int calculate_band_sign_bits | ( | AACEncContext * | s, | |
| SingleChannelElement * | sce, | |||
| int | group_len, | |||
| int | start, | |||
| int | size | |||
| ) |  [static] | 
        
| static void encode_pulses | ( | AACEncContext * | s, | |
| Pulse * | pulse | |||
| ) |  [static] | 
        
| static void encode_spectral_coeffs | ( | AACEncContext * | s, | |
| SingleChannelElement * | sce | |||
| ) |  [static] | 
        
| static void put_audio_specific_config | ( | AVCodecContext * | avctx | ) |  [static] | 
        
Make AAC audio config object.
Definition at line 180 of file aacenc.c.
Referenced by aac_encode_init().
| static void put_bitstream_info | ( | AVCodecContext * | avctx, | |
| AACEncContext * | s, | |||
| const char * | name | |||
| ) |  [static] | 
        
| static void put_ics_info | ( | AACEncContext * | s, | |
| IndividualChannelStream * | info | |||
| ) |  [static] | 
        
const uint8_t aac_chan_configs[6][5] [static]           | 
        
Initial value:
 {
    "aac",
    CODEC_TYPE_AUDIO,
    CODEC_ID_AAC,
    sizeof(AACEncContext),
    aac_encode_init,
    aac_encode_frame,
    aac_encode_end,
    .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY,
    .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
    .long_name = NULL_IF_CONFIG_SMALL("Advanced Audio Coding"),
}
const uint8_t* const run_value_bits[2] [static]           | 
        
Initial value:
const uint8_t run_value_bits_long[64] [static]           | 
        
Initial value:
 {
     5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,
     5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5,  5, 10,
    10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
    10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 15
}
const uint8_t run_value_bits_short[16] [static]           | 
        
const uint8_t* const swb_size_1024[] [static]           | 
        
Initial value:
 {
    swb_size_1024_96, swb_size_1024_96, swb_size_1024_64,
    swb_size_1024_48, swb_size_1024_48, swb_size_1024_32,
    swb_size_1024_24, swb_size_1024_24, swb_size_1024_16,
    swb_size_1024_16, swb_size_1024_16, swb_size_1024_8
}
Definition at line 86 of file aacenc.c.
Referenced by aac_encode_init().
const uint8_t swb_size_1024_16[] [static]           | 
        
const uint8_t swb_size_1024_24[] [static]           | 
        
const uint8_t swb_size_1024_32[] [static]           | 
        
const uint8_t swb_size_1024_48[] [static]           | 
        
const uint8_t swb_size_1024_64[] [static]           | 
        
const uint8_t swb_size_1024_8[] [static]           | 
        
const uint8_t swb_size_1024_96[] [static]           | 
        
const uint8_t* const swb_size_128[] [static]           | 
        
Initial value:
 {
    
    swb_size_128_96, swb_size_128_96, swb_size_128_96,
    swb_size_128_48, swb_size_128_48, swb_size_128_48,
    swb_size_128_24, swb_size_128_24, swb_size_128_16,
    swb_size_128_16, swb_size_128_16, swb_size_128_8
}
Definition at line 113 of file aacenc.c.
Referenced by aac_encode_init().
const uint8_t swb_size_128_16[] [static]           | 
        
const uint8_t swb_size_128_24[] [static]           | 
        
const uint8_t swb_size_128_48[] [static]           | 
        
const uint8_t swb_size_128_8[] [static]           | 
        
const uint8_t swb_size_128_96[] [static]           | 
        
 1.5.8