FFmpeg
|
#include <string.h>
#include "avcodec.h"
#include "psymodel.h"
#include "iirfilter.h"
#include "libavutil/mem.h"
Go to the source code of this file.
Data Structures | |
struct | FFPsyPreprocessContext |
Macros | |
#define | FILT_ORDER 4 |
Typedefs | |
typedef struct FFPsyPreprocessContext | FFPsyPreprocessContext |
Functions | |
av_cold int | ff_psy_init (FFPsyContext *ctx, AVCodecContext *avctx, int num_lens, const uint8_t **bands, const int *num_bands, int num_groups, const uint8_t *group_map) |
Initialize psychoacoustic model. More... | |
FFPsyChannelGroup * | ff_psy_find_group (FFPsyContext *ctx, int channel) |
Determine what group a channel belongs to. More... | |
av_cold void | ff_psy_end (FFPsyContext *ctx) |
Cleanup model context at the end. More... | |
av_cold struct FFPsyPreprocessContext * | ff_psy_preprocess_init (AVCodecContext *avctx) |
psychoacoustic model audio preprocessing initialization More... | |
void | ff_psy_preprocess (struct FFPsyPreprocessContext *ctx, float **audio, int channels) |
Preprocess several channel in audio frame in order to compress it better. More... | |
av_cold void | ff_psy_preprocess_end (struct FFPsyPreprocessContext *ctx) |
Cleanup audio preprocessing module. More... | |
Variables | |
const FFPsyModel | ff_aac_psy_model |
Macro Definition Documentation
#define FILT_ORDER 4 |
Definition at line 94 of file psymodel.c.
Referenced by ff_iir_filter_init(), and ff_psy_preprocess_init().
Typedef Documentation
typedef struct FFPsyPreprocessContext FFPsyPreprocessContext |
Function Documentation
av_cold void ff_psy_end | ( | FFPsyContext * | ctx | ) |
Cleanup model context at the end.
- Parameters
-
ctx model context
Definition at line 76 of file psymodel.c.
Referenced by aac_encode_end().
FFPsyChannelGroup* ff_psy_find_group | ( | FFPsyContext * | ctx, |
int | channel | ||
) |
Determine what group a channel belongs to.
- Parameters
-
ctx psymodel context channel channel to locate the group for
- Returns
- pointer to the FFPsyChannelGroup this channel belongs to
Definition at line 66 of file psymodel.c.
Referenced by psy_3gpp_analyze().
av_cold int ff_psy_init | ( | FFPsyContext * | ctx, |
AVCodecContext * | avctx, | ||
int | num_lens, | ||
const uint8_t ** | bands, | ||
const int * | num_bands, | ||
int | num_groups, | ||
const uint8_t * | group_map | ||
) |
Initialize psychoacoustic model.
- Parameters
-
ctx model context avctx codec context num_lens number of possible frame lengths bands scalefactor band lengths for all frame lengths num_bands number of scalefactor bands for all frame lengths num_groups number of channel groups group_map array with # of channels in group - 1, for each group
- Returns
- zero if successful, a negative value if not
Definition at line 31 of file psymodel.c.
Referenced by aac_encode_init().
void ff_psy_preprocess | ( | struct FFPsyPreprocessContext * | ctx, |
float ** | audio, | ||
int | channels | ||
) |
Preprocess several channel in audio frame in order to compress it better.
- Parameters
-
ctx preprocessing context audio samples to be filtered (in place) channels number of channel to preprocess
Definition at line 125 of file psymodel.c.
Referenced by aac_encode_frame().
av_cold void ff_psy_preprocess_end | ( | struct FFPsyPreprocessContext * | ctx | ) |
Cleanup audio preprocessing module.
Definition at line 138 of file psymodel.c.
Referenced by aac_encode_end().
av_cold struct FFPsyPreprocessContext* ff_psy_preprocess_init | ( | AVCodecContext * | avctx | ) |
psychoacoustic model audio preprocessing initialization
Definition at line 96 of file psymodel.c.
Referenced by aac_encode_init().
Variable Documentation
const FFPsyModel ff_aac_psy_model |
Definition at line 955 of file aacpsy.c.
Referenced by ff_psy_init().
Generated on Mon Nov 18 2024 06:52:08 for FFmpeg by 1.8.11