FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
qpel.c File Reference
#include "libavutil/common.h"
#include "libavcodec/copy_block.h"
#include "libavcodec/rnd_avg.h"

Go to the source code of this file.

Macros

#define PIXOP2(OPNAME, OP)
 
#define op_avg(a, b)   a = rnd_avg32(a,b)
 
#define op_put(a, b)   a = b
 
#define avg2(a, b)   ((a+b+1)>>1)
 
#define avg4(a, b, c, d)   ((a+b+c+d+2)>>2)
 
#define QPEL_MC(r, OPNAME, RND, OP)
 
#define op_avg(a, b)   a = (((a)+cm[((b) + 16)>>5]+1)>>1)
 
#define op_avg_no_rnd(a, b)   a = (((a)+cm[((b) + 15)>>5])>>1)
 
#define op_put(a, b)   a = cm[((b) + 16)>>5]
 
#define op_put_no_rnd(a, b)   a = cm[((b) + 15)>>5]
 

Functions

static void gmc1_c (uint8_t *dst, uint8_t *src, int stride, int h, int x16, int y16, int rounder)
 
static void wmv2_mspel8_h_lowpass (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
 
static void wmv2_mspel8_v_lowpass (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w)
 
static void put_mspel8_mc00_sh4 (uint8_t *dst, uint8_t *src, int stride)
 
static void put_mspel8_mc10_sh4 (uint8_t *dst, uint8_t *src, int stride)
 
static void put_mspel8_mc20_sh4 (uint8_t *dst, uint8_t *src, int stride)
 
static void put_mspel8_mc30_sh4 (uint8_t *dst, uint8_t *src, int stride)
 
static void put_mspel8_mc02_sh4 (uint8_t *dst, uint8_t *src, int stride)
 
static void put_mspel8_mc12_sh4 (uint8_t *dst, uint8_t *src, int stride)
 
static void put_mspel8_mc32_sh4 (uint8_t *dst, uint8_t *src, int stride)
 
static void put_mspel8_mc22_sh4 (uint8_t *dst, uint8_t *src, int stride)
 

Macro Definition Documentation

#define PIXOP2 (   OPNAME,
  OP 
)

Definition at line 28 of file qpel.c.

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

Definition at line 742 of file qpel.c.

#define op_put (   a,
  b 
)    a = b

Definition at line 744 of file qpel.c.

#define avg2 (   a,
  b 
)    ((a+b+1)>>1)

Definition at line 327 of file qpel.c.

#define avg4 (   a,
  b,
  c,
 
)    ((a+b+c+d+2)>>2)

Definition at line 328 of file qpel.c.

#define QPEL_MC (   r,
  OPNAME,
  RND,
  OP 
)

Definition at line 364 of file qpel.c.

#define op_avg (   a,
  b 
)    a = (((a)+cm[((b) + 16)>>5]+1)>>1)

Definition at line 742 of file qpel.c.

#define op_avg_no_rnd (   a,
  b 
)    a = (((a)+cm[((b) + 15)>>5])>>1)

Definition at line 743 of file qpel.c.

#define op_put (   a,
  b 
)    a = cm[((b) + 16)>>5]

Definition at line 744 of file qpel.c.

#define op_put_no_rnd (   a,
  b 
)    a = cm[((b) + 15)>>5]

Definition at line 745 of file qpel.c.

Function Documentation

static void gmc1_c ( uint8_t dst,
uint8_t src,
int  stride,
int  h,
int  x16,
int  y16,
int  rounder 
)
static

Definition at line 331 of file qpel.c.

static void wmv2_mspel8_h_lowpass ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride,
int  h 
)
static
static void wmv2_mspel8_v_lowpass ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride,
int  w 
)
static
static void put_mspel8_mc00_sh4 ( uint8_t dst,
uint8_t src,
int  stride 
)
static

Definition at line 816 of file qpel.c.

Referenced by ff_dsputil_init_align().

static void put_mspel8_mc10_sh4 ( uint8_t dst,
uint8_t src,
int  stride 
)
static

Definition at line 820 of file qpel.c.

Referenced by ff_dsputil_init_align().

static void put_mspel8_mc20_sh4 ( uint8_t dst,
uint8_t src,
int  stride 
)
static

Definition at line 826 of file qpel.c.

Referenced by ff_dsputil_init_align().

static void put_mspel8_mc30_sh4 ( uint8_t dst,
uint8_t src,
int  stride 
)
static

Definition at line 830 of file qpel.c.

Referenced by ff_dsputil_init_align().

static void put_mspel8_mc02_sh4 ( uint8_t dst,
uint8_t src,
int  stride 
)
static

Definition at line 836 of file qpel.c.

Referenced by ff_dsputil_init_align().

static void put_mspel8_mc12_sh4 ( uint8_t dst,
uint8_t src,
int  stride 
)
static

Definition at line 840 of file qpel.c.

Referenced by ff_dsputil_init_align().

static void put_mspel8_mc32_sh4 ( uint8_t dst,
uint8_t src,
int  stride 
)
static

Definition at line 849 of file qpel.c.

Referenced by ff_dsputil_init_align().

static void put_mspel8_mc22_sh4 ( uint8_t dst,
uint8_t src,
int  stride 
)
static

Definition at line 858 of file qpel.c.

Referenced by ff_dsputil_init_align().