FFmpeg
Macros | Functions
me_cmp_msa.c File Reference
#include "libavutil/mips/generic_macros_msa.h"
#include "me_cmp_mips.h"

Go to the source code of this file.

Macros

#define CALC_MSE_B(src, ref, var)
 
#define WRAPPER8_16_SQ(name8, name16)
 

Functions

static uint32_t sad_8width_msa (uint8_t *src, int32_t src_stride, uint8_t *ref, int32_t ref_stride, int32_t height)
 
static uint32_t sad_16width_msa (uint8_t *src, int32_t src_stride, uint8_t *ref, int32_t ref_stride, int32_t height)
 
static uint32_t sad_horiz_bilinear_filter_8width_msa (uint8_t *src, int32_t src_stride, uint8_t *ref, int32_t ref_stride, int32_t height)
 
static uint32_t sad_horiz_bilinear_filter_16width_msa (uint8_t *src, int32_t src_stride, uint8_t *ref, int32_t ref_stride, int32_t height)
 
static uint32_t sad_vert_bilinear_filter_8width_msa (uint8_t *src, int32_t src_stride, uint8_t *ref, int32_t ref_stride, int32_t height)
 
static uint32_t sad_vert_bilinear_filter_16width_msa (uint8_t *src, int32_t src_stride, uint8_t *ref, int32_t ref_stride, int32_t height)
 
static uint32_t sad_hv_bilinear_filter_8width_msa (uint8_t *src, int32_t src_stride, uint8_t *ref, int32_t ref_stride, int32_t height)
 
static uint32_t sad_hv_bilinear_filter_16width_msa (uint8_t *src, int32_t src_stride, uint8_t *ref, int32_t ref_stride, int32_t height)
 
static uint32_t sse_4width_msa (uint8_t *src_ptr, int32_t src_stride, uint8_t *ref_ptr, int32_t ref_stride, int32_t height)
 
static uint32_t sse_8width_msa (uint8_t *src_ptr, int32_t src_stride, uint8_t *ref_ptr, int32_t ref_stride, int32_t height)
 
static uint32_t sse_16width_msa (uint8_t *src_ptr, int32_t src_stride, uint8_t *ref_ptr, int32_t ref_stride, int32_t height)
 
static int32_t hadamard_diff_8x8_msa (uint8_t *src, int32_t src_stride, uint8_t *ref, int32_t ref_stride)
 
static int32_t hadamard_intra_8x8_msa (uint8_t *src, int32_t src_stride, uint8_t *ref, int32_t ref_stride)
 
int ff_pix_abs16_msa (MpegEncContext *v, uint8_t *src, uint8_t *ref, ptrdiff_t stride, int height)
 
int ff_pix_abs8_msa (MpegEncContext *v, uint8_t *src, uint8_t *ref, ptrdiff_t stride, int height)
 
int ff_pix_abs16_x2_msa (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t stride, int h)
 
int ff_pix_abs16_y2_msa (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t stride, int h)
 
int ff_pix_abs16_xy2_msa (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t stride, int h)
 
int ff_pix_abs8_x2_msa (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t stride, int h)
 
int ff_pix_abs8_y2_msa (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t stride, int h)
 
int ff_pix_abs8_xy2_msa (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t stride, int h)
 
int ff_sse16_msa (MpegEncContext *v, uint8_t *src, uint8_t *ref, ptrdiff_t stride, int height)
 
int ff_sse8_msa (MpegEncContext *v, uint8_t *src, uint8_t *ref, ptrdiff_t stride, int height)
 
int ff_sse4_msa (MpegEncContext *v, uint8_t *src, uint8_t *ref, ptrdiff_t stride, int height)
 
int ff_hadamard8_diff8x8_msa (MpegEncContext *s, uint8_t *dst, uint8_t *src, ptrdiff_t stride, int h)
 
int ff_hadamard8_intra8x8_msa (MpegEncContext *s, uint8_t *dst, uint8_t *src, ptrdiff_t stride, int h)
 
 WRAPPER8_16_SQ (ff_hadamard8_diff8x8_msa, ff_hadamard8_diff16_msa)
 
 WRAPPER8_16_SQ (ff_hadamard8_intra8x8_msa, ff_hadamard8_intra16_msa)
 

Macro Definition Documentation

