Commit 88b4e7d7 authored by Alex Converse's avatar Alex Converse

global_motion: Make symbols not used in other files static

BUG=aomedia:453

Change-Id: Iea0b41152bce90c53b1b0668776ae0d4c854d4ab
parent f77fd0b0
...@@ -40,7 +40,7 @@ int is_enough_erroradvantage(double best_erroradvantage, int params_cost) { ...@@ -40,7 +40,7 @@ int is_enough_erroradvantage(double best_erroradvantage, int params_cost) {
best_erroradvantage * params_cost < ERRORADV_COST_PRODUCT_THRESH; best_erroradvantage * params_cost < ERRORADV_COST_PRODUCT_THRESH;
} }
void convert_to_params(const double *params, int32_t *model) { static void convert_to_params(const double *params, int32_t *model) {
int i; int i;
int alpha_present = 0; int alpha_present = 0;
model[0] = (int32_t)floor(params[0] * (1 << GM_TRANS_PREC_BITS) + 0.5); model[0] = (int32_t)floor(params[0] * (1 << GM_TRANS_PREC_BITS) + 0.5);
...@@ -81,7 +81,8 @@ void convert_model_to_params(const double *params, WarpedMotionParams *model) { ...@@ -81,7 +81,8 @@ void convert_model_to_params(const double *params, WarpedMotionParams *model) {
// Adds some offset to a global motion parameter and handles // Adds some offset to a global motion parameter and handles
// all of the necessary precision shifts, clamping, and // all of the necessary precision shifts, clamping, and
// zero-centering. // zero-centering.
int32_t add_param_offset(int param_index, int32_t param_value, int32_t offset) { static int32_t add_param_offset(int param_index, int32_t param_value,
int32_t offset) {
const int scale_vals[3] = { GM_TRANS_PREC_DIFF, GM_ALPHA_PREC_DIFF, const int scale_vals[3] = { GM_TRANS_PREC_DIFF, GM_ALPHA_PREC_DIFF,
GM_ROW3HOMO_PREC_DIFF }; GM_ROW3HOMO_PREC_DIFF };
const int clamp_vals[3] = { GM_TRANS_MAX, GM_ALPHA_MAX, GM_ROW3HOMO_MAX }; const int clamp_vals[3] = { GM_TRANS_MAX, GM_ALPHA_MAX, GM_ROW3HOMO_MAX };
...@@ -107,7 +108,7 @@ int32_t add_param_offset(int param_index, int32_t param_value, int32_t offset) { ...@@ -107,7 +108,7 @@ int32_t add_param_offset(int param_index, int32_t param_value, int32_t offset) {
return param_value + (is_one_centered << WARPEDMODEL_PREC_BITS); return param_value + (is_one_centered << WARPEDMODEL_PREC_BITS);
} }
void force_wmtype(WarpedMotionParams *wm, TransformationType wmtype) { static void force_wmtype(WarpedMotionParams *wm, TransformationType wmtype) {
switch (wmtype) { switch (wmtype) {
case IDENTITY: wm->wmmat[0] = 0; wm->wmmat[1] = 0; case IDENTITY: wm->wmmat[0] = 0; wm->wmmat[1] = 0;
case TRANSLATION: case TRANSLATION:
...@@ -237,7 +238,8 @@ static INLINE RansacFunc get_ransac_type(TransformationType type) { ...@@ -237,7 +238,8 @@ static INLINE RansacFunc get_ransac_type(TransformationType type) {
} }
#if CONFIG_HIGHBITDEPTH #if CONFIG_HIGHBITDEPTH
unsigned char *downconvert_frame(YV12_BUFFER_CONFIG *frm, int bit_depth) { static unsigned char *downconvert_frame(YV12_BUFFER_CONFIG *frm,
int bit_depth) {
int i, j; int i, j;
uint16_t *orig_buf = CONVERT_TO_SHORTPTR(frm->y_buffer); uint16_t *orig_buf = CONVERT_TO_SHORTPTR(frm->y_buffer);
uint8_t *buf = malloc(frm->y_height * frm->y_stride * sizeof(*buf)); uint8_t *buf = malloc(frm->y_height * frm->y_stride * sizeof(*buf));
......
...@@ -26,13 +26,6 @@ void convert_model_to_params(const double *params, WarpedMotionParams *model); ...@@ -26,13 +26,6 @@ void convert_model_to_params(const double *params, WarpedMotionParams *model);
int is_enough_erroradvantage(double erroradv, int params_cost); int is_enough_erroradvantage(double erroradv, int params_cost);
// Adds some offset to a global motion parameter and handles
// all of the necessary precision shifts, clamping, and
// zero-centering.
int32_t add_param_offset(int param_index, int32_t param_value, int32_t offset);
void force_wmtype(WarpedMotionParams *wm, TransformationType wmtype);
double refine_integerized_param(WarpedMotionParams *wm, double refine_integerized_param(WarpedMotionParams *wm,
TransformationType wmtype, TransformationType wmtype,
#if CONFIG_HIGHBITDEPTH #if CONFIG_HIGHBITDEPTH
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment