From 903d58f63160a6ba4fe60f3b44affeb4a2edc3ab Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Tue, 12 Jan 2010 05:30:31 +0000
Subject: Get rid of #include "svq3.c" functions called more than per mb are
 moved into the header, scan8 is also as it must be known at compiletime. The
 code after this patch duplicates h264data.h, this has been done to minimize
 the changes in this step and allow more fine grained benchmarking. Speedwise
 this is 1% faster on my pentium dual core with diegos cursed cathedral
 sample.

Originally committed as revision 21157 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/h264data.h | 20 --------------------
 1 file changed, 20 deletions(-)

(limited to 'libavcodec/h264data.h')

diff --git a/libavcodec/h264data.h b/libavcodec/h264data.h
index 7d60abbd74..8592a0fff4 100644
--- a/libavcodec/h264data.h
+++ b/libavcodec/h264data.h
@@ -232,26 +232,6 @@ static const uint8_t run_bits[7][16]={
     {7,6,5,4,3,2,1,1,1,1,1,1,1,1,1},
 };
 
-/*
-o-o o-o
- / / /
-o-o o-o
- ,---'
-o-o o-o
- / / /
-o-o o-o
-*/
-
-static const uint8_t scan8[16 + 2*4]={
- 4+1*8, 5+1*8, 4+2*8, 5+2*8,
- 6+1*8, 7+1*8, 6+2*8, 7+2*8,
- 4+3*8, 5+3*8, 4+4*8, 5+4*8,
- 6+3*8, 7+3*8, 6+4*8, 7+4*8,
- 1+1*8, 2+1*8,
- 1+2*8, 2+2*8,
- 1+4*8, 2+4*8,
- 1+5*8, 2+5*8,
-};
 
 static const uint8_t zigzag_scan[16]={
  0+0*4, 1+0*4, 0+1*4, 0+2*4,
-- 
cgit v1.2.3