#define CALC_MSE_B (   src,
  ref,
  var 
)
Value:
{ \
v16u8 src_l0_m, src_l1_m; \
v8i16 res_l0_m, res_l1_m; \
ILVRL_B2_UB(src, ref, src_l0_m, src_l1_m); \
HSUB_UB2_SH(src_l0_m, src_l1_m, res_l0_m, res_l1_m); \
DPADD_SH2_SW(res_l0_m, res_l1_m, res_l0_m, res_l1_m, var, var); \
}
#define src
Definition: vp8dsp.c:254
#define ILVRL_B2_UB(...)
#define HSUB_UB2_SH(...)
#define DPADD_SH2_SW(...)
static int ref[MAX_W *MAX_W]
Definition: jpeg2000dwt.c:107

Definition at line 396 of file me_cmp_msa.c.

Referenced by sse_16width_msa(), sse_4width_msa(), and sse_8width_msa().

#define WRAPPER8_16_SQ (   name8,
  name16 
)
Value:
int name16(MpegEncContext *s, uint8_t *dst, uint8_t *src, \
ptrdiff_t stride, int h) \
{ \
int score = 0; \
score += name8(s, dst, src, stride, 8); \
score += name8(s, dst + 8, src + 8, stride, 8); \
if(h == 16) { \
dst += 8 * stride; \
src += 8 * stride; \
score +=name8(s, dst, src, stride, 8); \
score +=name8(s, dst + 8, src + 8, stride, 8); \
} \
return score; \
}
#define src
Definition: vp8dsp.c:254
uint8_t
#define s(width, name)
Definition: cbs_vp9.c:257
if(ret)
MpegEncContext.
Definition: mpegvideo.h:81
int
GLint GLenum GLboolean GLsizei stride
Definition: opengl_enc.c:105
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a it should return
#define stride

Definition at line 669 of file me_cmp_msa.c.

Function Documentation

static uint32_t sad_8width_msa ( uint8_t src,
int32_t  src_stride,
uint8_t ref,
int32_t  ref_stride,
int32_t  height 
)
static

Definition at line 24 of file me_cmp_msa.c.

Referenced by ff_pix_abs8_msa().

static uint32_t sad_16width_msa ( uint8_t src,
int32_t  src_stride,
uint8_t ref,
int32_t  ref_stride,
int32_t  height 
)
static

Definition at line 46 of file me_cmp_msa.c.

Referenced by ff_pix_abs16_msa().

static uint32_t sad_horiz_bilinear_filter_8width_msa ( uint8_t src,
int32_t  src_stride,
uint8_t ref,
int32_t  ref_stride,
int32_t  height 
)
static

Definition at line 71 of file me_cmp_msa.c.

Referenced by ff_pix_abs8_x2_msa().

static uint32_t sad_horiz_bilinear_filter_16width_msa ( uint8_t src,
int32_t  src_stride,
uint8_t ref,
int32_t  ref_stride,
int32_t  height 
)
static

Definition at line 113 of file me_cmp_msa.c.

Referenced by ff_pix_abs16_x2_msa().

static uint32_t sad_vert_bilinear_filter_8width_msa ( uint8_t src,
int32_t  src_stride,
uint8_t ref,
int32_t  ref_stride,
int32_t  height 
)
static

Definition at line 151 of file me_cmp_msa.c.

Referenced by ff_pix_abs8_y2_msa().

static uint32_t sad_vert_bilinear_filter_16width_msa ( uint8_t src,
int32_t  src_stride,
uint8_t ref,
int32_t  ref_stride,
int32_t  height 
)
static

Definition at line 189 of file me_cmp_msa.c.

Referenced by ff_pix_abs16_y2_msa().

static uint32_t sad_hv_bilinear_filter_8width_msa ( uint8_t src,
int32_t  src_stride,
uint8_t ref,
int32_t  ref_stride,
int32_t  height 
)
static

Definition at line 227 of file me_cmp_msa.c.

Referenced by ff_pix_abs8_xy2_msa().

static uint32_t sad_hv_bilinear_filter_16width_msa ( uint8_t src,
int32_t  src_stride,
uint8_t ref,
int32_t  ref_stride,
int32_t  height 
)
static

Definition at line 283 of file me_cmp_msa.c.

Referenced by ff_pix_abs16_xy2_msa().

