FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
h264dsp_init.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.h"
#include "libavcodec/h264dsp.h"

Go to the source code of this file.

Macros

#define IDCT_ADD_FUNC(NUM, DEPTH, OPT)
 
#define IDCT_ADD_REP_FUNC(NUM, REP, DEPTH, OPT)
 
#define IDCT_ADD_REP_FUNC2(NUM, REP, DEPTH, OPT)
 
#define LF_FUNC(DIR, TYPE, DEPTH, OPT)
 
#define LF_IFUNC(DIR, TYPE, DEPTH, OPT)
 
#define LF_FUNCS(type, depth)
 
#define H264_WEIGHT(W, OPT)
 
#define H264_BIWEIGHT(W, OPT)
 
#define H264_BIWEIGHT_MMX(W)
 
#define H264_BIWEIGHT_MMX_SSE(W)
 
#define H264_WEIGHT_10(W, DEPTH, OPT)
 
#define H264_BIWEIGHT_10(W, DEPTH, OPT)
 
#define H264_BIWEIGHT_10_SSE(W, DEPTH)
 

Functions

void ff_h264_luma_dc_dequant_idct_mmx (int16_t *output, int16_t *input, int qmul)
 
void ff_h264_luma_dc_dequant_idct_sse2 (int16_t *output, int16_t *input, int qmul)
 
void ff_h264_loop_filter_strength_mmxext (int16_t bS[2][4][4], uint8_t nnz[40], int8_t ref[2][40], int16_t mv[2][40][2], int bidir, int edges, int step, int mask_mv0, int mask_mv1, int field)
 
void ff_deblock_h_chroma422_8_mmxext (uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0)
 
av_cold void ff_h264dsp_init_x86 (H264DSPContext *c, const int bit_depth, const int chroma_format_idc)
 

Macro Definition Documentation

#define IDCT_ADD_FUNC (   NUM,
  DEPTH,
  OPT 
)
Value:
void ff_h264_idct ## NUM ## _add_ ## DEPTH ## _ ## OPT(uint8_t *dst, \
int16_t *block, \
int stride);
#define _(x)
static int16_t block[64]
Definition: dct.c:113
uint8_t
#define DEPTH
GLint GLenum GLboolean GLsizei stride
Definition: opengl_enc.c:105

Definition at line 29 of file h264dsp_init.c.

#define IDCT_ADD_REP_FUNC (   NUM,
  REP,
  DEPTH,
  OPT 
)
Value:
void ff_h264_idct ## NUM ## _add ## REP ## _ ## DEPTH ## _ ## OPT \
(uint8_t *dst, const int *block_offset, \
int16_t *block, int stride, const uint8_t nnzc[6 * 8]);
#define _(x)
static int16_t block[64]
Definition: dct.c:113
uint8_t
#define DEPTH
#define stride

Definition at line 48 of file h264dsp_init.c.

#define IDCT_ADD_REP_FUNC2 (   NUM,
  REP,
  DEPTH,
  OPT 
)
Value:
void ff_h264_idct ## NUM ## _add ## REP ## _ ## DEPTH ## _ ## OPT \
(uint8_t **dst, const int *block_offset, \
int16_t *block, int stride, const uint8_t nnzc[6 * 8]);
#define _(x)
static int16_t block[64]
Definition: dct.c:113
uint8_t
#define DEPTH
#define stride

Definition at line 70 of file h264dsp_init.c.

#define LF_FUNC (   DIR,
  TYPE,
  DEPTH,
  OPT 
)
Value:
void ff_deblock_ ## DIR ## _ ## TYPE ## _ ## DEPTH ## _ ## OPT(uint8_t *pix, \
int stride, \
int alpha, \
int beta, \
int8_t *tc0);
#define _(x)
uint8_t
#define DEPTH
static double alpha(void *priv, double x, double y)
Definition: vf_geq.c:99
#define TYPE
Definition: ffv1.h:204
GLint GLenum GLboolean GLsizei stride
Definition: opengl_enc.c:105

