]> granicus.if.org Git - libvpx/commitdiff
Minor fix in header files
authorYunqing Wang <yunqingwang@google.com>
Tue, 1 Mar 2016 21:16:03 +0000 (13:16 -0800)
committerYunqing Wang <yunqingwang@google.com>
Tue, 1 Mar 2016 21:16:03 +0000 (13:16 -0800)
Move functions to be included in extern "C".

Change-Id: If57fa5eb7955763cf99e6839dde4d7221fad75ea

vp10/encoder/encoder.h
vp10/encoder/rdopt.h

index 2c158a47cd23a7ced942f8fd6792187371b4ce83..efde0fc315d43b7d04ebf42d86229c56187d54ed 100644 (file)
@@ -701,10 +701,6 @@ void vp10_new_framerate(VP10_COMP *cpi, double framerate);
 
 #define LAYER_IDS_TO_IDX(sl, tl, num_tl) ((sl) * (num_tl) + (tl))
 
-#ifdef __cplusplus
-}  // extern "C"
-#endif
-
 #if CONFIG_AFFINE_MOTION
 // Update up-sampled reference frame index.
 static INLINE void uref_cnt_fb(EncRefCntBuffer *ubufs, int *uidx,
@@ -719,4 +715,8 @@ static INLINE void uref_cnt_fb(EncRefCntBuffer *ubufs, int *uidx,
 }
 #endif
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif  // VP10_ENCODER_ENCODER_H_
index 74702a95b2276da0b931b5bd0ec2130b8a9439a5..f4d9b9553734a58d9cf6b940d8e8c04f3aa32cd3 100644 (file)
@@ -102,9 +102,6 @@ void vp10_build_prediction_by_left_preds(VP10_COMP *cpi,
                                          uint8_t *tmp_buf[MAX_MB_PLANE],
                                          int tmp_stride[MAX_MB_PLANE]);
 #endif  // CONFIG_OBMC
-#ifdef __cplusplus
-}  // extern "C"
-#endif
 
 #if CONFIG_AFFINE_MOTION
 static INLINE const YV12_BUFFER_CONFIG *get_upsampled_ref(VP10_COMP *cpi,
@@ -122,4 +119,8 @@ static INLINE const YV12_BUFFER_CONFIG *get_upsampled_ref(VP10_COMP *cpi,
 }
 #endif
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif  // VP10_ENCODER_RDOPT_H_