LCOV - code coverage report
Current view: top level - media/libvpx/config/linux/x64 - vp9_rtcd.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 18 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef VP9_RTCD_H_
       2             : #define VP9_RTCD_H_
       3             : 
       4             : #ifdef RTCD_C
       5             : #define RTCD_EXTERN
       6             : #else
       7             : #define RTCD_EXTERN extern
       8             : #endif
       9             : 
      10             : /*
      11             :  * VP9
      12             :  */
      13             : 
      14             : #include "vpx/vpx_integer.h"
      15             : #include "vp9/common/vp9_common.h"
      16             : #include "vp9/common/vp9_enums.h"
      17             : 
      18             : struct macroblockd;
      19             : 
      20             : /* Encoder forward decls */
      21             : struct macroblock;
      22             : struct vp9_variance_vtable;
      23             : struct search_site_config;
      24             : struct mv;
      25             : union int_mv;
      26             : struct yv12_buffer_config;
      27             : 
      28             : #ifdef __cplusplus
      29             : extern "C" {
      30             : #endif
      31             : 
      32             : int64_t vp9_block_error_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz);
      33             : int64_t vp9_block_error_sse2(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz);
      34             : int64_t vp9_block_error_avx2(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz);
      35             : RTCD_EXTERN int64_t (*vp9_block_error)(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz);
      36             : 
      37             : int64_t vp9_block_error_fp_c(const int16_t *coeff, const int16_t *dqcoeff, int block_size);
      38             : int64_t vp9_block_error_fp_sse2(const int16_t *coeff, const int16_t *dqcoeff, int block_size);
      39             : #define vp9_block_error_fp vp9_block_error_fp_sse2
      40             : 
      41             : int vp9_diamond_search_sad_c(const struct macroblock *x, const struct search_site_config *cfg,  struct mv *ref_mv, struct mv *best_mv, int search_param, int sad_per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv);
      42             : int vp9_diamond_search_sad_avx(const struct macroblock *x, const struct search_site_config *cfg,  struct mv *ref_mv, struct mv *best_mv, int search_param, int sad_per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv);
      43             : RTCD_EXTERN int (*vp9_diamond_search_sad)(const struct macroblock *x, const struct search_site_config *cfg,  struct mv *ref_mv, struct mv *best_mv, int search_param, int sad_per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv);
      44             : 
      45             : void vp9_fdct8x8_quant_c(const int16_t *input, int stride, tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
      46             : void vp9_fdct8x8_quant_sse2(const int16_t *input, int stride, tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
      47             : void vp9_fdct8x8_quant_ssse3(const int16_t *input, int stride, tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
      48             : RTCD_EXTERN void (*vp9_fdct8x8_quant)(const int16_t *input, int stride, tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
      49             : 
      50             : void vp9_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx_type);
      51             : void vp9_fht16x16_sse2(const int16_t *input, tran_low_t *output, int stride, int tx_type);
      52             : #define vp9_fht16x16 vp9_fht16x16_sse2
      53             : 
      54             : void vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_type);
      55             : void vp9_fht4x4_sse2(const int16_t *input, tran_low_t *output, int stride, int tx_type);
      56             : #define vp9_fht4x4 vp9_fht4x4_sse2
      57             : 
      58             : void vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_type);
      59             : void vp9_fht8x8_sse2(const int16_t *input, tran_low_t *output, int stride, int tx_type);
      60             : #define vp9_fht8x8 vp9_fht8x8_sse2
      61             : 
      62             : void vp9_filter_by_weight16x16_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int src_weight);
      63             : void vp9_filter_by_weight16x16_sse2(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int src_weight);
      64             : #define vp9_filter_by_weight16x16 vp9_filter_by_weight16x16_sse2
      65             : 
      66             : void vp9_filter_by_weight8x8_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int src_weight);
      67             : void vp9_filter_by_weight8x8_sse2(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int src_weight);
      68             : #define vp9_filter_by_weight8x8 vp9_filter_by_weight8x8_sse2
      69             : 
      70             : int vp9_full_search_sad_c(const struct macroblock *x, const struct mv *ref_mv, int sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv, struct mv *best_mv);
      71             : int vp9_full_search_sadx3(const struct macroblock *x, const struct mv *ref_mv, int sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv, struct mv *best_mv);
      72             : int vp9_full_search_sadx8(const struct macroblock *x, const struct mv *ref_mv, int sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv, struct mv *best_mv);
      73             : RTCD_EXTERN int (*vp9_full_search_sad)(const struct macroblock *x, const struct mv *ref_mv, int sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv, struct mv *best_mv);
      74             : 
      75             : void vp9_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride);
      76             : void vp9_fwht4x4_sse2(const int16_t *input, tran_low_t *output, int stride);
      77             : #define vp9_fwht4x4 vp9_fwht4x4_sse2
      78             : 
      79             : void vp9_iht16x16_256_add_c(const tran_low_t *input, uint8_t *output, int pitch, int tx_type);
      80             : void vp9_iht16x16_256_add_sse2(const tran_low_t *input, uint8_t *output, int pitch, int tx_type);
      81             : #define vp9_iht16x16_256_add vp9_iht16x16_256_add_sse2
      82             : 
      83             : void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
      84             : void vp9_iht4x4_16_add_sse2(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
      85             : #define vp9_iht4x4_16_add vp9_iht4x4_16_add_sse2
      86             : 
      87             : void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
      88             : void vp9_iht8x8_64_add_sse2(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
      89             : #define vp9_iht8x8_64_add vp9_iht8x8_64_add_sse2
      90             : 
      91             : void vp9_quantize_fp_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
      92             : void vp9_quantize_fp_sse2(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
      93             : void vp9_quantize_fp_ssse3(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
      94             : RTCD_EXTERN void (*vp9_quantize_fp)(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
      95             : 
      96             : void vp9_quantize_fp_32x32_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
      97             : void vp9_quantize_fp_32x32_ssse3(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
      98             : RTCD_EXTERN void (*vp9_quantize_fp_32x32)(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
      99             : 
     100             : void vp9_scale_and_extend_frame_c(const struct yv12_buffer_config *src, struct yv12_buffer_config *dst);
     101             : void vp9_scale_and_extend_frame_ssse3(const struct yv12_buffer_config *src, struct yv12_buffer_config *dst);
     102             : RTCD_EXTERN void (*vp9_scale_and_extend_frame)(const struct yv12_buffer_config *src, struct yv12_buffer_config *dst);
     103             : 
     104             : void vp9_temporal_filter_apply_c(uint8_t *frame1, unsigned int stride, uint8_t *frame2, unsigned int block_width, unsigned int block_height, int strength, int filter_weight, unsigned int *accumulator, uint16_t *count);
     105             : void vp9_temporal_filter_apply_sse2(uint8_t *frame1, unsigned int stride, uint8_t *frame2, unsigned int block_width, unsigned int block_height, int strength, int filter_weight, unsigned int *accumulator, uint16_t *count);
     106             : #define vp9_temporal_filter_apply vp9_temporal_filter_apply_sse2
     107             : 
     108             : void vp9_rtcd(void);
     109             : 
     110             : #ifdef RTCD_C
     111             : #include "vpx_ports/x86.h"
     112           0 : static void setup_rtcd_internal(void)
     113             : {
     114           0 :     int flags = x86_simd_caps();
     115             : 
     116             :     (void)flags;
     117             : 
     118           0 :     vp9_block_error = vp9_block_error_sse2;
     119           0 :     if (flags & HAS_AVX2) vp9_block_error = vp9_block_error_avx2;
     120           0 :     vp9_diamond_search_sad = vp9_diamond_search_sad_c;
     121           0 :     if (flags & HAS_AVX) vp9_diamond_search_sad = vp9_diamond_search_sad_avx;
     122           0 :     vp9_fdct8x8_quant = vp9_fdct8x8_quant_sse2;
     123           0 :     if (flags & HAS_SSSE3) vp9_fdct8x8_quant = vp9_fdct8x8_quant_ssse3;
     124           0 :     vp9_full_search_sad = vp9_full_search_sad_c;
     125           0 :     if (flags & HAS_SSE3) vp9_full_search_sad = vp9_full_search_sadx3;
     126           0 :     if (flags & HAS_SSE4_1) vp9_full_search_sad = vp9_full_search_sadx8;
     127           0 :     vp9_quantize_fp = vp9_quantize_fp_sse2;
     128           0 :     if (flags & HAS_SSSE3) vp9_quantize_fp = vp9_quantize_fp_ssse3;
     129           0 :     vp9_quantize_fp_32x32 = vp9_quantize_fp_32x32_c;
     130           0 :     if (flags & HAS_SSSE3) vp9_quantize_fp_32x32 = vp9_quantize_fp_32x32_ssse3;
     131           0 :     vp9_scale_and_extend_frame = vp9_scale_and_extend_frame_c;
     132           0 :     if (flags & HAS_SSSE3) vp9_scale_and_extend_frame = vp9_scale_and_extend_frame_ssse3;
     133           0 : }
     134             : #endif
     135             : 
     136             : #ifdef __cplusplus
     137             : }  // extern "C"
     138             : #endif
     139             : 
     140             : #endif

Generated by: LCOV version 1.13