1df37111358d02836cb29bbcb9c6e4c95dff90a16Johann// This file is generated. Do not edit. 27ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#ifndef VP9_RTCD_H_ 37ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define VP9_RTCD_H_ 47ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 57ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#ifdef RTCD_C 67ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define RTCD_EXTERN 77ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#else 87ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define RTCD_EXTERN extern 97ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#endif 107ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 117ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian/* 127ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian * VP9 137ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian */ 147ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 157ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#include "vpx/vpx_integer.h" 167ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#include "vp9/common/vp9_common.h" 177ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#include "vp9/common/vp9_enums.h" 180a39d0a697ff3603e8c100300fda363658e10b23James Zern#include "vp9/common/vp9_filter.h" 197ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 207ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianstruct macroblockd; 217ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 227ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian/* Encoder forward decls */ 237ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianstruct macroblock; 247ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianstruct vp9_variance_vtable; 257ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianstruct search_site_config; 267ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianstruct mv; 277ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianunion int_mv; 287ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianstruct yv12_buffer_config; 297ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 307ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#ifdef __cplusplus 317ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianextern "C" { 327ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#endif 337ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 347ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianint64_t vp9_block_error_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz); 357ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_block_error vp9_block_error_c 367ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 3755557a26288d432fc9645f97f4b2ad2ad6276238James Zernint64_t vp9_block_error_fp_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, int block_size); 387ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_block_error_fp vp9_block_error_fp_c 397ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 407ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianint 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); 417ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_diamond_search_sad vp9_diamond_search_sad_c 427ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 430a39d0a697ff3603e8c100300fda363658e10b23James Zernvoid 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 *round_ptr, const int16_t *quant_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); 447ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_fdct8x8_quant vp9_fdct8x8_quant_c 457ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 467ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianvoid vp9_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx_type); 477ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_fht16x16 vp9_fht16x16_c 487ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 497ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianvoid vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_type); 507ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_fht4x4 vp9_fht4x4_c 517ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 527ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianvoid vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_type); 537ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_fht8x8 vp9_fht8x8_c 547ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 557ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianvoid vp9_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride); 567ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_fwht4x4 vp9_fwht4x4_c 577ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 5855557a26288d432fc9645f97f4b2ad2ad6276238James Zernint64_t vp9_highbd_block_error_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz, int bd); 5955557a26288d432fc9645f97f4b2ad2ad6276238James Zern#define vp9_highbd_block_error vp9_highbd_block_error_c 6055557a26288d432fc9645f97f4b2ad2ad6276238James Zern 6155557a26288d432fc9645f97f4b2ad2ad6276238James Zernvoid vp9_highbd_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx_type); 6255557a26288d432fc9645f97f4b2ad2ad6276238James Zern#define vp9_highbd_fht16x16 vp9_highbd_fht16x16_c 6355557a26288d432fc9645f97f4b2ad2ad6276238James Zern 6455557a26288d432fc9645f97f4b2ad2ad6276238James Zernvoid vp9_highbd_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_type); 6555557a26288d432fc9645f97f4b2ad2ad6276238James Zern#define vp9_highbd_fht4x4 vp9_highbd_fht4x4_c 6655557a26288d432fc9645f97f4b2ad2ad6276238James Zern 6755557a26288d432fc9645f97f4b2ad2ad6276238James Zernvoid vp9_highbd_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_type); 6855557a26288d432fc9645f97f4b2ad2ad6276238James Zern#define vp9_highbd_fht8x8 vp9_highbd_fht8x8_c 6955557a26288d432fc9645f97f4b2ad2ad6276238James Zern 7055557a26288d432fc9645f97f4b2ad2ad6276238James Zernvoid vp9_highbd_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride); 7155557a26288d432fc9645f97f4b2ad2ad6276238James Zern#define vp9_highbd_fwht4x4 vp9_highbd_fwht4x4_c 7255557a26288d432fc9645f97f4b2ad2ad6276238James Zern 7355557a26288d432fc9645f97f4b2ad2ad6276238James Zernvoid vp9_highbd_iht16x16_256_add_c(const tran_low_t *input, uint16_t *output, int pitch, int tx_type, int bd); 7455557a26288d432fc9645f97f4b2ad2ad6276238James Zern#define vp9_highbd_iht16x16_256_add vp9_highbd_iht16x16_256_add_c 7555557a26288d432fc9645f97f4b2ad2ad6276238James Zern 7655557a26288d432fc9645f97f4b2ad2ad6276238James Zernvoid vp9_highbd_iht4x4_16_add_c(const tran_low_t *input, uint16_t *dest, int stride, int tx_type, int bd); 7755557a26288d432fc9645f97f4b2ad2ad6276238James Zern#define vp9_highbd_iht4x4_16_add vp9_highbd_iht4x4_16_add_c 7855557a26288d432fc9645f97f4b2ad2ad6276238James Zern 7955557a26288d432fc9645f97f4b2ad2ad6276238James Zernvoid vp9_highbd_iht8x8_64_add_c(const tran_low_t *input, uint16_t *dest, int stride, int tx_type, int bd); 8055557a26288d432fc9645f97f4b2ad2ad6276238James Zern#define vp9_highbd_iht8x8_64_add vp9_highbd_iht8x8_64_add_c 8155557a26288d432fc9645f97f4b2ad2ad6276238James Zern 8255557a26288d432fc9645f97f4b2ad2ad6276238James Zernvoid vp9_highbd_quantize_fp_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *round_ptr, const int16_t *quant_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); 8355557a26288d432fc9645f97f4b2ad2ad6276238James Zern#define vp9_highbd_quantize_fp vp9_highbd_quantize_fp_c 8455557a26288d432fc9645f97f4b2ad2ad6276238James Zern 8555557a26288d432fc9645f97f4b2ad2ad6276238James Zernvoid vp9_highbd_quantize_fp_32x32_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *round_ptr, const int16_t *quant_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); 8655557a26288d432fc9645f97f4b2ad2ad6276238James Zern#define vp9_highbd_quantize_fp_32x32 vp9_highbd_quantize_fp_32x32_c 8755557a26288d432fc9645f97f4b2ad2ad6276238James Zern 8855557a26288d432fc9645f97f4b2ad2ad6276238James Zernvoid vp9_highbd_temporal_filter_apply_c(const uint8_t *frame1, unsigned int stride, const uint8_t *frame2, unsigned int block_width, unsigned int block_height, int strength, int filter_weight, uint32_t *accumulator, uint16_t *count); 8955557a26288d432fc9645f97f4b2ad2ad6276238James Zern#define vp9_highbd_temporal_filter_apply vp9_highbd_temporal_filter_apply_c 9055557a26288d432fc9645f97f4b2ad2ad6276238James Zern 917ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianvoid vp9_iht16x16_256_add_c(const tran_low_t *input, uint8_t *output, int pitch, int tx_type); 927ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_iht16x16_256_add vp9_iht16x16_256_add_c 937ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 947bc9febe8749e98a3812a0dc4380ceae75c29450Johannvoid vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); 957ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_iht4x4_16_add vp9_iht4x4_16_add_c 967ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 977bc9febe8749e98a3812a0dc4380ceae75c29450Johannvoid vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); 987ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_iht8x8_64_add vp9_iht8x8_64_add_c 997ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 1000a39d0a697ff3603e8c100300fda363658e10b23James Zernvoid vp9_quantize_fp_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *round_ptr, const int16_t *quant_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); 1017ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_quantize_fp vp9_quantize_fp_c 1027ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 1030a39d0a697ff3603e8c100300fda363658e10b23James Zernvoid vp9_quantize_fp_32x32_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *round_ptr, const int16_t *quant_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); 1047ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#define vp9_quantize_fp_32x32 vp9_quantize_fp_32x32_c 1057ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 1060a39d0a697ff3603e8c100300fda363658e10b23James Zernvoid vp9_scale_and_extend_frame_c(const struct yv12_buffer_config *src, struct yv12_buffer_config *dst, INTERP_FILTER filter_type, int phase_scaler); 10768e1c830ade592be74773e249bf94e2bbfb50de7Johann#define vp9_scale_and_extend_frame vp9_scale_and_extend_frame_c 1087ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 1097ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianvoid vp9_rtcd(void); 1107ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 1117ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#include "vpx_config.h" 1127ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 1137ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#ifdef RTCD_C 1147ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianstatic void setup_rtcd_internal(void) 1157ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian{ 1167ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#if HAVE_DSPR2 1177ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianvoid vpx_dsputil_static_init(); 1187ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#if CONFIG_VP8 1197ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianvoid dsputil_static_init(); 1207ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#endif 1217ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 1227ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanianvpx_dsputil_static_init(); 1237ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#if CONFIG_VP8 1247ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramaniandsputil_static_init(); 1257ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#endif 1267ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#endif 1277ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian} 1287ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#endif 1297ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 1307ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#ifdef __cplusplus 1317ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian} // extern "C" 1327ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#endif 1337ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian 1347ce0a1d1337c01056ba24006efab21f00e179e04Vignesh Venkatasubramanian#endif 135