aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dvdata.h
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2003-11-27 01:40:13 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2003-11-27 01:40:13 +0000
commite15c330246b695e940f9b1404e9926e0d18a68d6 (patch)
tree4298272e41709ff38c83def3db5b0c07e8379704 /libavcodec/dvdata.h
parente1c2a5a0a8e9f8a4e68a33f31d4a917771bbc1bb (diff)
downloadffmpeg-e15c330246b695e940f9b1404e9926e0d18a68d6.tar.gz
* 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. Originally committed as revision 2532 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dvdata.h')
-rw-r--r--libavcodec/dvdata.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/dvdata.h b/libavcodec/dvdata.h
index 57a7e20281..e6e0986ba5 100644
--- a/libavcodec/dvdata.h
+++ b/libavcodec/dvdata.h
@@ -51,6 +51,11 @@ typedef struct DVprofile {
#define NB_DV_VLC 409
+/*
+ * There's a catch about the following three tables: the mapping they establish
+ * between (run, level) and vlc is not 1-1. So you have to watch out for that
+ * when building misc. tables. E.g. (1, 0) can be either 0x7cf or 0x1f82.
+ */
static const uint16_t dv_vlc_bits[409] = {
0x0000, 0x0002, 0x0007, 0x0008, 0x0009, 0x0014, 0x0015, 0x0016,
0x0017, 0x0030, 0x0031, 0x0032, 0x0033, 0x0068, 0x0069, 0x006a,