Mercurial > libavcodec.hg
comparison dvdata.h @ 1631:59f2fa833449 libavcodec
* 3x encoding speedup. Finally we seem to be on par with libdv
in terms of time and we're doing slightly better w.r.t. to
quality. I don't think there's much room for improvement
left, but I'd like to try and vectorize a couple of things.
Btw, any ideas on what may impact performance will be greatly
appreciated.
| author | romansh |
|---|---|
| date | Thu, 27 Nov 2003 01:40:13 +0000 |
| parents | 2d5dd2f9f760 |
| children | fbcf02596520 |
comparison
equal
deleted
inserted
replaced
| 1630:586b5c08863c | 1631:59f2fa833449 |
|---|---|
| 49 const uint16_t (*audio_shuffle)[9]; /* PCM shuffling table */ | 49 const uint16_t (*audio_shuffle)[9]; /* PCM shuffling table */ |
| 50 } DVprofile; | 50 } DVprofile; |
| 51 | 51 |
| 52 #define NB_DV_VLC 409 | 52 #define NB_DV_VLC 409 |
| 53 | 53 |
| 54 /* | |
| 55 * There's a catch about the following three tables: the mapping they establish | |
| 56 * between (run, level) and vlc is not 1-1. So you have to watch out for that | |
| 57 * when building misc. tables. E.g. (1, 0) can be either 0x7cf or 0x1f82. | |
| 58 */ | |
| 54 static const uint16_t dv_vlc_bits[409] = { | 59 static const uint16_t dv_vlc_bits[409] = { |
| 55 0x0000, 0x0002, 0x0007, 0x0008, 0x0009, 0x0014, 0x0015, 0x0016, | 60 0x0000, 0x0002, 0x0007, 0x0008, 0x0009, 0x0014, 0x0015, 0x0016, |
| 56 0x0017, 0x0030, 0x0031, 0x0032, 0x0033, 0x0068, 0x0069, 0x006a, | 61 0x0017, 0x0030, 0x0031, 0x0032, 0x0033, 0x0068, 0x0069, 0x006a, |
| 57 0x006b, 0x006c, 0x006d, 0x006e, 0x006f, 0x00e0, 0x00e1, 0x00e2, | 62 0x006b, 0x006c, 0x006d, 0x006e, 0x006f, 0x00e0, 0x00e1, 0x00e2, |
| 58 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7, 0x00e8, 0x00e9, 0x00ea, | 63 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7, 0x00e8, 0x00e9, 0x00ea, |
