dsputil_template.c File Reference

DSP utils. More...

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)
 

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 *_buf, int _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 H264_CHROMA_MC (   OPNAME,
  OP 
)

Definition at line 593 of file dsputil_template.c.

#define H264_LOWPASS (   OPNAME,
  OP,
  OP2 
)

Definition at line 711 of file dsputil_template.c.

#define H264_MC (   OPNAME,
  SIZE 
)

Definition at line 1014 of file dsputil_template.c.

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

Definition at line 1154 of file dsputil_template.c.

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

Definition at line 1155 of file dsputil_template.c.

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

Definition at line 1151 of file dsputil_template.c.

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

Definition at line 1151 of file dsputil_template.c.

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

Definition at line 1151 of file dsputil_template.c.

#define op_put (   a,
  b 
)    a = b

Definition at line 1153 of file dsputil_template.c.

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

Definition at line 1153 of file dsputil_template.c.

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

Definition at line 1153 of file dsputil_template.c.

#define PIXOP2 (   OPNAME,
  OP 
)

Definition at line 200 of file dsputil_template.c.

#define put_no_rnd_pixels16_c   put_pixels16_c

Definition at line 583 of file dsputil_template.c.

#define put_no_rnd_pixels8_c   put_pixels8_c

Definition at line 582 of file dsputil_template.c.

Function Documentation

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 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 FUNCC() draw_edges ( uint8_t _buf,
int  _wrap,
int  width,
int  height,
int  w,
int  h,
int  sides 
)
static

Definition at line 82 of file dsputil_template.c.

Referenced by ff_mpeg_draw_horiz_band().

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

Definition at line 1198 of file dsputil_template.c.

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

Definition at line 1192 of file dsputil_template.c.

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

Definition at line 1195 of file dsputil_template.c.

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

Definition at line 1189 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 585 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 589 of file dsputil_template.c.