[FFmpeg-cvslog] aacenc_is: rename struct to follow guidelines

Rostislav Pehlivanov git at videolan.org
Sat Aug 22 07:48:36 CEST 2015


ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Sat Aug 22 06:47:14 2015 +0100| [2c94e45fadf455a4f2af801a498793f7cbb5b339] | committer: Rostislav Pehlivanov

aacenc_is: rename struct to follow guidelines

Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c94e45fadf455a4f2af801a498793f7cbb5b339
---

 libavcodec/aacenc_is.c |   10 +++++-----
 libavcodec/aacenc_is.h |    8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/libavcodec/aacenc_is.c b/libavcodec/aacenc_is.c
index 32a5404..88ba915 100644
--- a/libavcodec/aacenc_is.c
+++ b/libavcodec/aacenc_is.c
@@ -30,15 +30,15 @@
 #include "aacenc_is.h"
 #include "aacenc_quantization.h"
 
-struct ff_aac_is_error ff_aac_is_encoding_err(AACEncContext *s, ChannelElement *cpe,
-                                              int start, int w, int g, float ener0,
-                                              float ener1, float ener01, int phase)
+struct AACISError ff_aac_is_encoding_err(AACEncContext *s, ChannelElement *cpe,
+                                         int start, int w, int g, float ener0,
+                                         float ener1, float ener01, int phase)
 {
     int i, w2;
     float *L34 = &s->scoefs[256*0], *R34 = &s->scoefs[256*1];
     float *IS  = &s->scoefs[256*2], *I34 = &s->scoefs[256*3];
     float dist1 = 0.0f, dist2 = 0.0f;
-    struct ff_aac_is_error is_error = {0};
+    struct AACISError is_error = {0};
     SingleChannelElement *sce0 = &cpe->ch[0];
     SingleChannelElement *sce1 = &cpe->ch[1];
 
@@ -106,7 +106,7 @@ void ff_aac_search_for_is(AACEncContext *s, AVCodecContext *avctx, ChannelElemen
                 cpe->ch[0].band_type[w*16+g] != NOISE_BT && !cpe->ch[0].zeroes[w*16+g] &&
                 cpe->ch[1].band_type[w*16+g] != NOISE_BT && !cpe->ch[1].zeroes[w*16+g]) {
                 float ener0 = 0.0f, ener1 = 0.0f, ener01 = 0.0f;
-                struct ff_aac_is_error ph_err1, ph_err2, *erf;
+                struct AACISError ph_err1, ph_err2, *erf;
                 for (w2 = 0; w2 < sce0->ics.group_len[w]; w2++) {
                     for (i = 0; i < sce0->ics.swb_sizes[g]; i++) {
                         float coef0 = sce0->pcoeffs[start+(w+w2)*128+i];
diff --git a/libavcodec/aacenc_is.h b/libavcodec/aacenc_is.h
index 07e1a9d..f4ca8e2 100644
--- a/libavcodec/aacenc_is.h
+++ b/libavcodec/aacenc_is.h
@@ -31,7 +31,7 @@
 /** Frequency in Hz for lower limit of intensity stereo **/
 #define INT_STEREO_LOW_LIMIT 6100
 
-struct ff_aac_is_error {
+struct AACISError {
     int pass;    /* 1 if dist2 <= dist1  */
     int phase;   /* -1 or +1             */
     float error; /* fabs(dist1 - dist2)  */
@@ -39,9 +39,9 @@ struct ff_aac_is_error {
     float dist2; /* From IS'd coeffs     */
 };
 
-struct ff_aac_is_error ff_aac_is_encoding_err(AACEncContext *s, ChannelElement *cpe,
-                                              int start, int w, int g, float ener0,
-                                              float ener1, float ener01, int phase);
+struct AACISError ff_aac_is_encoding_err(AACEncContext *s, ChannelElement *cpe,
+                                         int start, int w, int g, float ener0,
+                                         float ener1, float ener01, int phase);
 void ff_aac_search_for_is(AACEncContext *s, AVCodecContext *avctx, ChannelElement *cpe);
 
 #endif /* AVCODEC_AACENC_IS_H */



More information about the ffmpeg-cvslog mailing list