static uint32_t sse_4width_msa ( uint8_t src_ptr,
int32_t  src_stride,
uint8_t ref_ptr,
int32_t  ref_stride,
int32_t  height 
)
static

Definition at line 406 of file me_cmp_msa.c.

Referenced by ff_sse4_msa().

static uint32_t sse_8width_msa ( uint8_t src_ptr,
int32_t  src_stride,
uint8_t ref_ptr,
int32_t  ref_stride,
int32_t  height 
)
static

Definition at line 434 of file me_cmp_msa.c.

Referenced by ff_sse8_msa().

static uint32_t sse_16width_msa ( uint8_t src_ptr,
int32_t  src_stride,
uint8_t ref_ptr,
int32_t  ref_stride,
int32_t  height 
)
static

Definition at line 461 of file me_cmp_msa.c.

Referenced by ff_sse16_msa().

static int32_t hadamard_diff_8x8_msa ( uint8_t src,
int32_t  src_stride,
uint8_t ref,
int32_t  ref_stride 
)
static

Definition at line 501 of file me_cmp_msa.c.

Referenced by ff_hadamard8_diff8x8_msa().

static int32_t hadamard_intra_8x8_msa ( uint8_t src,
int32_t  src_stride,
uint8_t ref,
int32_t  ref_stride 
)
static

Definition at line 546 of file me_cmp_msa.c.

Referenced by ff_hadamard8_intra8x8_msa().

int ff_pix_abs16_msa ( MpegEncContext v,
uint8_t src,
uint8_t ref,
ptrdiff_t  stride,
int  height 
)

Definition at line 590 of file me_cmp_msa.c.

int ff_pix_abs8_msa ( MpegEncContext v,
uint8_t src,
uint8_t ref,
ptrdiff_t  stride,
int  height 
)

Definition at line 596 of file me_cmp_msa.c.

int ff_pix_abs16_x2_msa ( MpegEncContext v,
uint8_t pix1,
uint8_t pix2,
ptrdiff_t  stride,
int  h 
)

Definition at line 602 of file me_cmp_msa.c.

int ff_pix_abs16_y2_msa ( MpegEncContext v,
uint8_t pix1,
uint8_t pix2,
ptrdiff_t  stride,
int  h 
)

Definition at line 608 of file me_cmp_msa.c.

int ff_pix_abs16_xy2_msa ( MpegEncContext v,
uint8_t pix1,
uint8_t pix2,
ptrdiff_t  stride,
int  h 
)

Definition at line 614 of file me_cmp_msa.c.

int ff_pix_abs8_x2_msa ( MpegEncContext v,
uint8_t pix1,
uint8_t pix2,
ptrdiff_t  stride,
int  h 
)

Definition at line 620 of file me_cmp_msa.c.

int ff_pix_abs8_y2_msa ( MpegEncContext v,
uint8_t pix1,
uint8_t pix2,
ptrdiff_t  stride,
int  h 
)

Definition at line 626 of file me_cmp_msa.c.

int ff_pix_abs8_xy2_msa ( MpegEncContext v,
uint8_t pix1,
uint8_t pix2,
ptrdiff_t  stride,
int  h 
)

Definition at line 632 of file me_cmp_msa.c.

int ff_sse16_msa ( MpegEncContext v,
uint8_t src,
uint8_t ref,
ptrdiff_t  stride,
int  height 
)

Definition at line 638 of file me_cmp_msa.c.

int ff_sse8_msa ( MpegEncContext v,
uint8_t src,
uint8_t ref,
ptrdiff_t  stride,
int  height 
)

Definition at line 644 of file me_cmp_msa.c.

int ff_sse4_msa ( MpegEncContext v,
uint8_t src,
uint8_t ref,
ptrdiff_t  stride,
int  height 
)

Definition at line 650 of file me_cmp_msa.c.

int ff_hadamard8_diff8x8_msa ( MpegEncContext s,
uint8_t dst,
uint8_t src,
ptrdiff_t  stride,
int  h 
)

Definition at line 656 of file me_cmp_msa.c.

int ff_hadamard8_intra8x8_msa ( MpegEncContext s,
uint8_t dst,
uint8_t src,
ptrdiff_t  stride,
int  h 
)

Definition at line 662 of file me_cmp_msa.c.