summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_scale.c
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2013-08-22 18:40:34 -0700
committerJames Zern <jzern@google.com>2013-08-23 19:16:49 -0700
commitc8ba8c513c5030ad5c7e03f547aad8f03614e92f (patch)
tree57f61dd5a9e63d920d8d2843c4c313b465ad8311 /vp9/common/vp9_scale.c
parent2c6ba737f83bd40214aae7510a9a6a8b4f8c30ce (diff)
downloadlibvpx-c8ba8c513c5030ad5c7e03f547aad8f03614e92f.tar
libvpx-c8ba8c513c5030ad5c7e03f547aad8f03614e92f.tar.gz
libvpx-c8ba8c513c5030ad5c7e03f547aad8f03614e92f.tar.bz2
libvpx-c8ba8c513c5030ad5c7e03f547aad8f03614e92f.zip
cosmetics: strip 'VP9_' from defines in vp9 only code
Change-Id: I481d9bb2fa3ec72b6a83d5f04d545ad8013f295c
Diffstat (limited to 'vp9/common/vp9_scale.c')
-rw-r--r--vp9/common/vp9_scale.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vp9/common/vp9_scale.c b/vp9/common/vp9_scale.c
index 0b8dc23ea..989206c60 100644
--- a/vp9/common/vp9_scale.c
+++ b/vp9/common/vp9_scale.c
@@ -13,11 +13,11 @@
#include "vp9/common/vp9_scale.h"
static INLINE int scaled_x(int val, const struct scale_factors *scale) {
- return val * scale->x_scale_fp >> VP9_REF_SCALE_SHIFT;
+ return val * scale->x_scale_fp >> REF_SCALE_SHIFT;
}
static INLINE int scaled_y(int val, const struct scale_factors *scale) {
- return val * scale->y_scale_fp >> VP9_REF_SCALE_SHIFT;
+ return val * scale->y_scale_fp >> REF_SCALE_SHIFT;
}
static int unscaled_value(int val, const struct scale_factors *scale) {
@@ -58,7 +58,7 @@ static int get_fixed_point_scale_factor(int other_size, int this_size) {
// and use fixed point scaling factors in decoding and encoding routines.
// Hardware implementations can calculate scale factor in device driver
// and use multiplication and shifting on hardware instead of division.
- return (other_size << VP9_REF_SCALE_SHIFT) / this_size;
+ return (other_size << REF_SCALE_SHIFT) / this_size;
}
static int check_scale_factors(int other_w, int other_h,
@@ -73,8 +73,8 @@ void vp9_setup_scale_factors_for_frame(struct scale_factors *scale,
int other_w, int other_h,
int this_w, int this_h) {
if (!check_scale_factors(other_w, other_h, this_w, this_h)) {
- scale->x_scale_fp = VP9_REF_INVALID_SCALE;
- scale->y_scale_fp = VP9_REF_INVALID_SCALE;
+ scale->x_scale_fp = REF_INVALID_SCALE;
+ scale->y_scale_fp = REF_INVALID_SCALE;
return;
}