]> granicus.if.org Git - libvpx/commitdiff
vp9/decoder: add extern "C" to headers
authorJames Zern <jzern@google.com>
Sat, 18 Jan 2014 20:16:11 +0000 (12:16 -0800)
committerJames Zern <jzern@google.com>
Fri, 24 Jan 2014 00:21:24 +0000 (16:21 -0800)
Change-Id: I0e6aa00f220280e22d30d098545265835d0c1079

vp9/decoder/vp9_decodeframe.h
vp9/decoder/vp9_decodemv.h
vp9/decoder/vp9_detokenize.h
vp9/decoder/vp9_dsubexp.h
vp9/decoder/vp9_onyxd.h
vp9/decoder/vp9_onyxd_int.h
vp9/decoder/vp9_read_bit_buffer.h
vp9/decoder/vp9_reader.h
vp9/decoder/vp9_thread.h

index 7245a98454f9f36bd518da07c3f8755aa962faad..4537bc82484298b50350c7238b93c224eb523b7a 100644 (file)
 #ifndef VP9_DECODER_VP9_DECODEFRAME_H_
 #define VP9_DECODER_VP9_DECODEFRAME_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct VP9Common;
 struct VP9Decompressor;
 
 void vp9_init_dequantizer(struct VP9Common *cm);
 int vp9_decode_frame(struct VP9Decompressor *cpi, const uint8_t **p_data_end);
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif  // VP9_DECODER_VP9_DECODEFRAME_H_
index 95272bfb3b8f6438042a7b6d4e891fb5078a06e5..539c9840e906604107a6037798423a2548fd6474 100644 (file)
 #include "vp9/decoder/vp9_onyxd_int.h"
 #include "vp9/decoder/vp9_reader.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct TileInfo;
 
 void vp9_read_mode_info(VP9_COMMON *cm, MACROBLOCKD *xd,
                         const struct TileInfo *const tile,
                         int mi_row, int mi_col, vp9_reader *r);
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif  // VP9_DECODER_VP9_DECODEMV_H_
index 1780a0fb5fe726d4eff7bbb723cc05af0b1f3cd6..ce3d7653dfec44a594cc6bd3fd8a32584fa719d9 100644 (file)
 #include "vp9/decoder/vp9_onyxd_int.h"
 #include "vp9/decoder/vp9_reader.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int vp9_decode_block_tokens(VP9_COMMON *cm, MACROBLOCKD *xd,
                             int plane, int block, BLOCK_SIZE plane_bsize,
                             int x, int y, TX_SIZE tx_size, vp9_reader *r);
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif  // VP9_DECODER_VP9_DETOKENIZE_H_
index 137f546b84aebcdf2173e01f9098a775ef40ae2a..436f434fb18b3e4372ec89df82772899b17271c8 100644 (file)
 
 #include "vp9/decoder/vp9_reader.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void vp9_diff_update_prob(vp9_reader *r, vp9_prob* p);
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif  // VP9_DECODER_VP9_DSUBEXP_H_
index a4b9c24fc9b29772f13fcf1a6bf37d5a68adc894..0fc9d578b6926fe99360d03709d9f34b489379a7 100644 (file)
 #ifndef VP9_DECODER_VP9_ONYXD_H_
 #define VP9_DECODER_VP9_ONYXD_H_
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include "vpx_scale/yv12config.h"
 #include "vp9/common/vp9_ppflags.h"
 #include "vpx/vpx_codec.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef void *VP9D_PTR;
 
 typedef struct {
@@ -63,7 +63,7 @@ VP9D_PTR vp9_create_decompressor(VP9D_CONFIG *oxcf);
 void vp9_remove_decompressor(VP9D_PTR comp);
 
 #ifdef __cplusplus
-}
+}  // extern "C"
 #endif
 
 #endif  // VP9_DECODER_VP9_ONYXD_H_
index e90f8923c9d035991652a4d67040458dba63f7e7..242c600ccd1d102e9e7b49fcb72141e9a6639136 100644 (file)
 #include "vp9/decoder/vp9_onyxd.h"
 #include "vp9/decoder/vp9_thread.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct VP9Decompressor {
   DECLARE_ALIGNED(16, MACROBLOCKD, mb);
 
@@ -53,4 +57,8 @@ typedef struct VP9Decompressor {
   PARTITION_CONTEXT *above_seg_context;
 } VP9D_COMP;
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif  // VP9_DECODER_VP9_ONYXD_INT_H_
index 41a686837242251bf66e42daef247854ee04c816..619e39f1ee202baf54c4833413a57ec9a7f9b9b5 100644 (file)
 
 #include "vpx/vpx_integer.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef void (*vp9_rb_error_handler)(void *data, size_t bit_offset);
 
 struct vp9_read_bit_buffer {
@@ -57,4 +61,8 @@ static int vp9_rb_read_signed_literal(struct vp9_read_bit_buffer *rb,
   return vp9_rb_read_bit(rb) ? -value : value;
 }
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif  // VP9_DECODER_VP9_READ_BIT_BUFFER_H_
index 38cf0f62120f7081a753d47f57dd23bc1a0a8fd6..8fe6acbc28bfcad7f95889634cbc4df0f6ca9006 100644 (file)
 
 #include "vp9/common/vp9_prob.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef size_t BD_VALUE;
 
 #define BD_VALUE_SIZE ((int)sizeof(BD_VALUE) * CHAR_BIT)
@@ -100,4 +104,8 @@ static int vp9_read_tree(vp9_reader *r, const vp9_tree_index *tree,
   return -i;
 }
 
+#ifdef __cplusplus
+}  // extern "C"
+#endif
+
 #endif  // VP9_DECODER_VP9_READER_H_
index a624f3c2ab78fe3ea83c08f6132fe2d24444dcef..bc69cfa1f5fb5ef51aebbc04c5d3d74e98691451 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "./vpx_config.h"
 
-#if defined(__cplusplus) || defined(c_plusplus)
+#ifdef __cplusplus
 extern "C" {
 #endif
 
@@ -91,7 +91,7 @@ void vp9_worker_end(VP9Worker* const worker);
 
 //------------------------------------------------------------------------------
 
-#if defined(__cplusplus) || defined(c_plusplus)
+#ifdef __cplusplus
 }    // extern "C"
 #endif