FFmpeg
Macros | Functions
vp9_lpf_msa.c File Reference
#include "libavcodec/vp9dsp.h"
#include "libavutil/mips/generic_macros_msa.h"
#include "vp9dsp_mips.h"

Go to the source code of this file.

Macros

#define VP9_LPF_FILTER4_4W(p1_in, p0_in, q0_in, q1_in, mask_in, hev_in, p1_out, p0_out, q0_out, q1_out)
 
#define VP9_FLAT4(p3_in, p2_in, p0_in, q0_in, q2_in, q3_in, flat_out)
 
#define VP9_FLAT5(p7_in, p6_in, p5_in, p4_in, p0_in, q0_in, q4_in, q5_in, q6_in, q7_in, flat_in, flat2_out)
 
#define VP9_FILTER8(p3_in, p2_in, p1_in, p0_in, q0_in, q1_in, q2_in, q3_in, p2_filt8_out, p1_filt8_out, p0_filt8_out, q0_filt8_out, q1_filt8_out, q2_filt8_out)
 
#define LPF_MASK_HEV(p3_in, p2_in, p1_in, p0_in, q0_in, q1_in, q2_in, q3_in, limit_in, b_limit_in, thresh_in, hev_out, mask_out, flat_out)
 

Functions

void ff_loop_filter_v_4_8_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_v_44_16_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_v_8_8_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_v_88_16_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_v_84_16_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_v_48_16_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
static int32_t vp9_hz_lpf_t4_and_t8_16w (uint8_t *src, ptrdiff_t pitch, uint8_t *filter48, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
static void vp9_hz_lpf_t16_16w (uint8_t *src, ptrdiff_t pitch, uint8_t *filter48)
 
void ff_loop_filter_v_16_16_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_v_16_8_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_h_4_8_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_h_44_16_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_h_8_8_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_h_88_16_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_h_84_16_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
void ff_loop_filter_h_48_16_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
static void vp9_transpose_16x8_to_8x16 (uint8_t *input, int32_t in_pitch, uint8_t *output, int32_t out_pitch)
 
static void vp9_transpose_8x16_to_16x8 (uint8_t *input, int32_t in_pitch, uint8_t *output, int32_t out_pitch)
 
static void vp9_transpose_16x16 (uint8_t *input, int32_t in_pitch, uint8_t *output, int32_t out_pitch)
 
static int32_t vp9_vt_lpf_t4_and_t8_8w (uint8_t *src, uint8_t *filter48, uint8_t *src_org, int32_t pitch_org, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
static int32_t vp9_vt_lpf_t16_8w (uint8_t *src, uint8_t *src_org, ptrdiff_t pitch, uint8_t *filter48)
 
void ff_loop_filter_h_16_8_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
static int32_t vp9_vt_lpf_t4_and_t8_16w (uint8_t *src, uint8_t *filter48, uint8_t *src_org, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 
static int32_t vp9_vt_lpf_t16_16w (uint8_t *src, uint8_t *src_org, ptrdiff_t pitch, uint8_t *filter48)
 
void ff_loop_filter_h_16_16_msa (uint8_t *src, ptrdiff_t pitch, int32_t b_limit_ptr, int32_t limit_ptr, int32_t thresh_ptr)
 

Macro Definition Documentation

◆ VP9_LPF_FILTER4_4W

#define VP9_LPF_FILTER4_4W (   p1_in,
  p0_in,
  q0_in,
  q1_in,
  mask_in,
  hev_in,
  p1_out,
  p0_out,
  q0_out,
  q1_out 
)

Definition at line 25 of file vp9_lpf_msa.c.

◆ VP9_FLAT4

#define VP9_FLAT4 (   p3_in,
  p2_in,
  p0_in,
  q0_in,
  q2_in,
  q3_in,
  flat_out 
)
Value:
{ \
v16u8 tmp, p2_a_sub_p0, q2_a_sub_q0, p3_a_sub_p0, q3_a_sub_q0; \
v16u8 zero_in = { 0 }; \
\
tmp = __msa_ori_b(zero_in, 1); \
p2_a_sub_p0 = __msa_asub_u_b(p2_in, p0_in); \
q2_a_sub_q0 = __msa_asub_u_b(q2_in, q0_in); \
p3_a_sub_p0 = __msa_asub_u_b(p3_in, p0_in); \
q3_a_sub_q0 = __msa_asub_u_b(q3_in, q0_in); \
\
p2_a_sub_p0 = __msa_max_u_b(p2_a_sub_p0, q2_a_sub_q0); \
flat_out = __msa_max_u_b(p2_a_sub_p0, flat_out); \
p3_a_sub_p0 = __msa_max_u_b(p3_a_sub_p0, q3_a_sub_q0); \
flat_out = __msa_max_u_b(p3_a_sub_p0, flat_out); \
\
flat_out = (tmp < (v16u8) flat_out); \
flat_out = __msa_xori_b(flat_out, 0xff); \
flat_out = flat_out & (mask); \
}

Definition at line 68 of file vp9_lpf_msa.c.

◆ VP9_FLAT5

#define VP9_FLAT5 (   p7_in,
  p6_in,
  p5_in,
  p4_in,
  p0_in,
  q0_in,
  q4_in,
  q5_in,
  q6_in,
  q7_in,
  flat_in,
  flat2_out 
)
Value:
{ \
v16u8 tmp, zero_in = { 0 }; \
v16u8 p4_a_sub_p0, q4_a_sub_q0, p5_a_sub_p0, q5_a_sub_q0; \
v16u8 p6_a_sub_p0, q6_a_sub_q0, p7_a_sub_p0, q7_a_sub_q0; \
\
tmp = __msa_ori_b(zero_in, 1); \
p4_a_sub_p0 = __msa_asub_u_b(p4_in, p0_in); \
q4_a_sub_q0 = __msa_asub_u_b(q4_in, q0_in); \
p5_a_sub_p0 = __msa_asub_u_b(p5_in, p0_in); \
q5_a_sub_q0 = __msa_asub_u_b(q5_in, q0_in); \
p6_a_sub_p0 = __msa_asub_u_b(p6_in, p0_in); \
q6_a_sub_q0 = __msa_asub_u_b(q6_in, q0_in); \
p7_a_sub_p0 = __msa_asub_u_b(p7_in, p0_in); \
q7_a_sub_q0 = __msa_asub_u_b(q7_in, q0_in); \
\
p4_a_sub_p0 = __msa_max_u_b(p4_a_sub_p0, q4_a_sub_q0); \
flat2_out = __msa_max_u_b(p5_a_sub_p0, q5_a_sub_q0); \
flat2_out = __msa_max_u_b(p4_a_sub_p0, flat2_out); \
p6_a_sub_p0 = __msa_max_u_b(p6_a_sub_p0, q6_a_sub_q0); \
flat2_out = __msa_max_u_b(p6_a_sub_p0, flat2_out); \
p7_a_sub_p0 = __msa_max_u_b(p7_a_sub_p0, q7_a_sub_q0); \
flat2_out = __msa_max_u_b(p7_a_sub_p0, flat2_out); \
\
flat2_out = (tmp < (v16u8) flat2_out); \
flat2_out = __msa_xori_b(flat2_out, 0xff); \
flat2_out = flat2_out & flat_in; \
}

Definition at line 89 of file vp9_lpf_msa.c.

◆ VP9_FILTER8

#define VP9_FILTER8 (   p3_in,
  p2_in,
  p1_in,
  p0_in,
  q0_in,
  q1_in,
  q2_in,
  q3_in,
  p2_filt8_out,
  p1_filt8_out,
  p0_filt8_out,
  q0_filt8_out,
  q1_filt8_out,
  q2_filt8_out 
)

Definition at line 119 of file vp9_lpf_msa.c.

◆ LPF_MASK_HEV

#define LPF_MASK_HEV (   p3_in,
  p2_in,
  p1_in,
  p0_in,
  q0_in,
  q1_in,
  q2_in,
  q3_in,
  limit_in,
  b_limit_in,
  thresh_in,
  hev_out,
  mask_out,
  flat_out 
)

Definition at line 158 of file vp9_lpf_msa.c.

Function Documentation

◆ ff_loop_filter_v_4_8_msa()

void ff_loop_filter_v_4_8_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 196 of file vp9_lpf_msa.c.

◆ ff_loop_filter_v_44_16_msa()

void ff_loop_filter_v_44_16_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 225 of file vp9_lpf_msa.c.

◆ ff_loop_filter_v_8_8_msa()

void ff_loop_filter_v_8_8_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 255 of file vp9_lpf_msa.c.

◆ ff_loop_filter_v_88_16_msa()

void ff_loop_filter_v_88_16_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 329 of file vp9_lpf_msa.c.

◆ ff_loop_filter_v_84_16_msa()

void ff_loop_filter_v_84_16_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 408 of file vp9_lpf_msa.c.

◆ ff_loop_filter_v_48_16_msa()

void ff_loop_filter_v_48_16_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 479 of file vp9_lpf_msa.c.

◆ vp9_hz_lpf_t4_and_t8_16w()

static int32_t vp9_hz_lpf_t4_and_t8_16w ( uint8_t *  src,
ptrdiff_t  pitch,
uint8_t *  filter48,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)
static

Definition at line 551 of file vp9_lpf_msa.c.

Referenced by ff_loop_filter_v_16_16_msa().

◆ vp9_hz_lpf_t16_16w()

static void vp9_hz_lpf_t16_16w ( uint8_t *  src,
ptrdiff_t  pitch,
uint8_t *  filter48 
)
static

Definition at line 626 of file vp9_lpf_msa.c.

Referenced by ff_loop_filter_v_16_16_msa().

◆ ff_loop_filter_v_16_16_msa()

void ff_loop_filter_v_16_16_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 958 of file vp9_lpf_msa.c.

◆ ff_loop_filter_v_16_8_msa()

void ff_loop_filter_v_16_8_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 974 of file vp9_lpf_msa.c.

◆ ff_loop_filter_h_4_8_msa()

void ff_loop_filter_h_4_8_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 1198 of file vp9_lpf_msa.c.

◆ ff_loop_filter_h_44_16_msa()

void ff_loop_filter_h_44_16_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 1225 of file vp9_lpf_msa.c.

◆ ff_loop_filter_h_8_8_msa()

void ff_loop_filter_h_8_8_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 1271 of file vp9_lpf_msa.c.

◆ ff_loop_filter_h_88_16_msa()

void ff_loop_filter_h_88_16_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 1349 of file vp9_lpf_msa.c.

◆ ff_loop_filter_h_84_16_msa()

void ff_loop_filter_h_84_16_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 1462 of file vp9_lpf_msa.c.

◆ ff_loop_filter_h_48_16_msa()

void ff_loop_filter_h_48_16_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 1565 of file vp9_lpf_msa.c.

◆ vp9_transpose_16x8_to_8x16()

static void vp9_transpose_16x8_to_8x16 ( uint8_t *  input,
int32_t  in_pitch,
uint8_t *  output,
int32_t  out_pitch 
)
static

Definition at line 1670 of file vp9_lpf_msa.c.

Referenced by ff_loop_filter_h_16_8_msa().

◆ vp9_transpose_8x16_to_16x8()

static void vp9_transpose_8x16_to_16x8 ( uint8_t *  input,
int32_t  in_pitch,
uint8_t *  output,
int32_t  out_pitch 
)
static

Definition at line 1697 of file vp9_lpf_msa.c.

Referenced by ff_loop_filter_h_16_8_msa().

◆ vp9_transpose_16x16()

static void vp9_transpose_16x16 ( uint8_t *  input,
int32_t  in_pitch,
uint8_t *  output,
int32_t  out_pitch 
)
static

Definition at line 1710 of file vp9_lpf_msa.c.

Referenced by ff_loop_filter_h_16_16_msa().

◆ vp9_vt_lpf_t4_and_t8_8w()

static int32_t vp9_vt_lpf_t4_and_t8_8w ( uint8_t *  src,
uint8_t *  filter48,
uint8_t *  src_org,
int32_t  pitch_org,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)
static

Definition at line 1770 of file vp9_lpf_msa.c.

Referenced by ff_loop_filter_h_16_8_msa().

◆ vp9_vt_lpf_t16_8w()

static int32_t vp9_vt_lpf_t16_8w ( uint8_t *  src,
uint8_t *  src_org,
ptrdiff_t  pitch,
uint8_t *  filter48 
)
static

Definition at line 1842 of file vp9_lpf_msa.c.

Referenced by ff_loop_filter_h_16_8_msa().

◆ ff_loop_filter_h_16_8_msa()

void ff_loop_filter_h_16_8_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 2066 of file vp9_lpf_msa.c.

◆ vp9_vt_lpf_t4_and_t8_16w()

static int32_t vp9_vt_lpf_t4_and_t8_16w ( uint8_t *  src,
uint8_t *  filter48,
uint8_t *  src_org,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)
static

Definition at line 2091 of file vp9_lpf_msa.c.

Referenced by ff_loop_filter_h_16_16_msa().

◆ vp9_vt_lpf_t16_16w()

static int32_t vp9_vt_lpf_t16_16w ( uint8_t *  src,
uint8_t *  src_org,
ptrdiff_t  pitch,
uint8_t *  filter48 
)
static

Definition at line 2175 of file vp9_lpf_msa.c.

Referenced by ff_loop_filter_h_16_16_msa().

◆ ff_loop_filter_h_16_16_msa()

void ff_loop_filter_h_16_16_msa ( uint8_t *  src,
ptrdiff_t  pitch,
int32_t  b_limit_ptr,
int32_t  limit_ptr,
int32_t  thresh_ptr 
)

Definition at line 2502 of file vp9_lpf_msa.c.

tmp
static uint8_t tmp[11]
Definition: aes_ctr.c:26
mask
static const uint16_t mask[17]
Definition: lzw.c:38