Mercurial > libavcodec.hg
diff psymodel.h @ 9936:7f42ae22c351 libavcodec
Cosmetics: Pretty print the AAC encoder.
author | alexc |
---|---|
date | Wed, 08 Jul 2009 20:36:45 +0000 |
parents | d09283aeeef8 |
children | 94b578d0af10 |
line wrap: on
line diff
--- a/psymodel.h Wed Jul 08 20:01:31 2009 +0000 +++ b/psymodel.h Wed Jul 08 20:36:45 2009 +0000 @@ -30,29 +30,29 @@ /** * single band psychoacoustic information */ -typedef struct FFPsyBand{ +typedef struct FFPsyBand { int bits; float energy; float threshold; float distortion; float perceptual_weight; -}FFPsyBand; +} FFPsyBand; /** * windowing related information */ -typedef struct FFPsyWindowInfo{ +typedef struct FFPsyWindowInfo { int window_type[3]; ///< window type (short/long/transitional, etc.) - current, previous and next int window_shape; ///< window shape (sine/KBD/whatever) int num_windows; ///< number of windows in a frame int grouping[8]; ///< window grouping (for e.g. AAC) int *window_sizes; ///< sequence of window sizes inside one frame (for eg. WMA) -}FFPsyWindowInfo; +} FFPsyWindowInfo; /** * context used by psychoacoustic model */ -typedef struct FFPsyContext{ +typedef struct FFPsyContext { AVCodecContext *avctx; ///< encoder context const struct FFPsyModel *model; ///< encoder-specific model functions @@ -63,7 +63,7 @@ int num_lens; ///< number of scalefactor band sets void* model_priv_data; ///< psychoacoustic model implementation private data -}FFPsyContext; +} FFPsyContext; /** * codec-specific psychoacoustic model implementation @@ -74,7 +74,7 @@ FFPsyWindowInfo (*window)(FFPsyContext *ctx, const int16_t *audio, const int16_t *la, int channel, int prev_type); void (*analyze)(FFPsyContext *ctx, int channel, const float *coeffs, FFPsyWindowInfo *wi); void (*end) (FFPsyContext *apc); -}FFPsyModel; +} FFPsyModel; /** * Initialize psychoacoustic model.