summaryrefslogtreecommitdiff
path: root/libavcodec/dvdata.h
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2008-08-11 09:35:58 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2008-08-11 09:35:58 +0000
commitd557838cfbf1e010447de742829e8a2f27d7b67c (patch)
tree2497a5611b0aa15de1eb8c66071418e89cf66e25 /libavcodec/dvdata.h
parent76c655fb8f3680be765526938adf60c3ab5969fe (diff)
downloadffmpeg-d557838cfbf1e010447de742829e8a2f27d7b67c.tar.gz
Coalescing the un-weighting and de-quantization steps for faster
processing Originally committed as revision 14691 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dvdata.h')
-rw-r--r--libavcodec/dvdata.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/libavcodec/dvdata.h b/libavcodec/dvdata.h
index 7d8f19df83..29260bf973 100644
--- a/libavcodec/dvdata.h
+++ b/libavcodec/dvdata.h
@@ -286,28 +286,6 @@ static const uint8_t dv_vlc_level[409] = {
};
/* unquant tables (not used directly) */
-static const uint8_t dv_88_areas[64] = {
- 0,0,0,1,1,1,2,2,
- 0,0,1,1,1,2,2,2,
- 0,1,1,1,2,2,2,3,
- 1,1,1,2,2,2,3,3,
- 1,1,2,2,2,3,3,3,
- 1,2,2,2,3,3,3,3,
- 2,2,2,3,3,3,3,3,
- 2,2,3,3,3,3,3,3,
-};
-
-static const uint8_t dv_248_areas[64] = {
- 0,0,1,1,1,2,2,3,
- 0,0,1,1,2,2,2,3,
- 0,1,1,2,2,2,3,3,
- 0,1,1,2,2,2,3,3,
- 1,1,2,2,2,3,3,3,
- 1,1,2,2,2,3,3,3,
- 1,2,2,2,3,3,3,3,
- 1,2,2,3,3,3,3,3,
-};
-
static const uint8_t dv_quant_shifts[22][4] = {
{ 3,3,4,4 },
{ 3,3,4,4 },
@@ -334,6 +312,7 @@ static const uint8_t dv_quant_shifts[22][4] = {
};
static const uint8_t dv_quant_offset[4] = { 6, 3, 0, 1 };
+static const uint8_t dv_quant_areas[4] = { 6, 21, 43, 64 };
/* NOTE: I prefer hardcoding the positioning of dv blocks, it is
simpler :-) */