FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dsputil_template.c File Reference

DSP utils. More...

#include "bit_depth_template.c"

Go to the source code of this file.

Macros

#define DCTELEM_FUNCS(dctcoef, suffix)
 
#define PIXOP2(OPNAME, OP)
 
#define op_avg(a, b)   a = rnd_avg_pixel4(a, b)
 
#define op_put(a, b)   a = b
 
#define put_no_rnd_pixels8_c   put_pixels8_c
 
#define put_no_rnd_pixels16_c   put_pixels16_c
 
#define H264_CHROMA_MC(OPNAME, OP)
 
#define op_avg(a, b)   a = (((a)+(((b) + 32)>>6)+1)>>1)
 
#define op_put(a, b)   a = (((b) + 32)>>6)
 
#define H264_LOWPASS(OPNAME, OP, OP2)
 
#define H264_MC(OPNAME, SIZE)
 
#define op_avg(a, b)   a = (((a)+CLIP(((b) + 16)>>5)+1)>>1)
 
#define op_put(a, b)   a = CLIP(((b) + 16)>>5)
 
#define op2_avg(a, b)   a = (((a)+CLIP(((b) + 512)>>10)+1)>>1)
 
#define op2_put(a, b)   a = CLIP(((b) + 512)>>10)
 
#define put_h264_qpel8_mc00_8_c   ff_put_pixels8x8_8_c
 
#define avg_h264_qpel8_mc00_8_c   ff_avg_pixels8x8_8_c
 
#define put_h264_qpel16_mc00_8_c   ff_put_pixels16x16_8_c
 
#define avg_h264_qpel16_mc00_8_c   ff_avg_pixels16x16_8_c
 

Functions

static void FUNC() copy_block2 (uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
 
static void FUNC() copy_block4 (uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
 
static void FUNC() copy_block8 (uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
 
static void FUNC() copy_block16 (uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
 
static void FUNCC() draw_edges (uint8_t *p_buf, int p_wrap, int width, int height, int w, int h, int sides)
 
static void FUNCC() put_no_rnd_pixels16_l2 (uint8_t *dst, const uint8_t *a, const uint8_t *b, int stride, int h)
 
static void FUNCC() put_no_rnd_pixels8_l2 (uint8_t *dst, const uint8_t *a, const uint8_t *b, int stride, int h)
 
void FUNCC() ff_put_pixels8x8 (uint8_t *dst, uint8_t *src, int stride)
 
void FUNCC() ff_avg_pixels8x8 (uint8_t *dst, uint8_t *src, int stride)
 
void FUNCC() ff_put_pixels16x16 (uint8_t *dst, uint8_t *src, int stride)
 
void FUNCC() ff_avg_pixels16x16 (uint8_t *dst, uint8_t *src, int stride)
 

Detailed Description

DSP utils.

Definition in file dsputil_template.c.

Macro Definition Documentation

#define DCTELEM_FUNCS (   dctcoef,
  suffix 
)

Definition at line 116 of file dsputil_template.c.

#define PIXOP2 (   OPNAME,
  OP 
)

Definition at line 198 of file dsputil_template.c.

#define op_avg (   a,
  b 
)    a = rnd_avg_pixel4(a, b)

Definition at line 1149 of file dsputil_template.c.

#define op_put (   a,
  b 
)    a = b

Definition at line 1151 of file dsputil_template.c.

#define put_no_rnd_pixels8_c   put_pixels8_c

Definition at line 580 of file dsputil_template.c.

#define put_no_rnd_pixels16_c   put_pixels16_c

Definition at line 581 of file dsputil_template.c.

#define H264_CHROMA_MC (   OPNAME,
  OP 
)

Definition at line 591 of file dsputil_template.c.

#define op_avg (   a,
  b 
)    a = (((a)+(((b) + 32)>>6)+1)>>1)

Definition at line 1149 of file dsputil_template.c.

#define op_put (   a,
  b 
)    a = (((b) + 32)>>6)

Definition at line 1151 of file dsputil_template.c.

#define H264_LOWPASS (   OPNAME,
  OP,
  OP2 
)

Definition at line 709 of file dsputil_template.c.

#define H264_MC (   OPNAME,
  SIZE 
)

Definition at line 1012 of file dsputil_template.c.

#define op_avg (   a,
  b 
)    a = (((a)+CLIP(((b) + 16)>>5)+1)>>1)

Definition at line 1149 of file dsputil_template.c.

#define op_put (   a,
  b 
)    a = CLIP(((b) + 16)>>5)

Definition at line 1151 of file dsputil_template.c.

#define op2_avg (   a,
  b 
)    a = (((a)+CLIP(((b) + 512)>>10)+1)>>1)

Definition at line 1152 of file dsputil_template.c.

#define op2_put (   a,
  b 
)    a = CLIP(((b) + 512)>>10)

Definition at line 1153 of file dsputil_template.c.

#define put_h264_qpel8_mc00_8_c   ff_put_pixels8x8_8_c

Definition at line 1171 of file dsputil_template.c.

#define avg_h264_qpel8_mc00_8_c   ff_avg_pixels8x8_8_c

Definition at line 1172 of file dsputil_template.c.

#define put_h264_qpel16_mc00_8_c   ff_put_pixels16x16_8_c

Definition at line 1173 of file dsputil_template.c.

#define avg_h264_qpel16_mc00_8_c   ff_avg_pixels16x16_8_c

Definition at line 1174 of file dsputil_template.c.

Function Documentation

static void FUNC() copy_block2 ( uint8_t dst,
const uint8_t src,
int  dstStride,
int  srcStride,
int  h 
)
inlinestatic

Definition at line 32 of file dsputil_template.c.

static void FUNC() copy_block4 ( uint8_t dst,
const uint8_t src,
int  dstStride,
int  srcStride,
int  h 
)
inlinestatic

Definition at line 43 of file dsputil_template.c.

static void FUNC() copy_block8 ( uint8_t dst,
const uint8_t src,
int  dstStride,
int  srcStride,
int  h 
)
inlinestatic

Definition at line 54 of file dsputil_template.c.

static void FUNC() copy_block16 ( uint8_t dst,
const uint8_t src,
int  dstStride,
int  srcStride,
int  h 
)
inlinestatic

Definition at line 66 of file dsputil_template.c.

static void FUNCC() draw_edges ( uint8_t p_buf,
int  p_wrap,
int  width,
int  height,
int  w,
int  h,
int  sides 
)
static

Definition at line 82 of file dsputil_template.c.

static void FUNCC() put_no_rnd_pixels16_l2 ( uint8_t dst,
const uint8_t a,
const uint8_t b,
int  stride,
int  h 
)
static

Definition at line 583 of file dsputil_template.c.

static void FUNCC() put_no_rnd_pixels8_l2 ( uint8_t dst,
const uint8_t a,
const uint8_t b,
int  stride,
int  h 
)
static

Definition at line 587 of file dsputil_template.c.

void FUNCC() ff_put_pixels8x8 ( uint8_t dst,
uint8_t src,
int  stride 
)

Definition at line 1197 of file dsputil_template.c.

void FUNCC() ff_avg_pixels8x8 ( uint8_t dst,
uint8_t src,
int  stride 
)

Definition at line 1200 of file dsputil_template.c.

void FUNCC() ff_put_pixels16x16 ( uint8_t dst,
uint8_t src,
int  stride 
)

Definition at line 1203 of file dsputil_template.c.

void FUNCC() ff_avg_pixels16x16 ( uint8_t dst,
uint8_t src,
int  stride 
)

Definition at line 1206 of file dsputil_template.c.