Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1035:9fbad5cf7e9e | 1036:c7922c5becf6 |
---|---|
16 * License along with this library; if not, write to the Free Software | 16 * License along with this library; if not, write to the Free Software |
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 */ | 18 */ |
19 | 19 |
20 #define NB_DV_VLC 409 | 20 #define NB_DV_VLC 409 |
21 #define AAUX_OFFSET (80*6 + 80*16*3 + 3) | |
21 | 22 |
22 static const UINT16 dv_vlc_bits[409] = { | 23 static const UINT16 dv_vlc_bits[409] = { |
23 0x0000, 0x0002, 0x0007, 0x0008, 0x0009, 0x0014, 0x0015, 0x0016, | 24 0x0000, 0x0002, 0x0007, 0x0008, 0x0009, 0x0014, 0x0015, 0x0016, |
24 0x0017, 0x0030, 0x0031, 0x0032, 0x0033, 0x0068, 0x0069, 0x006a, | 25 0x0017, 0x0030, 0x0031, 0x0032, 0x0033, 0x0068, 0x0069, 0x006a, |
25 0x006b, 0x006c, 0x006d, 0x006e, 0x006f, 0x00e0, 0x00e1, 0x00e2, | 26 0x006b, 0x006c, 0x006d, 0x006e, 0x006f, 0x00e0, 0x00e1, 0x00e2, |
903 0x0634, 0x2120, 0x2d44, 0x3610, 0x1258, | 904 0x0634, 0x2120, 0x2d44, 0x3610, 0x1258, |
904 0x0734, 0x2220, 0x2e44, 0x3710, 0x1458, | 905 0x0734, 0x2220, 0x2e44, 0x3710, 0x1458, |
905 0x0834, 0x2320, 0x2f44, 0x3810, 0x1658, | 906 0x0834, 0x2320, 0x2f44, 0x3810, 0x1658, |
906 }; | 907 }; |
907 | 908 |
909 static const UINT16 dv_place_audio60[10][9] = { | |
910 { 0, 30, 60, 20, 50, 80, 10, 40, 70 }, /* 1st channel */ | |
911 { 6, 36, 66, 26, 56, 86, 16, 46, 76 }, | |
912 { 12, 42, 72, 2, 32, 62, 22, 52, 82 }, | |
913 { 18, 48, 78, 8, 38, 68, 28, 58, 88 }, | |
914 { 24, 54, 84, 14, 44, 74, 4, 34, 64 }, | |
915 | |
916 { 1, 31, 61, 21, 51, 81, 11, 41, 71 }, /* 2nd channel */ | |
917 { 7, 37, 67, 27, 57, 87, 17, 47, 77 }, | |
918 { 13, 43, 73, 3, 33, 63, 23, 53, 83 }, | |
919 { 19, 49, 79, 9, 39, 69, 29, 59, 89 }, | |
920 { 25, 55, 85, 15, 45, 75, 5, 35, 65 }, | |
921 }; | |
922 | |
923 static const UINT16 dv_place_audio50[12][9] = { | |
924 { 0, 36, 72, 26, 62, 98, 16, 52, 88}, /* 1st channel */ | |
925 { 6, 42, 78, 32, 68, 104, 22, 58, 94}, | |
926 { 12, 48, 84, 2, 38, 74, 28, 64, 100}, | |
927 { 18, 54, 90, 8, 44, 80, 34, 70, 106}, | |
928 { 24, 60, 96, 14, 50, 86, 4, 40, 76}, | |
929 { 30, 66, 102, 20, 56, 92, 10, 46, 82}, | |
930 | |
931 { 1, 37, 73, 27, 63, 99, 17, 53, 89}, /* 2nd channel */ | |
932 { 7, 43, 79, 33, 69, 105, 23, 59, 95}, | |
933 { 13, 49, 85, 3, 39, 75, 29, 65, 101}, | |
934 { 19, 55, 91, 9, 45, 81, 35, 71, 107}, | |
935 { 25, 61, 97, 15, 51, 87, 5, 41, 77}, | |
936 { 31, 67, 103, 21, 57, 93, 11, 47, 83}, | |
937 }; | |
938 | |
939 static const int dv_audio_frequency[3] = { | |
940 48000, 44100, 32000, | |
941 }; | |
942 | |
943 static const int dv_audio_min_samples[2][3] = { | |
944 { 1580, 1452, 1053 }, /* 60 fields */ | |
945 { 1896, 1742, 1264 }, /* 50 fileds */ | |
946 }; |