Mercurial > libavcodec.hg
comparison aaccoder.c @ 12192:8e087b8af4f1 libavcodec
Cosmetics: Whitespace
| author | alexc |
|---|---|
| date | Mon, 19 Jul 2010 18:37:45 +0000 |
| parents | fca82e8683d4 |
| children | 0a63bed2a00e |
comparison
equal
deleted
inserted
replaced
| 12191:335efeae3bb7 | 12192:8e087b8af4f1 |
|---|---|
| 177 cost += rd * lambda + curbits; | 177 cost += rd * lambda + curbits; |
| 178 resbits += curbits; | 178 resbits += curbits; |
| 179 if (cost >= uplim) | 179 if (cost >= uplim) |
| 180 return uplim; | 180 return uplim; |
| 181 if (pb) { | 181 if (pb) { |
| 182 put_bits(pb, ff_aac_spectral_bits[cb-1][curidx], ff_aac_spectral_codes[cb-1][curidx]); | 182 put_bits(pb, ff_aac_spectral_bits[cb-1][curidx], ff_aac_spectral_codes[cb-1][curidx]); |
| 183 if (BT_UNSIGNED) | 183 if (BT_UNSIGNED) |
| 184 for (j = 0; j < dim; j++) | 184 for (j = 0; j < dim; j++) |
| 185 if (ff_aac_codebook_vectors[cb-1][curidx*dim+j] != 0.0f) | 185 if (ff_aac_codebook_vectors[cb-1][curidx*dim+j] != 0.0f) |
| 186 put_bits(pb, 1, in[i+j] < 0.0f); | 186 put_bits(pb, 1, in[i+j] < 0.0f); |
| 187 if (BT_ESC) { | 187 if (BT_ESC) { |
| 188 for (j = 0; j < 2; j++) { | 188 for (j = 0; j < 2; j++) { |
| 189 if (ff_aac_codebook_vectors[cb-1][curidx*2+j] == 64.0f) { | 189 if (ff_aac_codebook_vectors[cb-1][curidx*2+j] == 64.0f) { |
| 190 int coef = av_clip(quant(fabsf(in[i+j]), Q), 0, 8191); | 190 int coef = av_clip(quant(fabsf(in[i+j]), Q), 0, 8191); |
| 191 int len = av_log2(coef); | 191 int len = av_log2(coef); |
| 192 | 192 |
| 193 put_bits(pb, len - 4 + 1, (1 << (len - 4 + 1)) - 2); | 193 put_bits(pb, len - 4 + 1, (1 << (len - 4 + 1)) - 2); |
| 194 put_bits(pb, len, coef & ((1 << len) - 1)); | 194 put_bits(pb, len, coef & ((1 << len) - 1)); |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 } | 197 } |
| 198 } | 198 } |
| 199 } | 199 } |
| 200 | 200 |
| 201 if (bits) | 201 if (bits) |
| 202 *bits = resbits; | 202 *bits = resbits; |
