Convert small static functions in header to inline..
authorJim Bankoski <jimbankoski@google.com>
Mon, 10 Feb 2014 04:18:40 +0000 (20:18 -0800)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Mon, 10 Feb 2014 15:56:38 +0000 (07:56 -0800)
Change-Id: Ic4fc01be7738fbabf8c7860dbe3476ab4caf5fc2

vp9/common/vp9_scale.h

index 90b0d0b..a9dda18 100644 (file)
@@ -40,12 +40,12 @@ void vp9_setup_scale_factors_for_frame(struct scale_factors *sf,
                                        int other_w, int other_h,
                                        int this_w, int this_h);
 
-static int vp9_is_valid_scale(const struct scale_factors *sf) {
+static INLINE int vp9_is_valid_scale(const struct scale_factors *sf) {
   return sf->x_scale_fp != REF_INVALID_SCALE &&
          sf->y_scale_fp != REF_INVALID_SCALE;
 }
 
-static int vp9_is_scaled(const struct scale_factors *sf) {
+static INLINE int vp9_is_scaled(const struct scale_factors *sf) {
   return sf->x_scale_fp != REF_NO_SCALE ||
          sf->y_scale_fp != REF_NO_SCALE;
 }