| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Atrac common functions | 2 * Atrac common functions |
| 3 * Copyright (c) 2006-2008 Maxim Poliakovski | 3 * Copyright (c) 2006-2008 Maxim Poliakovski |
| 4 * Copyright (c) 2006-2008 Benjamin Larsson | 4 * Copyright (c) 2006-2008 Benjamin Larsson |
| 5 * | 5 * |
| 6 * This file is part of FFmpeg. | 6 * This file is part of FFmpeg. |
| 7 * | 7 * |
| 8 * FFmpeg is free software; you can redistribute it and/or | 8 * FFmpeg is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 /** | 23 /** |
| 24 * @file libavcodec/atrac.c | 24 * @file libavcodec/atrac.c |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include <math.h> | 27 #include <math.h> |
| 28 #include <stddef.h> | 28 #include <stddef.h> |
| 29 #include <stdio.h> | 29 #include <stdio.h> |
| 30 | 30 |
| 31 #include "avcodec.h" | 31 #include "avcodec.h" |
| 32 #include "dsputil.h" | 32 #include "dsputil.h" |
| 33 #include "atrac.h" |
| 33 | 34 |
| 34 float sf_table[64]; | 35 float sf_table[64]; |
| 35 float qmf_window[48]; | 36 float qmf_window[48]; |
| 36 | 37 |
| 37 static const float qmf_48tap_half[24] = { | 38 static const float qmf_48tap_half[24] = { |
| 38 -0.00001461907, -0.00009205479,-0.000056157569,0.00030117269, | 39 -0.00001461907, -0.00009205479,-0.000056157569,0.00030117269, |
| 39 0.0002422519, -0.00085293897,-0.0005205574, 0.0020340169, | 40 0.0002422519, -0.00085293897,-0.0005205574, 0.0020340169, |
| 40 0.00078333891, -0.0042153862, -0.00075614988, 0.0078402944, | 41 0.00078333891, -0.0042153862, -0.00075614988, 0.0078402944, |
| 41 -0.000061169922,-0.01344162, 0.0024626821, 0.021736089, | 42 -0.000061169922,-0.01344162, 0.0024626821, 0.021736089, |
| 42 -0.007801671, -0.034090221, 0.01880949, 0.054326009, | 43 -0.007801671, -0.034090221, 0.01880949, 0.054326009, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 pOut[1] = s1; | 111 pOut[1] = s1; |
| 111 | 112 |
| 112 p1 += 2; | 113 p1 += 2; |
| 113 pOut += 2; | 114 pOut += 2; |
| 114 } | 115 } |
| 115 | 116 |
| 116 /* Update the delay buffer. */ | 117 /* Update the delay buffer. */ |
| 117 memcpy(delayBuf, temp + nIn*2, 46*sizeof(float)); | 118 memcpy(delayBuf, temp + nIn*2, 46*sizeof(float)); |
| 118 } | 119 } |
| 119 | 120 |
| OLD | NEW |