]> granicus.if.org Git - libvpx/commitdiff
vp10: add extern "C" to headers
authorJames Zern <jzern@google.com>
Thu, 10 Sep 2015 04:05:42 +0000 (21:05 -0700)
committerJames Zern <jzern@google.com>
Thu, 10 Sep 2015 06:15:59 +0000 (23:15 -0700)
Change-Id: Ie2e8b37fa01ce8d6b993684f431f3159d511cfb1

vp10/common/thread_common.h
vp10/decoder/dthread.h
vp10/encoder/context_tree.h
vp10/encoder/ethread.h
vp10/encoder/resize.h

index 6388c7a28d7d7b858e393bbd37c49e237f4f316d..a401ddcb2e40ffcd4359a3de9d0f177267aad166 100644 (file)
 #include "vp10/common/loopfilter.h"
 #include "vpx_util/vpx_thread.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct VP10Common;
 struct FRAME_COUNTS;
 
@@ -54,4 +58,8 @@ void vp10_loop_filter_frame_mt(YV12_BUFFER_CONFIG *frame,
 void vp10_accumulate_frame_counts(struct VP10Common *cm,
                                  struct FRAME_COUNTS *counts, int is_dec);
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif  // VP10_COMMON_LOOPFILTER_THREAD_H_
index 7332aada292c78c26858472662977889f983ef58..1b0dc0191d2b9e38c16abdac9ebacd34c1e9e0e8 100644 (file)
 #include "vpx_util/vpx_thread.h"
 #include "vpx/internal/vpx_codec_internal.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct VP10Common;
 struct VP10Decoder;
 
@@ -63,4 +67,8 @@ void vp10_frameworker_broadcast(RefCntBuffer *const buf, int row);
 void vp10_frameworker_copy_context(VPxWorker *const dst_worker,
                                   VPxWorker *const src_worker);
 
+#ifdef __cplusplus
+}    // extern "C"
+#endif
+
 #endif  // VP10_DECODER_DTHREAD_H_
index 9310d1fc36e477c5ca025860ea1752211c408a13..67a07cb5054b4c4f149ce1dcf465deb7012b9229 100644 (file)
 #include "vp10/common/blockd.h"
 #include "vp10/encoder/block.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct VP10_COMP;
 struct VP10Common;
 struct ThreadData;
@@ -84,4 +88,8 @@ typedef struct PC_TREE {
 void vp10_setup_pc_tree(struct VP10Common *cm, struct ThreadData *td);
 void vp10_free_pc_tree(struct ThreadData *td);
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif /* VP10_ENCODER_CONTEXT_TREE_H_ */
index 997df0d0447d6ba7817033b68531d5997441dd8e..d72816cd5c894b9b8c5049916538f86b5313c24f 100644 (file)
 #ifndef VP10_ENCODER_ETHREAD_H_
 #define VP10_ENCODER_ETHREAD_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct VP10_COMP;
 struct ThreadData;
 
@@ -22,4 +26,8 @@ typedef struct EncWorkerData {
 
 void vp10_encode_tiles_mt(struct VP10_COMP *cpi);
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif  // VP10_ENCODER_ETHREAD_H_
index 131fc80ca5d705ad12d5470e39ef80ad0837ebc8..bf6377097ede68d98ef1c90a8b992d11c5a97a20 100644 (file)
 #include <stdio.h>
 #include "vpx/vpx_integer.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void vp10_resize_plane(const uint8_t *const input,
                       int height,
                       int width,
@@ -121,4 +125,9 @@ void vp10_highbd_resize_frame444(const uint8_t *const y,
                                 int owidth,
                                 int bd);
 #endif    // CONFIG_VP9_HIGHBITDEPTH
+
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif    // VP10_ENCODER_RESIZE_H_