FFmpeg
|
psymodel.h
Go to the documentation of this file.
32 #define AAC_CUTOFF(s) (s->bit_rate ? FFMIN3(4000 + s->bit_rate/8, 12000 + s->bit_rate/32, s->sample_rate / 2) : (s->sample_rate / 2))
66 int window_type[3]; ///< window type (short/long/transitional, etc.) - current, previous and next
114 FFPsyWindowInfo (*window)(FFPsyContext *ctx, const float *audio, const float *la, int channel, int prev_type);
117 * Perform psychoacoustic analysis and set band info (threshold, energy) for a group of channels.
124 void (*analyze)(FFPsyContext *ctx, int channel, const float **coeffs, const FFPsyWindowInfo *wi);
psychoacoustic information for an arbitrary group of channels
Definition: psymodel.h:56
Definition: psymodel.c:86
struct FFPsyPreprocessContext * ff_psy_preprocess_init(AVCodecContext *avctx)
psychoacoustic model audio preprocessing initialization
Definition: psymodel.c:96
overlapping window(triangular window to avoid too much overlapping) ovidx
external API header
void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx)
Cleanup audio preprocessing module.
Definition: psymodel.c:138
FFPsyChannelGroup * ff_psy_find_group(FFPsyContext *ctx, int channel)
Determine what group a channel belongs to.
Definition: psymodel.c:66
struct FFPsyChannelGroup FFPsyChannelGroup
psychoacoustic information for an arbitrary group of channels
static int analyze(const uint8_t *buf, int size, int packet_size, int *index)
Definition: mpegts.c:419
void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx, float **audio, int channels)
Preprocess several channel in audio frame in order to compress it better.
Definition: psymodel.c:125
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.
Definition: psymodel.c:31
Generated on Mon Nov 18 2024 06:51:59 for FFmpeg by 1.8.11