comparison libpostproc/postprocess_template.c @ 135:5083d662ff85 libavcodec

faster dering
author michael
date Fri, 26 Oct 2001 09:34:41 +0000
parents 2c469e390117
children 52ed0baddd56
comparison
equal deleted inserted replaced
134:2c469e390117 135:5083d662ff85
1976 "psllq $56, " #t1 " \n\t"\ 1976 "psllq $56, " #t1 " \n\t"\
1977 "por " #t1 ", " #t0 " \n\t" /* src[+1] */\ 1977 "por " #t1 ", " #t0 " \n\t" /* src[+1] */\
1978 "movq " #lx ", " #t1 " \n\t" /* src[-1] */\ 1978 "movq " #lx ", " #t1 " \n\t" /* src[-1] */\
1979 PAVGB(t0, lx) /* (src[-1] + src[+1])/2 */\ 1979 PAVGB(t0, lx) /* (src[-1] + src[+1])/2 */\
1980 PAVGB(sx, lx) /* (src[-1] + 2src[0] + src[+1])/4 */\ 1980 PAVGB(sx, lx) /* (src[-1] + 2src[0] + src[+1])/4 */\
1981 "psubusb temp0, " #t1 " \n\t"\ 1981 PAVGB(lx, pplx) \
1982 "psubusb temp0, " #t0 " \n\t"\ 1982 "movq " #lx ", temp1 \n\t"\
1983 "psubusb temp0, " #sx " \n\t"\ 1983 "movq temp0, " #lx " \n\t"\
1984 "pcmpeqb b00, " #t1 " \n\t" /* src[-1] > a ? 0 : -1*/\ 1984 "psubusb " #lx ", " #t1 " \n\t"\
1985 "pcmpeqb b00, " #t0 " \n\t" /* src[+1] > a ? 0 : -1*/\ 1985 "psubusb " #lx ", " #t0 " \n\t"\
1986 "pcmpeqb b00, " #sx " \n\t" /* src[0] > a ? 0 : -1*/\ 1986 "psubusb " #lx ", " #sx " \n\t"\
1987 "movq b00, " #lx " \n\t"\
1988 "pcmpeqb " #lx ", " #t1 " \n\t" /* src[-1] > a ? 0 : -1*/\
1989 "pcmpeqb " #lx ", " #t0 " \n\t" /* src[+1] > a ? 0 : -1*/\
1990 "pcmpeqb " #lx ", " #sx " \n\t" /* src[0] > a ? 0 : -1*/\
1987 "paddb " #t1 ", " #t0 " \n\t"\ 1991 "paddb " #t1 ", " #t0 " \n\t"\
1988 "paddb " #t0 ", " #sx " \n\t"\ 1992 "paddb " #t0 ", " #sx " \n\t"\
1989 \ 1993 \
1990 PAVGB(lx, pplx) \
1991 PAVGB(plx, pplx) /* filtered */\ 1994 PAVGB(plx, pplx) /* filtered */\
1992 "movq " #dst ", " #t0 " \n\t" /* dst */\ 1995 "movq " #dst ", " #t0 " \n\t" /* dst */\
1993 "movq " #t0 ", " #t1 " \n\t" /* dst */\ 1996 "movq " #t0 ", " #t1 " \n\t" /* dst */\
1994 "psubusb pQPb2, " #t0 " \n\t"\ 1997 "psubusb pQPb2, " #t0 " \n\t"\
1995 "paddusb pQPb2, " #t1 " \n\t"\ 1998 "paddusb pQPb2, " #t1 " \n\t"\
1997 PMINUB(t1, pplx, t0)\ 2000 PMINUB(t1, pplx, t0)\
1998 "paddb " #sx ", " #ppsx " \n\t"\ 2001 "paddb " #sx ", " #ppsx " \n\t"\
1999 "paddb " #psx ", " #ppsx " \n\t"\ 2002 "paddb " #psx ", " #ppsx " \n\t"\
2000 "#paddb b02, " #ppsx " \n\t"\ 2003 "#paddb b02, " #ppsx " \n\t"\
2001 "pand b08, " #ppsx " \n\t"\ 2004 "pand b08, " #ppsx " \n\t"\
2002 "pcmpeqb b00, " #ppsx " \n\t"\ 2005 "pcmpeqb " #lx ", " #ppsx " \n\t"\
2003 "pand " #ppsx ", " #pplx " \n\t"\ 2006 "pand " #ppsx ", " #pplx " \n\t"\
2004 "pandn " #dst ", " #ppsx " \n\t"\ 2007 "pandn " #dst ", " #ppsx " \n\t"\
2005 "por " #pplx ", " #ppsx " \n\t"\ 2008 "por " #pplx ", " #ppsx " \n\t"\
2006 "movq " #ppsx ", " #dst " \n\t" 2009 "movq " #ppsx ", " #dst " \n\t"\
2010 "movq temp1, " #lx " \n\t"
2007 2011
2008 /* 2012 /*
2009 0000000 2013 0000000
2010 1111111 2014 1111111
2011 2015