]> granicus.if.org Git - libvpx/commitdiff
Replace inline with INLINE
authorYaowu Xu <yaowu@google.com>
Thu, 1 Sep 2016 15:45:22 +0000 (08:45 -0700)
committerYaowu Xu <yaowu@google.com>
Thu, 1 Sep 2016 15:45:22 +0000 (08:45 -0700)
This fixes msvc build errors.

Change-Id: I1344685e891db61ba569d818e0f2167b2978c299

av1/common/reconintra.c
av1/encoder/firstpass.h

index 3c08ac450777ae165ee9d6fd1deca9575d7b9747..e1bf6f0a42a64545c79ffce11406c66f79d08cd9 100644 (file)
@@ -640,7 +640,7 @@ static void dr_prediction_z3(uint8_t *dst, ptrdiff_t stride, int bs,
 // If angle > 0 && angle < 90, dx = -((int)(256 / t));
 // If angle > 90 && angle < 180, dx = (int)(256 / t);
 // If angle > 180 && angle < 270, dx = 1;
-static inline int get_dx(int angle) {
+static INLINE int get_dx(int angle) {
   if (angle > 0 && angle < 90) {
     return -dr_intra_derivative[angle];
   } else if (angle > 90 && angle < 180) {
@@ -655,7 +655,7 @@ static inline int get_dx(int angle) {
 // If angle > 0 && angle < 90, dy = 1;
 // If angle > 90 && angle < 180, dy = (int)(256 * t);
 // If angle > 180 && angle < 270, dy = -((int)(256 * t));
-static inline int get_dy(int angle) {
+static INLINE int get_dy(int angle) {
   if (angle > 90 && angle < 180) {
     return dr_intra_derivative[angle - 90];
   } else if (angle > 180 && angle < 270) {
index 2b161a1f1177c4b70c9a491d0577a541e9c269c1..eaaafff05d87b9d83d0f4f49dec77cc792e8e41a 100644 (file)
@@ -182,7 +182,7 @@ void av1_calculate_coded_size(struct AV1_COMP *cpi, int *scaled_frame_width,
                               int *scaled_frame_height);
 
 #if CONFIG_EXT_REFS
-static inline int get_number_of_extra_arfs(int interval, int arf_pending) {
+static INLINE int get_number_of_extra_arfs(int interval, int arf_pending) {
   if (arf_pending && MAX_EXT_ARFS > 0)
     return interval >= MIN_EXT_ARF_INTERVAL * (MAX_EXT_ARFS + 1)
                ? MAX_EXT_ARFS