From d557838cfbf1e010447de742829e8a2f27d7b67c Mon Sep 17 00:00:00 2001 From: Roman Shaposhnik Date: Mon, 11 Aug 2008 09:35:58 +0000 Subject: Coalescing the un-weighting and de-quantization steps for faster processing Originally committed as revision 14691 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dvdata.h | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'libavcodec/dvdata.h') 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 :-) */ -- cgit v1.2.3