comparison dsputil.c @ 5394:e9a6215f4e3a libavcodec

help some gcc version to optimize out those functions
author aurel
date Tue, 24 Jul 2007 08:54:56 +0000
parents d0351b81bc7c
children 362aec4ef932
comparison
equal deleted inserted replaced
5393:c001b06c0ac5 5394:e9a6215f4e3a
2639 wmv2_mspel8_h_lowpass(halfH, src-stride, 8, stride, 11); 2639 wmv2_mspel8_h_lowpass(halfH, src-stride, 8, stride, 11);
2640 wmv2_mspel8_v_lowpass(dst, halfH+8, stride, 8, 8); 2640 wmv2_mspel8_v_lowpass(dst, halfH+8, stride, 8, 8);
2641 } 2641 }
2642 2642
2643 static void h263_v_loop_filter_c(uint8_t *src, int stride, int qscale){ 2643 static void h263_v_loop_filter_c(uint8_t *src, int stride, int qscale){
2644 if(ENABLE_ANY_H263) {
2644 int x; 2645 int x;
2645 const int strength= ff_h263_loop_filter_strength[qscale]; 2646 const int strength= ff_h263_loop_filter_strength[qscale];
2646 2647
2647 for(x=0; x<8; x++){ 2648 for(x=0; x<8; x++){
2648 int d1, d2, ad1; 2649 int d1, d2, ad1;
2671 d2= av_clip((p0-p3)/4, -ad1, ad1); 2672 d2= av_clip((p0-p3)/4, -ad1, ad1);
2672 2673
2673 src[x-2*stride] = p0 - d2; 2674 src[x-2*stride] = p0 - d2;
2674 src[x+ stride] = p3 + d2; 2675 src[x+ stride] = p3 + d2;
2675 } 2676 }
2677 }
2676 } 2678 }
2677 2679
2678 static void h263_h_loop_filter_c(uint8_t *src, int stride, int qscale){ 2680 static void h263_h_loop_filter_c(uint8_t *src, int stride, int qscale){
2681 if(ENABLE_ANY_H263) {
2679 int y; 2682 int y;
2680 const int strength= ff_h263_loop_filter_strength[qscale]; 2683 const int strength= ff_h263_loop_filter_strength[qscale];
2681 2684
2682 for(y=0; y<8; y++){ 2685 for(y=0; y<8; y++){
2683 int d1, d2, ad1; 2686 int d1, d2, ad1;
2705 2708
2706 d2= av_clip((p0-p3)/4, -ad1, ad1); 2709 d2= av_clip((p0-p3)/4, -ad1, ad1);
2707 2710
2708 src[y*stride-2] = p0 - d2; 2711 src[y*stride-2] = p0 - d2;
2709 src[y*stride+1] = p3 + d2; 2712 src[y*stride+1] = p3 + d2;
2713 }
2710 } 2714 }
2711 } 2715 }
2712 2716
2713 static void h261_loop_filter_c(uint8_t *src, int stride){ 2717 static void h261_loop_filter_c(uint8_t *src, int stride){
2714 int x,y,xy,yz; 2718 int x,y,xy,yz;