FFmpeg  4.0
Macros | Functions
mpegvideoenc_template.c File Reference
#include <stdint.h>
#include "libavutil/internal.h"
#include "libavutil/x86/asm.h"
#include "libavcodec/mpegutils.h"
#include "libavcodec/mpegvideo.h"
#include "fdct.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 RENAME() dct_quantize (MpegEncContext *s, int16_t *block, int n, int qscale, int *overflow)
 

Macro Definition Documentation

◆ MMREG_WIDTH

#define MMREG_WIDTH   "8"

Definition at line 56 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

◆ MM

#define MM   "%%mm"

Definition at line 57 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

◆ MOVQ

#define MOVQ   "movq"

Definition at line 58 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

◆ SPREADW

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

Definition at line 68 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

◆ PMAXW

#define PMAXW (   a,
  b 
)
Value:
"psubusw "a", "b" \n\t"\
"paddw "a", "b" \n\t"
const char * b
Definition: vf_curves.c:113

Definition at line 71 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

◆ PMAX

#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)
const char * b
Definition: vf_curves.c:113

Definition at line 74 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

◆ SAVE_SIGN

#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]) */
const char * b
Definition: vf_curves.c:113

Definition at line 92 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

◆ RESTORE_SIGN

#define RESTORE_SIGN (   a,
  b 
)
Value:
"pxor "a", "b" \n\t"\
"psubw "a", "b" \n\t"
const char * b
Definition: vf_curves.c:113

Definition at line 97 of file mpegvideoenc_template.c.

Referenced by dct_quantize().

Function Documentation

◆ dct_quantize()

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

Definition at line 102 of file mpegvideoenc_template.c.