Mercurial > libavcodec.hg
comparison vorbis_data.c @ 10347:93abbe76b5cc libavcodec
Add vorbis channel layout support according to those defined in the Vorbis I
specification
| author | superdump |
|---|---|
| date | Fri, 02 Oct 2009 12:59:37 +0000 |
| parents | 7bfcc66f807d |
| children | 34a65026fa06 |
comparison
equal
deleted
inserted
replaced
| 10346:f12b7ea2df2a | 10347:93abbe76b5cc |
|---|---|
| 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "dsputil.h" | 21 #include "dsputil.h" |
| 22 #include "vorbis.h" | 22 #include "vorbis.h" |
| 23 | |
| 24 const uint8_t ff_vorbis_channel_layout_offsets[6][6] = { | |
| 25 { 0, }, | |
| 26 { 0, 1, }, | |
| 27 { 0, 2, 1, }, | |
| 28 { 0, 1, 2, 3, }, | |
| 29 { 0, 2, 1, 3, 4, }, | |
| 30 { 0, 2, 1, 5, 3, 4, } | |
| 31 }; | |
| 32 | |
| 33 const int64_t ff_vorbis_channel_layouts[7] = { | |
| 34 CH_LAYOUT_MONO, | |
| 35 CH_LAYOUT_STEREO, | |
| 36 CH_LAYOUT_SURROUND, | |
| 37 CH_LAYOUT_QUAD, | |
| 38 CH_LAYOUT_5POINT0_BACK, | |
| 39 CH_LAYOUT_5POINT1_BACK, | |
| 40 0 | |
| 41 }; | |
| 23 | 42 |
| 24 DECLARE_ALIGNED_16(static const float, vwin64[32]) = { | 43 DECLARE_ALIGNED_16(static const float, vwin64[32]) = { |
| 25 0.0009460463F, 0.0085006468F, 0.0235352254F, 0.0458950567F, | 44 0.0009460463F, 0.0085006468F, 0.0235352254F, 0.0458950567F, |
| 26 0.0753351908F, 0.1115073077F, 0.1539457973F, 0.2020557475F, | 45 0.0753351908F, 0.1115073077F, 0.1539457973F, 0.2020557475F, |
| 27 0.2551056759F, 0.3122276645F, 0.3724270287F, 0.4346027792F, | 46 0.2551056759F, 0.3122276645F, 0.3724270287F, 0.4346027792F, |
