FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mpegvideoenc_template.c File Reference
#include <stdint.h>
#include "libavutil/internal.h"
#include "libavutil/x86/asm.h"
#include "libavcodec/mpegvideo.h"

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 dct_quantize_TMPL (MpegEncContext *s, int16_t *block, int n, int qscale, int *overflow)
 

Macro Definition Documentation

#define MMREG_WIDTH   "8"

Definition at line 54 of file mpegvideoenc_template.c.

Referenced by dct_quantize_TMPL().

#define MM   "%%mm"

Definition at line 55 of file mpegvideoenc_template.c.

Referenced by av_register_all(), and dct_quantize_TMPL().

#define MOVQ   "movq"

Definition at line 56 of file mpegvideoenc_template.c.

Referenced by dct_quantize_TMPL().

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

Definition at line 66 of file mpegvideoenc_template.c.

Referenced by dct_quantize_TMPL().

#define PMAXW (   a,
  b 
)
Value:
"psubusw "a", "b" \n\t"\
"paddw "a", "b" \n\t"

Definition at line 69 of file mpegvideoenc_template.c.

Referenced by dct_quantize_TMPL().

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

Definition at line 72 of file mpegvideoenc_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 90 of file mpegvideoenc_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 95 of file mpegvideoenc_template.c.

Referenced by dct_quantize_TMPL().

Function Documentation

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

Definition at line 100 of file mpegvideoenc_template.c.