Mercurial > libavcodec.hg
comparison dvdata.h @ 4361:f80a3b6c6f00 libavcodec
uint16->uint8
author | michael |
---|---|
date | Fri, 19 Jan 2007 03:14:13 +0000 |
parents | c8c591fe26f8 |
children | 28ebdd244a07 |
comparison
equal
deleted
inserted
replaced
4360:5f887a3c7281 | 4361:f80a3b6c6f00 |
---|---|
47 int audio_stride; /* size of audio_shuffle table */ | 47 int audio_stride; /* size of audio_shuffle table */ |
48 int audio_min_samples[3];/* min ammount of audio samples */ | 48 int audio_min_samples[3];/* min ammount of audio samples */ |
49 /* for 48Khz, 44.1Khz and 32Khz */ | 49 /* for 48Khz, 44.1Khz and 32Khz */ |
50 int audio_samples_dist[5];/* how many samples are supposed to be */ | 50 int audio_samples_dist[5];/* how many samples are supposed to be */ |
51 /* in each frame in a 5 frames window */ | 51 /* in each frame in a 5 frames window */ |
52 const uint16_t (*audio_shuffle)[9]; /* PCM shuffling table */ | 52 const uint8_t (*audio_shuffle)[9]; /* PCM shuffling table */ |
53 } DVprofile; | 53 } DVprofile; |
54 | 54 |
55 #define NB_DV_VLC 409 | 55 #define NB_DV_VLC 409 |
56 | 56 |
57 /* | 57 /* |
2502 18725, 20262, 20815, 23764, 21400, 24457, 19284, 20867, | 2502 18725, 20262, 20815, 23764, 21400, 24457, 19284, 20867, |
2503 24457, 27962, 22733, 24600, 25971, 29642, 21400, 23173, | 2503 24457, 27962, 22733, 24600, 25971, 29642, 21400, 23173, |
2504 22017, 25191, 24457, 27962, 22733, 24600, 25971, 29642, | 2504 22017, 25191, 24457, 27962, 22733, 24600, 25971, 29642, |
2505 }; | 2505 }; |
2506 | 2506 |
2507 static const uint16_t dv_audio_shuffle525[10][9] = { | 2507 static const uint8_t dv_audio_shuffle525[10][9] = { |
2508 { 0, 30, 60, 20, 50, 80, 10, 40, 70 }, /* 1st channel */ | 2508 { 0, 30, 60, 20, 50, 80, 10, 40, 70 }, /* 1st channel */ |
2509 { 6, 36, 66, 26, 56, 86, 16, 46, 76 }, | 2509 { 6, 36, 66, 26, 56, 86, 16, 46, 76 }, |
2510 { 12, 42, 72, 2, 32, 62, 22, 52, 82 }, | 2510 { 12, 42, 72, 2, 32, 62, 22, 52, 82 }, |
2511 { 18, 48, 78, 8, 38, 68, 28, 58, 88 }, | 2511 { 18, 48, 78, 8, 38, 68, 28, 58, 88 }, |
2512 { 24, 54, 84, 14, 44, 74, 4, 34, 64 }, | 2512 { 24, 54, 84, 14, 44, 74, 4, 34, 64 }, |
2516 { 13, 43, 73, 3, 33, 63, 23, 53, 83 }, | 2516 { 13, 43, 73, 3, 33, 63, 23, 53, 83 }, |
2517 { 19, 49, 79, 9, 39, 69, 29, 59, 89 }, | 2517 { 19, 49, 79, 9, 39, 69, 29, 59, 89 }, |
2518 { 25, 55, 85, 15, 45, 75, 5, 35, 65 }, | 2518 { 25, 55, 85, 15, 45, 75, 5, 35, 65 }, |
2519 }; | 2519 }; |
2520 | 2520 |
2521 static const uint16_t dv_audio_shuffle625[12][9] = { | 2521 static const uint8_t dv_audio_shuffle625[12][9] = { |
2522 { 0, 36, 72, 26, 62, 98, 16, 52, 88}, /* 1st channel */ | 2522 { 0, 36, 72, 26, 62, 98, 16, 52, 88}, /* 1st channel */ |
2523 { 6, 42, 78, 32, 68, 104, 22, 58, 94}, | 2523 { 6, 42, 78, 32, 68, 104, 22, 58, 94}, |
2524 { 12, 48, 84, 2, 38, 74, 28, 64, 100}, | 2524 { 12, 48, 84, 2, 38, 74, 28, 64, 100}, |
2525 { 18, 54, 90, 8, 44, 80, 34, 70, 106}, | 2525 { 18, 54, 90, 8, 44, 80, 34, 70, 106}, |
2526 { 24, 60, 96, 14, 50, 86, 4, 40, 76}, | 2526 { 24, 60, 96, 14, 50, 86, 4, 40, 76}, |