Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yushin Cho
aom-rav1e
Commits
14ae5fd8
Commit
14ae5fd8
authored
Jan 18, 2014
by
James Zern
Browse files
vp8/decoder: add extern "C" to headers
Change-Id: I7865db2d15ffa8cfa4de88714e48734c5ff9bb86
parent
aceba82c
Changes
8
Hide whitespace changes
Inline
Side-by-side
vp8/decoder/dboolhuff.h
View file @
14ae5fd8
...
...
@@ -19,6 +19,10 @@
#include "vpx_ports/mem.h"
#include "vpx/vpx_integer.h"
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
size_t
VP8_BD_VALUE
;
#define VP8_BD_VALUE_SIZE ((int)sizeof(VP8_BD_VALUE)*CHAR_BIT)
...
...
@@ -135,4 +139,8 @@ static int vp8dx_bool_error(BOOL_DECODER *br)
return
0
;
}
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP8_DECODER_DBOOLHUFF_H_
vp8/decoder/decodemv.h
View file @
14ae5fd8
...
...
@@ -13,6 +13,14 @@
#include "onyxd_int.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
vp8_decode_mode_mvs
(
VP8D_COMP
*
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP8_DECODER_DECODEMV_H_
vp8/decoder/decoderthreading.h
View file @
14ae5fd8
...
...
@@ -11,6 +11,10 @@
#ifndef VP8_DECODER_DECODERTHREADING_H_
#define VP8_DECODER_DECODERTHREADING_H_
#ifdef __cplusplus
extern
"C"
{
#endif
#if CONFIG_MULTITHREAD
void
vp8mt_decode_mb_rows
(
VP8D_COMP
*
pbi
,
MACROBLOCKD
*
xd
);
void
vp8_decoder_remove_threads
(
VP8D_COMP
*
pbi
);
...
...
@@ -19,4 +23,8 @@ void vp8mt_alloc_temp_buffers(VP8D_COMP *pbi, int width, int prev_mb_rows);
void
vp8mt_de_alloc_temp_buffers
(
VP8D_COMP
*
pbi
,
int
mb_rows
);
#endif
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP8_DECODER_DECODERTHREADING_H_
vp8/decoder/detokenize.h
View file @
14ae5fd8
...
...
@@ -13,7 +13,15 @@
#include "onyxd_int.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
vp8_reset_mb_tokens_context
(
MACROBLOCKD
*
x
);
int
vp8_decode_mb_tokens
(
VP8D_COMP
*
,
MACROBLOCKD
*
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP8_DECODER_DETOKENIZE_H_
vp8/decoder/ec_types.h
View file @
14ae5fd8
...
...
@@ -11,6 +11,10 @@
#ifndef VP8_DECODER_EC_TYPES_H_
#define VP8_DECODER_EC_TYPES_H_
#ifdef __cplusplus
extern
"C"
{
#endif
#define MAX_OVERLAPS 16
...
...
@@ -47,4 +51,8 @@ typedef struct
MV_REFERENCE_FRAME
ref_frame
;
}
EC_BLOCK
;
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP8_DECODER_EC_TYPES_H_
vp8/decoder/error_concealment.h
View file @
14ae5fd8
...
...
@@ -15,6 +15,10 @@
#include "onyxd_int.h"
#include "ec_types.h"
#ifdef __cplusplus
extern
"C"
{
#endif
/* Allocate memory for the overlap lists */
int
vp8_alloc_overlap_lists
(
VP8D_COMP
*
pbi
);
...
...
@@ -38,4 +42,8 @@ void vp8_interpolate_motion(MACROBLOCKD *mb,
*/
void
vp8_conceal_corrupt_mb
(
MACROBLOCKD
*
xd
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP8_DECODER_ERROR_CONCEALMENT_H_
vp8/decoder/onyxd_int.h
View file @
14ae5fd8
...
...
@@ -22,6 +22,10 @@
#include "ec_types.h"
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
{
int
ithread
;
...
...
@@ -148,4 +152,8 @@ int vp8_remove_decoder_instances(struct frame_buffers *fb);
} while(0)
#endif
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP8_DECODER_ONYXD_INT_H_
vp8/decoder/treereader.h
View file @
14ae5fd8
...
...
@@ -15,6 +15,10 @@
#include "vp8/common/treecoder.h"
#include "dboolhuff.h"
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
BOOL_DECODER
vp8_reader
;
#define vp8_read vp8dx_decode_bool
...
...
@@ -37,4 +41,8 @@ static int vp8_treed_read(
return
-
i
;
}
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP8_DECODER_TREEREADER_H_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment