FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
hevcpred_msa.c File Reference
#include "libavcodec/hevc.h"
#include "libavutil/mips/generic_macros_msa.h"
#include "hevcpred_mips.h"

Go to the source code of this file.

Macros

#define HEVC_PRED_PLANAR_16x2(src0_r, src0_l, tmp0, tmp1, vec0, vec1,mul_val_h0, mul_val_h1, mul_val_h2, mul_val_h3,res0, res1, mul_val_b0, mul_val_b1, round)
 

Functions

static void hevc_intra_pred_vert_4x4_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t flag)
 
static void hevc_intra_pred_vert_8x8_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t flag)
 
static void hevc_intra_pred_vert_16x16_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t flag)
 
static void hevc_intra_pred_horiz_4x4_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t flag)
 
static void hevc_intra_pred_horiz_8x8_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t flag)
 
static void hevc_intra_pred_horiz_16x16_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t flag)
 
static void hevc_intra_pred_horiz_32x32_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride)
 
static void hevc_intra_pred_dc_4x4_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t flag)
 
static void hevc_intra_pred_dc_8x8_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t flag)
 
static void hevc_intra_pred_dc_16x16_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t flag)
 
static void hevc_intra_pred_dc_32x32_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride)
 
static void hevc_intra_pred_plane_4x4_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride)
 
static void hevc_intra_pred_plane_8x8_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride)
 
static void hevc_intra_pred_plane_16x16_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride)
 
static void process_intra_upper_16x16_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, uint8_t offset)
 
static void process_intra_lower_16x16_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, uint8_t offset)
 
static void hevc_intra_pred_plane_32x32_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride)
 
static void hevc_intra_pred_angular_upper_4width_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t mode)
 
static void hevc_intra_pred_angular_upper_8width_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t mode)
 
static void hevc_intra_pred_angular_upper_16width_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t mode)
 
static void hevc_intra_pred_angular_upper_32width_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t mode)
 
static void hevc_intra_pred_angular_lower_4width_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t mode)
 
static void hevc_intra_pred_angular_lower_8width_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t mode)
 
static void hevc_intra_pred_angular_lower_16width_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t mode)
 
static void hevc_intra_pred_angular_lower_32width_msa (const uint8_t *src_top, const uint8_t *src_left, uint8_t *dst, int32_t stride, int32_t mode)
 
static void intra_predict_vert_32x32_msa (const uint8_t *src, uint8_t *dst, int32_t dst_stride)
 
void ff_hevc_intra_pred_planar_0_msa (uint8_t *dst, const uint8_t *src_top, const uint8_t *src_left, ptrdiff_t stride)
 
void ff_hevc_intra_pred_planar_1_msa (uint8_t *dst, const uint8_t *src_top, const uint8_t *src_left, ptrdiff_t stride)
 
void ff_hevc_intra_pred_planar_2_msa (uint8_t *dst, const uint8_t *src_top, const uint8_t *src_left, ptrdiff_t stride)
 
void ff_hevc_intra_pred_planar_3_msa (uint8_t *dst, const uint8_t *src_top, const uint8_t *src_left, ptrdiff_t stride)
 
void ff_hevc_intra_pred_dc_msa (uint8_t *dst, const uint8_t *src_top, const uint8_t *src_left, ptrdiff_t stride, int log2, int c_idx)
 
void ff_pred_intra_pred_angular_0_msa (uint8_t *dst, const uint8_t *src_top, const uint8_t *src_left, ptrdiff_t stride, int c_idx, int mode)
 
void ff_pred_intra_pred_angular_1_msa (uint8_t *dst, const uint8_t *src_top, const uint8_t *src_left, ptrdiff_t stride, int c_idx, int mode)
 
void ff_pred_intra_pred_angular_2_msa (uint8_t *dst, const uint8_t *src_top, const uint8_t *src_left, ptrdiff_t stride, int c_idx, int mode)
 
void ff_pred_intra_pred_angular_3_msa (uint8_t *dst, const uint8_t *src_top, const uint8_t *src_left, ptrdiff_t stride, int c_idx, int mode)
 
void ff_intra_pred_8_16x16_msa (HEVCContext *s, int x0, int y0, int c_idx)
 
void ff_intra_pred_8_32x32_msa (HEVCContext *s, int x0, int y0, int c_idx)
 

Variables

static const int8_t intra_pred_angle_up [17]
 
static const int8_t intra_pred_angle_low [16]
 

Macro Definition Documentation

#define HEVC_PRED_PLANAR_16x2 (   src0_r,
  src0_l,
  tmp0,
  tmp1,
  vec0,
  vec1,
  mul_val_h0,
  mul_val_h1,
  mul_val_h2,
  mul_val_h3,
  res0,
  res1,
  mul_val_b0,
  mul_val_b1,
  round 
)
Value:
{ \
v8i16 res0_m, res1_m, res2_m, res3_m; \
MUL4(mul_val_h0, vec0, mul_val_h2, vec0, mul_val_h0, vec1, \
mul_val_h2, vec1, res0_m, res1_m, res2_m, res3_m); \
\
res0_m += mul_val_h1 * tmp0; \
res1_m += mul_val_h3 * tmp0; \
res2_m += mul_val_h1 * tmp0; \
res3_m += mul_val_h3 * tmp0; \
\
res0_m += mul_val_b0 * src0_r; \
res1_m += mul_val_b0 * src0_l; \
res2_m += (mul_val_b0 - 1) * src0_r; \
res3_m += (mul_val_b0 - 1) * src0_l; \
\
res0_m += mul_val_b1 * tmp1; \
res1_m += mul_val_b1 * tmp1; \
res2_m += (mul_val_b1 + 1) * tmp1; \
res3_m += (mul_val_b1 + 1) * tmp1; \
SRARI_H4_SH(res0_m, res1_m, res2_m, res3_m, round); \
PCKEV_B2_SH(res1_m, res0_m, res3_m, res2_m, res0, res1); \
}
#define PCKEV_B2_SH(...)
#define SRARI_H4_SH(...)
#define MUL4(in0, in1, in2, in3, in4, in5, in6, in7, out0, out1, out2, out3)
static av_always_inline av_const double round(double x)
Definition: libm.h:444

Definition at line 33 of file hevcpred_msa.c.

Referenced by hevc_intra_pred_plane_16x16_msa(), process_intra_lower_16x16_msa(), and process_intra_upper_16x16_msa().

Function Documentation

static void hevc_intra_pred_vert_4x4_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  flag 
)
static

Definition at line 61 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_0_msa().

static void hevc_intra_pred_vert_8x8_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  flag 
)
static

Definition at line 94 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_1_msa().

static void hevc_intra_pred_vert_16x16_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  flag 
)
static

Definition at line 149 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_2_msa().

static void hevc_intra_pred_horiz_4x4_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  flag 
)
static

Definition at line 190 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_0_msa().

static void hevc_intra_pred_horiz_8x8_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  flag 
)
static

Definition at line 224 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_1_msa().

static void hevc_intra_pred_horiz_16x16_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  flag 
)
static

Definition at line 264 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_2_msa().

static void hevc_intra_pred_horiz_32x32_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride 
)
static

Definition at line 310 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_3_msa().

static void hevc_intra_pred_dc_4x4_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  flag 
)
static

Definition at line 340 of file hevcpred_msa.c.

Referenced by ff_hevc_intra_pred_dc_msa().

static void hevc_intra_pred_dc_8x8_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  flag 
)
static

Definition at line 401 of file hevcpred_msa.c.

Referenced by ff_hevc_intra_pred_dc_msa().

static void hevc_intra_pred_dc_16x16_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  flag 
)
static

Definition at line 460 of file hevcpred_msa.c.

Referenced by ff_hevc_intra_pred_dc_msa().

static void hevc_intra_pred_dc_32x32_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride 
)
static

Definition at line 516 of file hevcpred_msa.c.

Referenced by ff_hevc_intra_pred_dc_msa().

static void hevc_intra_pred_plane_4x4_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride 
)
static

Definition at line 548 of file hevcpred_msa.c.

Referenced by ff_hevc_intra_pred_planar_0_msa().

static void hevc_intra_pred_plane_8x8_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride 
)
static

Definition at line 595 of file hevcpred_msa.c.

Referenced by ff_hevc_intra_pred_planar_1_msa().

static void hevc_intra_pred_plane_16x16_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride 
)
static

Definition at line 662 of file hevcpred_msa.c.

Referenced by ff_hevc_intra_pred_planar_2_msa().

static void process_intra_upper_16x16_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
uint8_t  offset 
)
static

Definition at line 742 of file hevcpred_msa.c.

Referenced by hevc_intra_pred_plane_32x32_msa().

static void process_intra_lower_16x16_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
uint8_t  offset 
)
static

Definition at line 825 of file hevcpred_msa.c.

Referenced by hevc_intra_pred_plane_32x32_msa().

static void hevc_intra_pred_plane_32x32_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride 
)
static

Definition at line 907 of file hevcpred_msa.c.

Referenced by ff_hevc_intra_pred_planar_3_msa().

static void hevc_intra_pred_angular_upper_4width_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  mode 
)
static

Definition at line 922 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_0_msa().

static void hevc_intra_pred_angular_upper_8width_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  mode 
)
static

Definition at line 1013 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_1_msa().

static void hevc_intra_pred_angular_upper_16width_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  mode 
)
static

Definition at line 1112 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_2_msa().

static void hevc_intra_pred_angular_upper_32width_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  mode 
)
static

Definition at line 1222 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_3_msa().

static void hevc_intra_pred_angular_lower_4width_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  mode 
)
static

Definition at line 1336 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_0_msa().

static void hevc_intra_pred_angular_lower_8width_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  mode 
)
static

Definition at line 1433 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_1_msa().

static void hevc_intra_pred_angular_lower_16width_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  mode 
)
static

Definition at line 1534 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_2_msa().

static void hevc_intra_pred_angular_lower_32width_msa ( const uint8_t src_top,
const uint8_t src_left,
uint8_t dst,
int32_t  stride,
int32_t  mode 
)
static

Definition at line 1650 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_3_msa().

static void intra_predict_vert_32x32_msa ( const uint8_t src,
uint8_t dst,
int32_t  dst_stride 
)
static

Definition at line 1771 of file hevcpred_msa.c.

Referenced by ff_pred_intra_pred_angular_3_msa().

void ff_hevc_intra_pred_planar_0_msa ( uint8_t dst,
const uint8_t src_top,
const uint8_t src_left,
ptrdiff_t  stride 
)

Definition at line 1786 of file hevcpred_msa.c.

void ff_hevc_intra_pred_planar_1_msa ( uint8_t dst,
const uint8_t src_top,
const uint8_t src_left,
ptrdiff_t  stride 
)

Definition at line 1794 of file hevcpred_msa.c.

void ff_hevc_intra_pred_planar_2_msa ( uint8_t dst,
const uint8_t src_top,
const uint8_t src_left,
ptrdiff_t  stride 
)

Definition at line 1802 of file hevcpred_msa.c.

void ff_hevc_intra_pred_planar_3_msa ( uint8_t dst,
const uint8_t src_top,
const uint8_t src_left,
ptrdiff_t  stride 
)

Definition at line 1810 of file hevcpred_msa.c.

void ff_hevc_intra_pred_dc_msa ( uint8_t dst,
const uint8_t src_top,
const uint8_t src_left,
ptrdiff_t  stride,
int  log2,
int  c_idx 
)

Definition at line 1818 of file hevcpred_msa.c.

void ff_pred_intra_pred_angular_0_msa ( uint8_t dst,
const uint8_t src_top,
const uint8_t src_left,
ptrdiff_t  stride,
int  c_idx,
int  mode 
)

Definition at line 1841 of file hevcpred_msa.c.

void ff_pred_intra_pred_angular_1_msa ( uint8_t dst,
const uint8_t src_top,
const uint8_t src_left,
ptrdiff_t  stride,
int  c_idx,
int  mode 
)

Definition at line 1859 of file hevcpred_msa.c.

void ff_pred_intra_pred_angular_2_msa ( uint8_t dst,
const uint8_t src_top,
const uint8_t src_left,
ptrdiff_t  stride,
int  c_idx,
int  mode 
)

Definition at line 1877 of file hevcpred_msa.c.

void ff_pred_intra_pred_angular_3_msa ( uint8_t dst,
const uint8_t src_top,
const uint8_t src_left,
ptrdiff_t  stride,
int  c_idx,
int  mode 
)

Definition at line 1895 of file hevcpred_msa.c.

void ff_intra_pred_8_16x16_msa ( HEVCContext s,
int  x0,
int  y0,
int  c_idx 
)

Definition at line 1913 of file hevcpred_msa.c.

void ff_intra_pred_8_32x32_msa ( HEVCContext s,
int  x0,
int  y0,
int  c_idx 
)

Definition at line 2426 of file hevcpred_msa.c.

Variable Documentation

const int8_t intra_pred_angle_up[17]
static
Initial value:
= {
-32, -26, -21, -17, -13, -9, -5, -2, 0, 2, 5, 9, 13, 17, 21, 26, 32
}

Definition at line 25 of file hevcpred_msa.c.

Referenced by hevc_intra_pred_angular_upper_16width_msa(), hevc_intra_pred_angular_upper_32width_msa(), hevc_intra_pred_angular_upper_4width_msa(), and hevc_intra_pred_angular_upper_8width_msa().

const int8_t intra_pred_angle_low[16]
static
Initial value:
= {
32, 26, 21, 17, 13, 9, 5, 2, 0, -2, -5, -9, -13, -17, -21, -26
}

Definition at line 29 of file hevcpred_msa.c.

Referenced by hevc_intra_pred_angular_lower_16width_msa(), hevc_intra_pred_angular_lower_32width_msa(), hevc_intra_pred_angular_lower_4width_msa(), and hevc_intra_pred_angular_lower_8width_msa().