Definition at line 93 of file h264dsp_init.c.

#define LF_IFUNC (   DIR,
  TYPE,
  DEPTH,
  OPT 
)
Value:
void ff_deblock_ ## DIR ## _ ## TYPE ## _ ## DEPTH ## _ ## OPT(uint8_t *pix, \
int stride, \
int alpha, \
int beta);
#define _(x)
uint8_t
#define DEPTH
static double alpha(void *priv, double x, double y)
Definition: vf_geq.c:99
#define TYPE
Definition: ffv1.h:204
GLint GLenum GLboolean GLsizei stride
Definition: opengl_enc.c:105

Definition at line 99 of file h264dsp_init.c.

#define LF_FUNCS (   type,
  depth 
)
Value:
LF_FUNC(h, chroma, depth, mmxext) \
LF_IFUNC(h, chroma_intra, depth, mmxext) \
LF_FUNC(v, chroma, depth, mmxext) \
LF_IFUNC(v, chroma_intra, depth, mmxext) \
LF_FUNC(h, luma, depth, mmxext) \
LF_IFUNC(h, luma_intra, depth, mmxext) \
LF_FUNC(h, luma, depth, sse2) \
LF_IFUNC(h, luma_intra, depth, sse2) \
LF_FUNC(v, luma, depth, sse2) \
LF_IFUNC(v, luma_intra, depth, sse2) \
LF_IFUNC(h, chroma_intra, depth, sse2) \
LF_FUNC(v, chroma, depth, sse2) \
LF_IFUNC(v, chroma_intra, depth, sse2) \
LF_FUNC(h, luma, depth, avx) \
LF_IFUNC(h, luma_intra, depth, avx) \
LF_FUNC(v, luma, depth, avx) \
LF_IFUNC(v, luma_intra, depth, avx) \
LF_IFUNC(h, chroma_intra, depth, avx) \
LF_FUNC(v, chroma, depth, avx) \
LF_IFUNC(v, chroma_intra, depth, avx)
static av_always_inline void chroma(WaveformContext *s, AVFrame *in, AVFrame *out, int component, int intensity, int offset_y, int offset_x, int column, int mirror)
Definition: vf_waveform.c:1323
#define LF_FUNC(DIR, TYPE, DEPTH, OPT)
Definition: h264dsp_init.c:93
int depth
Definition: v4l.c:62
#define LF_IFUNC(DIR, TYPE, DEPTH, OPT)
Definition: h264dsp_init.c:99

Definition at line 105 of file h264dsp_init.c.

#define H264_WEIGHT (   W,
  OPT 
)
Value:
void ff_h264_weight_ ## W ## _ ## OPT(uint8_t *dst, ptrdiff_t stride, \
int height, int log2_denom, \
int weight, int offset);
#define _(x)
uint8_t
#define height
static const uint8_t offset[127][2]
Definition: vf_spp.c:92
#define W(a, i, v)
Definition: jpegls.h:122
static int weight(int i, int blen, int offset)
Definition: diracdec.c:1506
GLint GLenum GLboolean GLsizei stride
Definition: opengl_enc.c:105

Definition at line 159 of file h264dsp_init.c.

#define H264_BIWEIGHT (   W,
  OPT 
)
Value:
void ff_h264_biweight_ ## W ## _ ## OPT(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride, int height, \
int log2_denom, int weightd, \
int weights, int offset);
#define _(x)
uint8_t
#define height
static const uint8_t offset[127][2]
Definition: vf_spp.c:92
#define src
Definition: vp9dsp.c:530
#define W(a, i, v)
Definition: jpegls.h:122
GLint GLenum GLboolean GLsizei stride
Definition: opengl_enc.c:105

Definition at line 164 of file h264dsp_init.c.

