Mercurial > libavcodec.hg
comparison psymodel.h @ 12442:94b578d0af10 libavcodec
psymodel: Const correct FFPsyWindowInfo.
author | alexc |
---|---|
date | Mon, 30 Aug 2010 23:48:35 +0000 |
parents | 7f42ae22c351 |
children |
comparison
equal
deleted
inserted
replaced
12441:a3aca8bcbaf4 | 12442:94b578d0af10 |
---|---|
70 */ | 70 */ |
71 typedef struct FFPsyModel { | 71 typedef struct FFPsyModel { |
72 const char *name; | 72 const char *name; |
73 int (*init) (FFPsyContext *apc); | 73 int (*init) (FFPsyContext *apc); |
74 FFPsyWindowInfo (*window)(FFPsyContext *ctx, const int16_t *audio, const int16_t *la, int channel, int prev_type); | 74 FFPsyWindowInfo (*window)(FFPsyContext *ctx, const int16_t *audio, const int16_t *la, int channel, int prev_type); |
75 void (*analyze)(FFPsyContext *ctx, int channel, const float *coeffs, FFPsyWindowInfo *wi); | 75 void (*analyze)(FFPsyContext *ctx, int channel, const float *coeffs, const FFPsyWindowInfo *wi); |
76 void (*end) (FFPsyContext *apc); | 76 void (*end) (FFPsyContext *apc); |
77 } FFPsyModel; | 77 } FFPsyModel; |
78 | 78 |
79 /** | 79 /** |
80 * Initialize psychoacoustic model. | 80 * Initialize psychoacoustic model. |
114 * @param channel audio channel number | 114 * @param channel audio channel number |
115 * @param coeffs pointer to the transformed coefficients | 115 * @param coeffs pointer to the transformed coefficients |
116 * @param wi window information | 116 * @param wi window information |
117 */ | 117 */ |
118 void ff_psy_set_band_info(FFPsyContext *ctx, int channel, const float *coeffs, | 118 void ff_psy_set_band_info(FFPsyContext *ctx, int channel, const float *coeffs, |
119 FFPsyWindowInfo *wi); | 119 const FFPsyWindowInfo *wi); |
120 | 120 |
121 /** | 121 /** |
122 * Cleanup model context at the end. | 122 * Cleanup model context at the end. |
123 * | 123 * |
124 * @param ctx model context | 124 * @param ctx model context |