mpegvideoenc_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)
 
#define PMAXW(a, b)
 
#define PMAX(a, b)
 
#define SAVE_SIGN(a, b)
 
#define RESTORE_SIGN(a, b)
 

Functions

static int RENAME() dct_quantize (MpegEncContext *s, int16_t *block, int n, int qscale, int *overflow)
 

Macro Definition Documentation

#define MM   "%%mm"

Definition at line 49 of file mpegvideoenc_template.c.

Referenced by av_register_all(), and dct_quantize().

#define MMREG_WIDTH   "8"

Definition at line 48 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

#define MOVQ   "movq"

Definition at line 50 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

#define PMAX (   a,
  b 
)
Value:
"movq "a", "b" \n\t"\
"psrlq $32, "a" \n\t"\
"movq "a", "b" \n\t"\
"psrlq $16, "a" \n\t"\
#define PMAXW(a, b)
#define b
Definition: input.c:42

Definition at line 66 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

#define PMAXW (   a,
  b 
)
Value:
"psubusw "a", "b" \n\t"\
"paddw "a", "b" \n\t"
#define b
Definition: input.c:42

Definition at line 63 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

#define RESTORE_SIGN (   a,
  b 
)
Value:
"pxor "a", "b" \n\t"\
"psubw "a", "b" \n\t"
#define b
Definition: input.c:42

Definition at line 89 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

#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]) */
#define b
Definition: input.c:42

Definition at line 84 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

#define SPREADW (   a)
Value:
"punpcklwd "a", "a" \n\t"\
"punpcklwd "a", "a" \n\t"

Definition at line 60 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

Function Documentation

static int RENAME() dct_quantize ( MpegEncContext s,
int16_t *  block,
int  n,
int  qscale,
int *  overflow 
)
static

Definition at line 94 of file mpegvideoenc_template.c.