Mercurial > libavcodec.hg
comparison nellymoserenc.c @ 10574:f175e643acff libavcodec
Mark apply_mdct() function as static; it is only used within the file.
author | diego |
---|---|
date | Thu, 26 Nov 2009 09:55:03 +0000 |
parents | 38ab367d4231 |
children | 34a65026fa06 |
comparison
equal
deleted
inserted
replaced
10573:ac49ab818d4d | 10574:f175e643acff |
---|---|
108 | 108 |
109 static const float quant_lut_mul[7] = { 0.0, 0.0, 2.0, 2.0, 5.0, 12.0, 36.6 }; | 109 static const float quant_lut_mul[7] = { 0.0, 0.0, 2.0, 2.0, 5.0, 12.0, 36.6 }; |
110 static const float quant_lut_add[7] = { 0.0, 0.0, 2.0, 7.0, 21.0, 56.0, 157.0 }; | 110 static const float quant_lut_add[7] = { 0.0, 0.0, 2.0, 7.0, 21.0, 56.0, 157.0 }; |
111 static const uint8_t quant_lut_offset[8] = { 0, 0, 1, 4, 11, 32, 81, 230 }; | 111 static const uint8_t quant_lut_offset[8] = { 0, 0, 1, 4, 11, 32, 81, 230 }; |
112 | 112 |
113 void apply_mdct(NellyMoserEncodeContext *s) | 113 static void apply_mdct(NellyMoserEncodeContext *s) |
114 { | 114 { |
115 memcpy(s->in_buff, s->buf[s->bufsel], NELLY_BUF_LEN * sizeof(float)); | 115 memcpy(s->in_buff, s->buf[s->bufsel], NELLY_BUF_LEN * sizeof(float)); |
116 s->dsp.vector_fmul(s->in_buff, ff_sine_128, NELLY_BUF_LEN); | 116 s->dsp.vector_fmul(s->in_buff, ff_sine_128, NELLY_BUF_LEN); |
117 s->dsp.vector_fmul_reverse(s->in_buff + NELLY_BUF_LEN, s->buf[s->bufsel] + NELLY_BUF_LEN, ff_sine_128, | 117 s->dsp.vector_fmul_reverse(s->in_buff + NELLY_BUF_LEN, s->buf[s->bufsel] + NELLY_BUF_LEN, ff_sine_128, |
118 NELLY_BUF_LEN); | 118 NELLY_BUF_LEN); |