Index: source/libvpx/vp8/encoder/firstpass.c |
diff --git a/source/libvpx/vp8/encoder/firstpass.c b/source/libvpx/vp8/encoder/firstpass.c |
index 85767ef0d2a6d322b2826328a2ae9a754a57ad24..75c1362610fe41323eaac95089f0827d6114e998 100644 |
--- a/source/libvpx/vp8/encoder/firstpass.c |
+++ b/source/libvpx/vp8/encoder/firstpass.c |
@@ -573,7 +573,7 @@ void vp8_first_pass(VP8_COMP *cpi) |
{ |
int flag[2] = {1, 1}; |
vp8_initialize_rd_consts(cpi, x, vp8_dc_quant(cm->base_qindex, cm->y1dc_delta_q)); |
- vpx_memcpy(cm->fc.mvc, vp8_default_mv_context, sizeof(vp8_default_mv_context)); |
+ memcpy(cm->fc.mvc, vp8_default_mv_context, sizeof(vp8_default_mv_context)); |
vp8_build_component_cost_table(cpi->mb.mvcost, (const MV_CONTEXT *) cm->fc.mvc, flag); |
} |
@@ -1779,7 +1779,7 @@ static void define_gf_group(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame) |
start_pos = cpi->twopass.stats_in; |
- vpx_memset(&next_frame, 0, sizeof(next_frame)); /* assure clean */ |
+ memset(&next_frame, 0, sizeof(next_frame)); /* assure clean */ |
/* Load stats for the current frame. */ |
mod_frame_err = calculate_modified_err(cpi, this_frame); |
@@ -1875,7 +1875,7 @@ static void define_gf_group(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame) |
break; |
} |
- vpx_memcpy(this_frame, &next_frame, sizeof(*this_frame)); |
+ memcpy(this_frame, &next_frame, sizeof(*this_frame)); |
old_boost_score = boost_score; |
} |
@@ -2445,7 +2445,7 @@ void vp8_second_pass(VP8_COMP *cpi) |
if (cpi->twopass.frames_to_key == 0) |
{ |
/* Define next KF group and assign bits to it */ |
- vpx_memcpy(&this_frame_copy, &this_frame, sizeof(this_frame)); |
+ memcpy(&this_frame_copy, &this_frame, sizeof(this_frame)); |
find_next_key_frame(cpi, &this_frame_copy); |
/* Special case: Error error_resilient_mode mode does not make much |
@@ -2471,7 +2471,7 @@ void vp8_second_pass(VP8_COMP *cpi) |
if (cpi->frames_till_gf_update_due == 0) |
{ |
/* Define next gf group and assign bits to it */ |
- vpx_memcpy(&this_frame_copy, &this_frame, sizeof(this_frame)); |
+ memcpy(&this_frame_copy, &this_frame, sizeof(this_frame)); |
define_gf_group(cpi, &this_frame_copy); |
/* If we are going to code an altref frame at the end of the group |
@@ -2487,7 +2487,7 @@ void vp8_second_pass(VP8_COMP *cpi) |
* to the GF group |
*/ |
int bak = cpi->per_frame_bandwidth; |
- vpx_memcpy(&this_frame_copy, &this_frame, sizeof(this_frame)); |
+ memcpy(&this_frame_copy, &this_frame, sizeof(this_frame)); |
assign_std_frame_bits(cpi, &this_frame_copy); |
cpi->per_frame_bandwidth = bak; |
} |
@@ -2510,14 +2510,14 @@ void vp8_second_pass(VP8_COMP *cpi) |
if (cpi->common.frame_type != KEY_FRAME) |
{ |
/* Assign bits from those allocated to the GF group */ |
- vpx_memcpy(&this_frame_copy, &this_frame, sizeof(this_frame)); |
+ memcpy(&this_frame_copy, &this_frame, sizeof(this_frame)); |
assign_std_frame_bits(cpi, &this_frame_copy); |
} |
} |
else |
{ |
/* Assign bits from those allocated to the GF group */ |
- vpx_memcpy(&this_frame_copy, &this_frame, sizeof(this_frame)); |
+ memcpy(&this_frame_copy, &this_frame, sizeof(this_frame)); |
assign_std_frame_bits(cpi, &this_frame_copy); |
} |
} |
@@ -2658,7 +2658,7 @@ static int test_candidate_kf(VP8_COMP *cpi, FIRSTPASS_STATS *last_frame, FIRSTP |
double decay_accumulator = 1.0; |
double next_iiratio; |
- vpx_memcpy(&local_next_frame, next_frame, sizeof(*next_frame)); |
+ memcpy(&local_next_frame, next_frame, sizeof(*next_frame)); |
/* Note the starting file position so we can reset to it */ |
start_pos = cpi->twopass.stats_in; |
@@ -2735,7 +2735,7 @@ static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame) |
double kf_group_coded_err = 0.0; |
double recent_loop_decay[8] = {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0}; |
- vpx_memset(&next_frame, 0, sizeof(next_frame)); |
+ memset(&next_frame, 0, sizeof(next_frame)); |
vp8_clear_system_state(); |
start_position = cpi->twopass.stats_in; |
@@ -2756,7 +2756,7 @@ static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame) |
cpi->twopass.frames_to_key = 1; |
/* Take a copy of the initial frame details */ |
- vpx_memcpy(&first_frame, this_frame, sizeof(*this_frame)); |
+ memcpy(&first_frame, this_frame, sizeof(*this_frame)); |
cpi->twopass.kf_group_bits = 0; |
cpi->twopass.kf_group_error_left = 0; |
@@ -2779,7 +2779,7 @@ static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame) |
kf_group_coded_err += this_frame->coded_error; |
/* Load the next frame's stats. */ |
- vpx_memcpy(&last_frame, this_frame, sizeof(*this_frame)); |
+ memcpy(&last_frame, this_frame, sizeof(*this_frame)); |
input_stats(cpi, this_frame); |
/* Provided that we are not at the end of the file... */ |
@@ -2847,7 +2847,7 @@ static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame) |
cpi->twopass.frames_to_key /= 2; |
/* Copy first frame details */ |
- vpx_memcpy(&tmp_frame, &first_frame, sizeof(first_frame)); |
+ memcpy(&tmp_frame, &first_frame, sizeof(first_frame)); |
/* Reset to the start of the group */ |
reset_fpf_position(cpi, start_position); |
@@ -2969,7 +2969,6 @@ static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame) |
*/ |
decay_accumulator = 1.0; |
boost_score = 0.0; |
- loop_decay_rate = 1.00; /* Starting decay rate */ |
for (i = 0 ; i < cpi->twopass.frames_to_key ; i++) |
{ |
@@ -3213,7 +3212,7 @@ static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame) |
int new_width = cpi->oxcf.Width; |
int new_height = cpi->oxcf.Height; |
- int projected_buffer_level = (int)cpi->buffer_level; |
+ int projected_buffer_level; |
int tmp_q; |
double projected_bits_perframe; |