mpegvideo_mmx_template.c File Reference

Go to the source code of this file.

Macros

#define MMREG_WIDTH   "8"
#define MM   "%%mm"
#define MOVQ   "movq"
#define SPREADW(a)   "pshufw $0, "a", "a" \n\t"
#define PMAXW(a, b)   "pmaxsw "a", "b" \n\t"
#define PMAX(a, b)
#define SAVE_SIGN(a, b)
#define RESTORE_SIGN(a, b)

Functions

static int dct_quantize_TMPL (MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow)

Macro Definition Documentation

#define MM   "%%mm"

Definition at line 49 of file mpegvideo_mmx_template.c.

Referenced by av_register_all(), and dct_quantize_TMPL().

#define MMREG_WIDTH   "8"

Definition at line 48 of file mpegvideo_mmx_template.c.

Referenced by dct_quantize_TMPL().

#define MOVQ   "movq"

Definition at line 50 of file mpegvideo_mmx_template.c.

Referenced by dct_quantize_TMPL().

#define PMAX (   a,
  b 
)
Value:
"pshufw $0x0E, "a", "b" \n\t"\
PMAXW(b, a)\
"pshufw $0x01, "a", "b" \n\t"\
PMAXW(b, a)

Definition at line 54 of file mpegvideo_mmx_template.c.

Referenced by dct_quantize_TMPL().

#define PMAXW (   a,
  b 
)    "pmaxsw "a", "b" \n\t"

Definition at line 53 of file mpegvideo_mmx_template.c.

Referenced by dct_quantize_TMPL().

#define RESTORE_SIGN (   a,
  b 
)
Value:
"pxor "a", "b" \n\t"\
"psubw "a", "b" \n\t"

Definition at line 89 of file mpegvideo_mmx_template.c.

Referenced by dct_quantize_TMPL().

#define SAVE_SIGN (   a,
  b 
)
Value:
"pxor "a", "a" \n\t"\
"pcmpgtw "b", "a" \n\t" /* block[i] <= 0 ? 0xFF : 0x00 */\
"pxor "a", "b" \n\t"\
"psubw "a", "b" \n\t" /* ABS(block[i]) */

Definition at line 84 of file mpegvideo_mmx_template.c.

Referenced by dct_quantize_TMPL().

#define SPREADW (   a)    "pshufw $0, "a", "a" \n\t"

Definition at line 52 of file mpegvideo_mmx_template.c.

Referenced by dct_quantize_TMPL().

Function Documentation

static int dct_quantize_TMPL ( MpegEncContext s,
DCTELEM block,
int  n,
int  qscale,
int *  overflow 
)
static

Definition at line 94 of file mpegvideo_mmx_template.c.