comparison h264.c @ 5083:ce36118abbbb libavcodec

rename attribute_unused to av_unused and moves its declaration to common.h patch by Carl Eugen Hoyos cehoyos chez ag or at original thread: [FFmpeg-devel] [PATCH] attribute_unused -> av_unused date: 05/29/2007 01:23 PM
author benoit
date Wed, 30 May 2007 09:32:25 +0000
parents 4ff805f87391
children f0ffa056b77c
comparison
equal deleted inserted replaced
5082:176ac8353f48 5083:ce36118abbbb
1731 ((uint32_t*)(src+3*stride))[0]= 128U*0x01010101U; 1731 ((uint32_t*)(src+3*stride))[0]= 128U*0x01010101U;
1732 } 1732 }
1733 1733
1734 1734
1735 #define LOAD_TOP_RIGHT_EDGE\ 1735 #define LOAD_TOP_RIGHT_EDGE\
1736 const int attribute_unused t4= topright[0];\ 1736 const int av_unused t4= topright[0];\
1737 const int attribute_unused t5= topright[1];\ 1737 const int av_unused t5= topright[1];\
1738 const int attribute_unused t6= topright[2];\ 1738 const int av_unused t6= topright[2];\
1739 const int attribute_unused t7= topright[3];\ 1739 const int av_unused t7= topright[3];\
1740 1740
1741 #define LOAD_LEFT_EDGE\ 1741 #define LOAD_LEFT_EDGE\
1742 const int attribute_unused l0= src[-1+0*stride];\ 1742 const int av_unused l0= src[-1+0*stride];\
1743 const int attribute_unused l1= src[-1+1*stride];\ 1743 const int av_unused l1= src[-1+1*stride];\
1744 const int attribute_unused l2= src[-1+2*stride];\ 1744 const int av_unused l2= src[-1+2*stride];\
1745 const int attribute_unused l3= src[-1+3*stride];\ 1745 const int av_unused l3= src[-1+3*stride];\
1746 1746
1747 #define LOAD_TOP_EDGE\ 1747 #define LOAD_TOP_EDGE\
1748 const int attribute_unused t0= src[ 0-1*stride];\ 1748 const int av_unused t0= src[ 0-1*stride];\
1749 const int attribute_unused t1= src[ 1-1*stride];\ 1749 const int av_unused t1= src[ 1-1*stride];\
1750 const int attribute_unused t2= src[ 2-1*stride];\ 1750 const int av_unused t2= src[ 2-1*stride];\
1751 const int attribute_unused t3= src[ 3-1*stride];\ 1751 const int av_unused t3= src[ 3-1*stride];\
1752 1752
1753 static void pred4x4_down_right_c(uint8_t *src, uint8_t *topright, int stride){ 1753 static void pred4x4_down_right_c(uint8_t *src, uint8_t *topright, int stride){
1754 const int lt= src[-1-1*stride]; 1754 const int lt= src[-1-1*stride];
1755 LOAD_TOP_EDGE 1755 LOAD_TOP_EDGE
1756 LOAD_LEFT_EDGE 1756 LOAD_LEFT_EDGE
2157 const int l##y = (SRC(-1,y-1) + 2*SRC(-1,y) + SRC(-1,y+1) + 2) >> 2; 2157 const int l##y = (SRC(-1,y-1) + 2*SRC(-1,y) + SRC(-1,y+1) + 2) >> 2;
2158 #define PREDICT_8x8_LOAD_LEFT \ 2158 #define PREDICT_8x8_LOAD_LEFT \
2159 const int l0 = ((has_topleft ? SRC(-1,-1) : SRC(-1,0)) \ 2159 const int l0 = ((has_topleft ? SRC(-1,-1) : SRC(-1,0)) \
2160 + 2*SRC(-1,0) + SRC(-1,1) + 2) >> 2; \ 2160 + 2*SRC(-1,0) + SRC(-1,1) + 2) >> 2; \
2161 PL(1) PL(2) PL(3) PL(4) PL(5) PL(6) \ 2161 PL(1) PL(2) PL(3) PL(4) PL(5) PL(6) \
2162 const int l7 attribute_unused = (SRC(-1,6) + 3*SRC(-1,7) + 2) >> 2 2162 const int l7 av_unused = (SRC(-1,6) + 3*SRC(-1,7) + 2) >> 2
2163 2163
2164 #define PT(x) \ 2164 #define PT(x) \
2165 const int t##x = (SRC(x-1,-1) + 2*SRC(x,-1) + SRC(x+1,-1) + 2) >> 2; 2165 const int t##x = (SRC(x-1,-1) + 2*SRC(x,-1) + SRC(x+1,-1) + 2) >> 2;
2166 #define PREDICT_8x8_LOAD_TOP \ 2166 #define PREDICT_8x8_LOAD_TOP \
2167 const int t0 = ((has_topleft ? SRC(-1,-1) : SRC(0,-1)) \ 2167 const int t0 = ((has_topleft ? SRC(-1,-1) : SRC(0,-1)) \
2168 + 2*SRC(0,-1) + SRC(1,-1) + 2) >> 2; \ 2168 + 2*SRC(0,-1) + SRC(1,-1) + 2) >> 2; \
2169 PT(1) PT(2) PT(3) PT(4) PT(5) PT(6) \ 2169 PT(1) PT(2) PT(3) PT(4) PT(5) PT(6) \
2170 const int t7 attribute_unused = ((has_topright ? SRC(8,-1) : SRC(7,-1)) \ 2170 const int t7 av_unused = ((has_topright ? SRC(8,-1) : SRC(7,-1)) \
2171 + 2*SRC(7,-1) + SRC(6,-1) + 2) >> 2 2171 + 2*SRC(7,-1) + SRC(6,-1) + 2) >> 2
2172 2172
2173 #define PTR(x) \ 2173 #define PTR(x) \
2174 t##x = (SRC(x-1,-1) + 2*SRC(x,-1) + SRC(x+1,-1) + 2) >> 2; 2174 t##x = (SRC(x-1,-1) + 2*SRC(x,-1) + SRC(x+1,-1) + 2) >> 2;
2175 #define PREDICT_8x8_LOAD_TOPRIGHT \ 2175 #define PREDICT_8x8_LOAD_TOPRIGHT \