Mercurial > libavcodec.hg
diff dvdata.h @ 1036:c7922c5becf6 libavcodec
DV audio decoder by Roman Shaposhnick
author | bellard |
---|---|
date | Mon, 27 Jan 2003 09:21:30 +0000 |
parents | 50f7e3bef20f |
children | b32afefe7d33 |
line wrap: on
line diff
--- a/dvdata.h Sun Jan 26 23:11:08 2003 +0000 +++ b/dvdata.h Mon Jan 27 09:21:30 2003 +0000 @@ -18,6 +18,7 @@ */ #define NB_DV_VLC 409 +#define AAUX_OFFSET (80*6 + 80*16*3 + 3) static const UINT16 dv_vlc_bits[409] = { 0x0000, 0x0002, 0x0007, 0x0008, 0x0009, 0x0014, 0x0015, 0x0016, @@ -905,3 +906,41 @@ 0x0834, 0x2320, 0x2f44, 0x3810, 0x1658, }; +static const UINT16 dv_place_audio60[10][9] = { + { 0, 30, 60, 20, 50, 80, 10, 40, 70 }, /* 1st channel */ + { 6, 36, 66, 26, 56, 86, 16, 46, 76 }, + { 12, 42, 72, 2, 32, 62, 22, 52, 82 }, + { 18, 48, 78, 8, 38, 68, 28, 58, 88 }, + { 24, 54, 84, 14, 44, 74, 4, 34, 64 }, + + { 1, 31, 61, 21, 51, 81, 11, 41, 71 }, /* 2nd channel */ + { 7, 37, 67, 27, 57, 87, 17, 47, 77 }, + { 13, 43, 73, 3, 33, 63, 23, 53, 83 }, + { 19, 49, 79, 9, 39, 69, 29, 59, 89 }, + { 25, 55, 85, 15, 45, 75, 5, 35, 65 }, +}; + +static const UINT16 dv_place_audio50[12][9] = { + { 0, 36, 72, 26, 62, 98, 16, 52, 88}, /* 1st channel */ + { 6, 42, 78, 32, 68, 104, 22, 58, 94}, + { 12, 48, 84, 2, 38, 74, 28, 64, 100}, + { 18, 54, 90, 8, 44, 80, 34, 70, 106}, + { 24, 60, 96, 14, 50, 86, 4, 40, 76}, + { 30, 66, 102, 20, 56, 92, 10, 46, 82}, + + { 1, 37, 73, 27, 63, 99, 17, 53, 89}, /* 2nd channel */ + { 7, 43, 79, 33, 69, 105, 23, 59, 95}, + { 13, 49, 85, 3, 39, 75, 29, 65, 101}, + { 19, 55, 91, 9, 45, 81, 35, 71, 107}, + { 25, 61, 97, 15, 51, 87, 5, 41, 77}, + { 31, 67, 103, 21, 57, 93, 11, 47, 83}, +}; + +static const int dv_audio_frequency[3] = { + 48000, 44100, 32000, +}; + +static const int dv_audio_min_samples[2][3] = { + { 1580, 1452, 1053 }, /* 60 fields */ + { 1896, 1742, 1264 }, /* 50 fileds */ +};