vp9 -> vpx in names

Change-Id: I2be458f7e993fd2ae76a80c0f7d7e3caf3c63d03
This commit is contained in:
Yaowu Xu 2016-01-20 14:00:50 -08:00
parent a5e47ade40
commit 8c8d16de6b
7 changed files with 44 additions and 44 deletions

View File

@ -12,7 +12,7 @@ struct macroblockd;
/* Encoder forward decls */ /* Encoder forward decls */
struct macroblock; struct macroblock;
struct vp9_variance_vtable; struct vpx_variance_vtable;
struct search_site_config; struct search_site_config;
struct mv; struct mv;
union int_mv; union int_mv;
@ -605,15 +605,15 @@ if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
# #
# Motion search # Motion search
# #
add_proto qw/int vp10_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"; add_proto qw/int vp10_full_search_sad/, "const struct macroblock *x, const struct mv *ref_mv, int sad_per_bit, int distance, const struct vpx_variance_vtable *fn_ptr, const struct mv *center_mv, struct mv *best_mv";
specialize qw/vp10_full_search_sad sse3 sse4_1/; specialize qw/vp10_full_search_sad sse3 sse4_1/;
$vp10_full_search_sad_sse3=vp10_full_search_sadx3; $vp10_full_search_sad_sse3=vp10_full_search_sadx3;
$vp10_full_search_sad_sse4_1=vp10_full_search_sadx8; $vp10_full_search_sad_sse4_1=vp10_full_search_sadx8;
add_proto qw/int vp10_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"; add_proto qw/int vp10_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 vpx_variance_vtable *fn_ptr, const struct mv *center_mv";
specialize qw/vp10_diamond_search_sad/; specialize qw/vp10_diamond_search_sad/;
add_proto qw/int vp10_full_range_search/, "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"; add_proto qw/int vp10_full_range_search/, "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 vpx_variance_vtable *fn_ptr, const struct mv *center_mv";
specialize qw/vp10_full_range_search/; specialize qw/vp10_full_range_search/;
add_proto qw/void vp10_temporal_filter_apply/, "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"; add_proto qw/void vp10_temporal_filter_apply/, "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";

View File