#define H264_BIWEIGHT_MMX (   W)
Value:
H264_WEIGHT(W, mmxext) \
H264_BIWEIGHT(W, mmxext)
#define H264_WEIGHT(W, OPT)
Definition: h264dsp_init.c:159
#define H264_BIWEIGHT(W, OPT)
Definition: h264dsp_init.c:164
#define W(a, i, v)
Definition: jpegls.h:122

Definition at line 170 of file h264dsp_init.c.

#define H264_BIWEIGHT_MMX_SSE (   W)
Value:
#define H264_WEIGHT(W, OPT)
Definition: h264dsp_init.c:159
#define H264_BIWEIGHT(W, OPT)
Definition: h264dsp_init.c:164
#define W(a, i, v)
Definition: jpegls.h:122
#define H264_BIWEIGHT_MMX(W)
Definition: h264dsp_init.c:170

Definition at line 174 of file h264dsp_init.c.

#define H264_WEIGHT_10 (   W,
  DEPTH,
  OPT 
)
Value:
void ff_h264_weight_ ## W ## _ ## DEPTH ## _ ## OPT(uint8_t *dst, \
ptrdiff_t stride, \
int height, \
int log2_denom, \
int weight, \
int offset);
#define _(x)
uint8_t
#define DEPTH
#define height
static const uint8_t offset[127][2]
Definition: vf_spp.c:92
#define W(a, i, v)
Definition: jpegls.h:122
static int weight(int i, int blen, int offset)
Definition: diracdec.c:1506
GLint GLenum GLboolean GLsizei stride
Definition: opengl_enc.c:105

Definition at line 184 of file h264dsp_init.c.

#define H264_BIWEIGHT_10 (   W,
  DEPTH,
  OPT 
)
Value:
void ff_h264_biweight_ ## W ## _ ## DEPTH ## _ ## OPT(uint8_t *dst, \
ptrdiff_t stride, \
int height, \
int log2_denom, \
int weightd, \
int weights, \
int offset);
#define _(x)
uint8_t
#define DEPTH
#define height
static const uint8_t offset[127][2]
Definition: vf_spp.c:92
#define src
Definition: vp9dsp.c:530
#define W(a, i, v)
Definition: jpegls.h:122
GLint GLenum GLboolean GLsizei stride
Definition: opengl_enc.c:105

Definition at line 192 of file h264dsp_init.c.

#define H264_BIWEIGHT_10_SSE (   W,
  DEPTH 
)
Value:
#define DEPTH
#define W(a, i, v)
Definition: jpegls.h:122
#define H264_WEIGHT_10(W, DEPTH, OPT)
Definition: h264dsp_init.c:184
#define H264_BIWEIGHT_10(W, DEPTH, OPT)
Definition: h264dsp_init.c:192

Definition at line 202 of file h264dsp_init.c.

Function Documentation

void ff_h264_luma_dc_dequant_idct_mmx ( int16_t *  output,
int16_t *  input,
int  qmul 
)

Referenced by ff_h264dsp_init_x86().

void ff_h264_luma_dc_dequant_idct_sse2 ( int16_t *  output,
int16_t *  input,
int  qmul 
)

Referenced by ff_h264dsp_init_x86().

void ff_h264_loop_filter_strength_mmxext ( int16_t  bS[2][4][4],
uint8_t  nnz[40],
int8_t  ref[2][40],
int16_t  mv[2][40][2],
int  bidir,
int  edges,
int  step,
int  mask_mv0,
int  mask_mv1,
int  field 
)

Referenced by ff_h264dsp_init_x86().

void ff_deblock_h_chroma422_8_mmxext ( uint8_t pix,
int  stride,
int  alpha,
int  beta,
int8_t *  tc0 
)

Referenced by ff_h264dsp_init_x86().

av_cold void ff_h264dsp_init_x86 ( H264DSPContext c,
const int  bit_depth,
const int  chroma_format_idc 
)

Definition at line 212 of file h264dsp_init.c.

Referenced by ff_h264dsp_init().