@ -383,7 +383,7 @@ typedef struct VP10_COMP {
fractional_mv_step_fp *find_fractional_mv_step; fractional_mv_step_fp *find_fractional_mv_step;
vp10_full_search_fn_t full_search_sad; vp10_full_search_fn_t full_search_sad;
vp10_diamond_search_fn_t diamond_search_sad; vp10_diamond_search_fn_t diamond_search_sad;
vp9_variance_fn_ptr_t fn_ptr[BLOCK_SIZES]; vpx_variance_fn_ptr_t fn_ptr[BLOCK_SIZES];
uint64_t time_receive_data; uint64_t time_receive_data;
uint64_t time_compress_data; uint64_t time_compress_data;
uint64_t time_pick_lpf; uint64_t time_pick_lpf;

View File

@ -388,7 +388,7 @@ static void first_pass_motion_search(VP10_COMP *cpi, MACROBLOCK *x,
MV ref_mv_full = {ref_mv->row >> 3, ref_mv->col >> 3}; MV ref_mv_full = {ref_mv->row >> 3, ref_mv->col >> 3};
int num00, tmp_err, n; int num00, tmp_err, n;
const BLOCK_SIZE bsize = xd->mi[0]->mbmi.sb_type; const BLOCK_SIZE bsize = xd->mi[0]->mbmi.sb_type;
vp9_variance_fn_ptr_t v_fn_ptr = cpi->fn_ptr[bsize]; vpx_variance_fn_ptr_t v_fn_ptr = cpi->fn_ptr[bsize];
const int new_mv_mode_penalty = NEW_MV_MODE_PENALTY; const int new_mv_mode_penalty = NEW_MV_MODE_PENALTY;
int step_param = 3; int step_param = 3;

View File

@ -31,7 +31,7 @@ static unsigned int do_16x16_motion_iteration(VP10_COMP *cpi,
MACROBLOCK *const x = &cpi->td.mb; MACROBLOCK *const x = &cpi->td.mb;
MACROBLOCKD *const xd = &x->e_mbd; MACROBLOCKD *const xd = &x->e_mbd;
const MV_SPEED_FEATURES *const mv_sf = &cpi->sf.mv; const MV_SPEED_FEATURES *const mv_sf = &cpi->sf.mv;
const vp9_variance_fn_ptr_t v_fn_ptr = cpi->fn_ptr[BLOCK_16X16]; const vpx_variance_fn_ptr_t v_fn_ptr = cpi->fn_ptr[BLOCK_16X16];
const int tmp_col_min = x->mv_col_min; const int tmp_col_min = x->mv_col_min;
const int tmp_col_max = x->mv_col_max; const int tmp_col_max = x->mv_col_max;

View File

@ -312,7 +312,7 @@ static unsigned int setup_center_error(const MACROBLOCKD *xd,
const MV *bestmv, const MV *bestmv,
const MV *ref_mv, const MV *ref_mv,
int error_per_bit, int error_per_bit,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
const uint8_t *const src, const uint8_t *const src,
const int src_stride, const int src_stride,
const uint8_t *const y, const uint8_t *const y,
@ -388,7 +388,7 @@ int vp10_find_best_sub_pixel_tree_pruned_evenmore(
MV *bestmv, const MV *ref_mv, MV *bestmv, const MV *ref_mv,
int allow_hp, int allow_hp,
int error_per_bit, int error_per_bit,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int forced_stop, int forced_stop,
int iters_per_step, int iters_per_step,
int *cost_list, int *cost_list,
@ -467,7 +467,7 @@ int vp10_find_best_sub_pixel_tree_pruned_more(const MACROBLOCK *x,
MV *bestmv, const MV *ref_mv, MV *bestmv, const MV *ref_mv,
int allow_hp, int allow_hp,
int error_per_bit, int error_per_bit,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int forced_stop, int forced_stop,
int iters_per_step, int iters_per_step,
int *cost_list, int *cost_list,
@ -541,7 +541,7 @@ int vp10_find_best_sub_pixel_tree_pruned(const MACROBLOCK *x,
MV *bestmv, const MV *ref_mv, MV *bestmv, const MV *ref_mv,
int allow_hp, int allow_hp,
int error_per_bit, int error_per_bit,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int forced_stop, int forced_stop,
int iters_per_step, int iters_per_step,
int *cost_list, int *cost_list,
@ -643,7 +643,7 @@ int vp10_find_best_sub_pixel_tree(const MACROBLOCK *x,
MV *bestmv, const MV *ref_mv, MV *bestmv, const MV *ref_mv,
int allow_hp, int allow_hp,
int error_per_bit, int error_per_bit,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int forced_stop, int forced_stop,
int iters_per_step, int iters_per_step,
int *cost_list, int *cost_list,
@ -826,7 +826,7 @@ static INLINE int is_mv_in(const MACROBLOCK *x, const MV *mv) {
static INLINE void calc_int_cost_list(const MACROBLOCK *x, static INLINE void calc_int_cost_list(const MACROBLOCK *x,
const MV *ref_mv, const MV *ref_mv,
int sadpb, int sadpb,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *best_mv, const MV *best_mv,
int *cost_list) { int *cost_list) {
static const MV neighbors[4] = {{0, -1}, {1, 0}, {0, 1}, {-1, 0}}; static const MV neighbors[4] = {{0, -1}, {1, 0}, {0, 1}, {-1, 0}};
@ -884,7 +884,7 @@ static int vp10_pattern_search(const MACROBLOCK *x,
int sad_per_bit, int sad_per_bit,
int do_init_search, int do_init_search,
int *cost_list, int *cost_list,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int use_mvcost, int use_mvcost,
const MV *center_mv, const MV *center_mv,
MV *best_mv, MV *best_mv,
@ -1059,7 +1059,7 @@ static int vp10_pattern_search_sad(const MACROBLOCK *x,
int sad_per_bit, int sad_per_bit,
int do_init_search, int do_init_search,
int *cost_list, int *cost_list,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int use_mvcost, int use_mvcost,
const MV *center_mv, const MV *center_mv,
MV *best_mv, MV *best_mv,
@ -1341,7 +1341,7 @@ static int vp10_pattern_search_sad(const MACROBLOCK *x,
int vp10_get_mvpred_var(const MACROBLOCK *x, int vp10_get_mvpred_var(const MACROBLOCK *x,
const MV *best_mv, const MV *center_mv, const MV *best_mv, const MV *center_mv,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int use_mvcost) { int use_mvcost) {
const MACROBLOCKD *const xd = &x->e_mbd; const MACROBLOCKD *const xd = &x->e_mbd;
const struct buf_2d *const what = &x->plane[0].src; const struct buf_2d *const what = &x->plane[0].src;
@ -1358,7 +1358,7 @@ int vp10_get_mvpred_var(const MACROBLOCK *x,
int vp10_get_mvpred_av_var(const MACROBLOCK *x, int vp10_get_mvpred_av_var(const MACROBLOCK *x,
const MV *best_mv, const MV *center_mv, const MV *best_mv, const MV *center_mv,
const uint8_t *second_pred, const uint8_t *second_pred,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int use_mvcost) { int use_mvcost) {
const MACROBLOCKD *const xd = &x->e_mbd; const MACROBLOCKD *const xd = &x->e_mbd;
const struct buf_2d *const what = &x->plane[0].src; const struct buf_2d *const what = &x->plane[0].src;
@ -1378,7 +1378,7 @@ int vp10_hex_search(const MACROBLOCK *x,
int sad_per_bit, int sad_per_bit,
int do_init_search, int do_init_search,
int *cost_list, int *cost_list,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int use_mvcost, int use_mvcost,
const MV *center_mv, MV *best_mv) { const MV *center_mv, MV *best_mv) {
// First scale has 8-closest points, the rest have 6 points in hex shape // First scale has 8-closest points, the rest have 6 points in hex shape
@ -1413,7 +1413,7 @@ int vp10_bigdia_search(const MACROBLOCK *x,
int sad_per_bit, int sad_per_bit,
int do_init_search, int do_init_search,
int *cost_list, int *cost_list,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int use_mvcost, int use_mvcost,
const MV *center_mv, const MV *center_mv,
MV *best_mv) { MV *best_mv) {
@ -1455,7 +1455,7 @@ int vp10_square_search(const MACROBLOCK *x,
int sad_per_bit, int sad_per_bit,
int do_init_search, int do_init_search,
int *cost_list, int *cost_list,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int use_mvcost, int use_mvcost,
const MV *center_mv, const MV *center_mv,
MV *best_mv) { MV *best_mv) {
@ -1497,7 +1497,7 @@ int vp10_fast_hex_search(const MACROBLOCK *x,
int sad_per_bit, int sad_per_bit,
int do_init_search, // must be zero for fast_hex int do_init_search, // must be zero for fast_hex
int *cost_list, int *cost_list,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int use_mvcost, int use_mvcost,
const MV *center_mv, const MV *center_mv,
MV *best_mv) { MV *best_mv) {
@ -1512,7 +1512,7 @@ int vp10_fast_dia_search(const MACROBLOCK *x,
int sad_per_bit, int sad_per_bit,
int do_init_search, int do_init_search,
int *cost_list, int *cost_list,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int use_mvcost, int use_mvcost,
const MV *center_mv, const MV *center_mv,
MV *best_mv) { MV *best_mv) {
@ -1528,7 +1528,7 @@ int vp10_fast_dia_search(const MACROBLOCK *x,
static int exhuastive_mesh_search(const MACROBLOCK *x, static int exhuastive_mesh_search(const MACROBLOCK *x,
MV *ref_mv, MV *best_mv, MV *ref_mv, MV *best_mv,
int range, int step, int sad_per_bit, int range, int step, int sad_per_bit,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *center_mv) { const MV *center_mv) {
const MACROBLOCKD *const xd = &x->e_mbd; const MACROBLOCKD *const xd = &x->e_mbd;
const struct buf_2d *const what = &x->plane[0].src; const struct buf_2d *const what = &x->plane[0].src;
@ -1614,7 +1614,7 @@ int vp10_diamond_search_sad_c(const MACROBLOCK *x,
const search_site_config *cfg, const search_site_config *cfg,
MV *ref_mv, MV *best_mv, int search_param, MV *ref_mv, MV *best_mv, int search_param,
int sad_per_bit, int *num00, int sad_per_bit, int *num00,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *center_mv) { const MV *center_mv) {
int i, j, step; int i, j, step;
@ -1968,7 +1968,7 @@ int vp10_full_pixel_diamond(const VP10_COMP *cpi, MACROBLOCK *x,
MV *mvp_full, int step_param, MV *mvp_full, int step_param,
int sadpb, int further_steps, int do_refine, int sadpb, int further_steps, int do_refine,
int *cost_list, int *cost_list,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *ref_mv, MV *dst_mv) { const MV *ref_mv, MV *dst_mv) {
MV temp_mv; MV temp_mv;
int thissme, n, num00 = 0; int thissme, n, num00 = 0;
@ -2035,7 +2035,7 @@ int vp10_full_pixel_diamond(const VP10_COMP *cpi, MACROBLOCK *x,
// according to the encode speed profile. // according to the encode speed profile.
static int full_pixel_exhaustive(VP10_COMP *cpi, MACROBLOCK *x, static int full_pixel_exhaustive(VP10_COMP *cpi, MACROBLOCK *x,
MV *centre_mv_full, int sadpb, int *cost_list, MV *centre_mv_full, int sadpb, int *cost_list,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *ref_mv, MV *dst_mv) { const MV *ref_mv, MV *dst_mv) {
const SPEED_FEATURES *const sf = &cpi->sf; const SPEED_FEATURES *const sf = &cpi->sf;
MV temp_mv = {centre_mv_full->row, centre_mv_full->col}; MV temp_mv = {centre_mv_full->row, centre_mv_full->col};
@ -2094,7 +2094,7 @@ static int full_pixel_exhaustive(VP10_COMP *cpi, MACROBLOCK *x,
int vp10_full_search_sad_c(const MACROBLOCK *x, const MV *ref_mv, int vp10_full_search_sad_c(const MACROBLOCK *x, const MV *ref_mv,
int sad_per_bit, int distance, int sad_per_bit, int distance,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *center_mv, MV *best_mv) { const MV *center_mv, MV *best_mv) {
int r, c; int r, c;
const MACROBLOCKD *const xd = &x->e_mbd; const MACROBLOCKD *const xd = &x->e_mbd;
@ -2127,7 +2127,7 @@ int vp10_full_search_sad_c(const MACROBLOCK *x, const MV *ref_mv,
int vp10_full_search_sadx3(const MACROBLOCK *x, const MV *ref_mv, int vp10_full_search_sadx3(const MACROBLOCK *x, const MV *ref_mv,
int sad_per_bit, int distance, int sad_per_bit, int distance,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *center_mv, MV *best_mv) { const MV *center_mv, MV *best_mv) {
int r; int r;
const MACROBLOCKD *const xd = &x->e_mbd; const MACROBLOCKD *const xd = &x->e_mbd;
@ -2192,7 +2192,7 @@ int vp10_full_search_sadx3(const MACROBLOCK *x, const MV *ref_mv,
int vp10_full_search_sadx8(const MACROBLOCK *x, const MV *ref_mv, int vp10_full_search_sadx8(const MACROBLOCK *x, const MV *ref_mv,
int sad_per_bit, int distance, int sad_per_bit, int distance,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *center_mv, MV *best_mv) { const MV *center_mv, MV *best_mv) {
int r; int r;
const MACROBLOCKD *const xd = &x->e_mbd; const MACROBLOCKD *const xd = &x->e_mbd;
@ -2282,7 +2282,7 @@ int vp10_full_search_sadx8(const MACROBLOCK *x, const MV *ref_mv,
int vp10_refining_search_sad(const MACROBLOCK *x, int vp10_refining_search_sad(const MACROBLOCK *x,
MV *ref_mv, int error_per_bit, MV *ref_mv, int error_per_bit,
int search_range, int search_range,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *center_mv) { const MV *center_mv) {
const MACROBLOCKD *const xd = &x->e_mbd; const MACROBLOCKD *const xd = &x->e_mbd;
const MV neighbors[4] = {{ -1, 0}, {0, -1}, {0, 1}, {1, 0}}; const MV neighbors[4] = {{ -1, 0}, {0, -1}, {0, 1}, {1, 0}};
@ -2361,7 +2361,7 @@ int vp10_refining_search_sad(const MACROBLOCK *x,
int vp10_refining_search_8p_c(const MACROBLOCK *x, int vp10_refining_search_8p_c(const MACROBLOCK *x,
MV *ref_mv, int error_per_bit, MV *ref_mv, int error_per_bit,
int search_range, int search_range,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *center_mv, const MV *center_mv,
const uint8_t *second_pred) { const uint8_t *second_pred) {
const MV neighbors[8] = {{-1, 0}, {0, -1}, {0, 1}, {1, 0}, const MV neighbors[8] = {{-1, 0}, {0, -1}, {0, 1}, {1, 0},
@ -2425,7 +2425,7 @@ int vp10_full_pixel_search(VP10_COMP *cpi, MACROBLOCK *x,
int var_max, int rd) { int var_max, int rd) {
const SPEED_FEATURES *const sf = &cpi->sf; const SPEED_FEATURES *const sf = &cpi->sf;
const SEARCH_METHODS method = sf->mv.search_method; const SEARCH_METHODS method = sf->mv.search_method;
vp9_variance_fn_ptr_t *fn_ptr = &cpi->fn_ptr[bsize]; vpx_variance_fn_ptr_t *fn_ptr = &cpi->fn_ptr[bsize];
int var = 0; int var = 0;
if (cost_list) { if (cost_list) {
cost_list[0] = INT_MAX; cost_list[0] = INT_MAX;

View File

@ -53,12 +53,12 @@ int vp10_mv_bit_cost(const MV *mv, const MV *ref,
// Utility to compute variance + MV rate cost for a given MV // Utility to compute variance + MV rate cost for a given MV
int vp10_get_mvpred_var(const MACROBLOCK *x, int vp10_get_mvpred_var(const MACROBLOCK *x,
const MV *best_mv, const MV *center_mv, const MV *best_mv, const MV *center_mv,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int use_mvcost); int use_mvcost);
int vp10_get_mvpred_av_var(const MACROBLOCK *x, int vp10_get_mvpred_av_var(const MACROBLOCK *x,
const MV *best_mv, const MV *center_mv, const MV *best_mv, const MV *center_mv,
const uint8_t *second_pred, const uint8_t *second_pred,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int use_mvcost); int use_mvcost);
struct VP10_COMP; struct VP10_COMP;
@ -69,7 +69,7 @@ int vp10_init_search_range(int size);
int vp10_refining_search_sad(const struct macroblock *x, int vp10_refining_search_sad(const struct macroblock *x,
struct mv *ref_mv, struct mv *ref_mv,
int sad_per_bit, int distance, int sad_per_bit, int distance,
const struct vp9_variance_vtable *fn_ptr, const struct vpx_variance_vtable *fn_ptr,
const struct mv *center_mv); const struct mv *center_mv);
// Runs sequence of diamond searches in smaller steps for RD. // Runs sequence of diamond searches in smaller steps for RD.
@ -77,7 +77,7 @@ int vp10_full_pixel_diamond(const struct VP10_COMP *cpi, MACROBLOCK *x,
MV *mvp_full, int step_param, MV *mvp_full, int step_param,
int sadpb, int further_steps, int do_refine, int sadpb, int further_steps, int do_refine,
int *cost_list, int *cost_list,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *ref_mv, MV *dst_mv); const MV *ref_mv, MV *dst_mv);
// Perform integral projection based motion estimation. // Perform integral projection based motion estimation.
@ -93,7 +93,7 @@ typedef int (integer_mv_pattern_search_fn) (
int error_per_bit, int error_per_bit,
int do_init_search, int do_init_search,
int *cost_list, int *cost_list,
const vp9_variance_fn_ptr_t *vf, const vpx_variance_fn_ptr_t *vf,
int use_mvcost, int use_mvcost,
const MV *center_mv, const MV *center_mv,
MV *best_mv); MV *best_mv);
@ -109,7 +109,7 @@ typedef int (fractional_mv_step_fp) (
MV *bestmv, const MV *ref_mv, MV *bestmv, const MV *ref_mv,
int allow_hp, int allow_hp,
int error_per_bit, int error_per_bit,
const vp9_variance_fn_ptr_t *vfp, const vpx_variance_fn_ptr_t *vfp,
int forced_stop, // 0 - full, 1 - qtr only, 2 - half only int forced_stop, // 0 - full, 1 - qtr only, 2 - half only
int iters_per_step, int iters_per_step,
int *cost_list, int *cost_list,
@ -126,13 +126,13 @@ extern fractional_mv_step_fp vp10_find_best_sub_pixel_tree_pruned_evenmore;
typedef int (*vp10_full_search_fn_t)(const MACROBLOCK *x, typedef int (*vp10_full_search_fn_t)(const MACROBLOCK *x,
const MV *ref_mv, int sad_per_bit, const MV *ref_mv, int sad_per_bit,
int distance, int distance,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *center_mv, MV *best_mv); const MV *center_mv, MV *best_mv);
typedef int (*vp10_refining_search_fn_t)(const MACROBLOCK *x, typedef int (*vp10_refining_search_fn_t)(const MACROBLOCK *x,
MV *ref_mv, int sad_per_bit, MV *ref_mv, int sad_per_bit,
int distance, int distance,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *center_mv); const MV *center_mv);
typedef int (*vp10_diamond_search_fn_t)(const MACROBLOCK *x, typedef int (*vp10_diamond_search_fn_t)(const MACROBLOCK *x,
@ -140,13 +140,13 @@ typedef int (*vp10_diamond_search_fn_t)(const MACROBLOCK *x,
MV *ref_mv, MV *best_mv, MV *ref_mv, MV *best_mv,
int search_param, int sad_per_bit, int search_param, int sad_per_bit,
int *num00, int *num00,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *center_mv); const MV *center_mv);
int vp10_refining_search_8p_c(const MACROBLOCK *x, int vp10_refining_search_8p_c(const MACROBLOCK *x,
MV *ref_mv, int error_per_bit, MV *ref_mv, int error_per_bit,
int search_range, int search_range,
const vp9_variance_fn_ptr_t *fn_ptr, const vpx_variance_fn_ptr_t *fn_ptr,
const MV *center_mv, const uint8_t *second_pred); const MV *center_mv, const uint8_t *second_pred);
struct VP10_COMP; struct VP10_COMP;

View File

@ -58,7 +58,7 @@ typedef unsigned int (*vpx_subp_avg_variance_fn_t)(const uint8_t *a_ptr,
unsigned int *sse, unsigned int *sse,
const uint8_t *second_pred); const uint8_t *second_pred);
#if CONFIG_VP10 #if CONFIG_VP10
typedef struct vp9_variance_vtable { typedef struct vpx_variance_vtable {
vpx_sad_fn_t sdf; vpx_sad_fn_t sdf;
vpx_sad_avg_fn_t sdaf; vpx_sad_avg_fn_t sdaf;
vpx_variance_fn_t vf; vpx_variance_fn_t vf;
@ -67,7 +67,7 @@ typedef struct vp9_variance_vtable {
vpx_sad_multi_fn_t sdx3f; vpx_sad_multi_fn_t sdx3f;
vpx_sad_multi_fn_t sdx8f; vpx_sad_multi_fn_t sdx8f;
vpx_sad_multi_d_fn_t sdx4df; vpx_sad_multi_d_fn_t sdx4df;
} vp9_variance_fn_ptr_t; } vpx_variance_fn_ptr_t;
#endif // CONFIG_VP10 #endif // CONFIG_VP10
#ifdef __cplusplus #ifdef __cplusplus