Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
b453941c
Commit
b453941c
authored
Jan 18, 2014
by
James Zern
Browse files
vp9/encoder: add extern "C" to headers
Change-Id: I4f51ce859a97bf1b8fd2b37ac585b7c643232b69
parent
40aa910c
Changes
28
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_bitstream.h
View file @
b453941c
...
...
@@ -12,6 +12,14 @@
#ifndef VP9_ENCODER_VP9_BITSTREAM_H_
#define VP9_ENCODER_VP9_BITSTREAM_H_
#ifdef __cplusplus
extern
"C"
{
#endif
void
vp9_update_skip_probs
(
VP9_COMMON
*
cm
,
vp9_writer
*
bc
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_BITSTREAM_H_
vp9/encoder/vp9_block.h
View file @
b453941c
...
...
@@ -17,6 +17,10 @@
#include "vpx_ports/mem.h"
#include "vp9/common/vp9_onyxc_int.h"
#ifdef __cplusplus
extern
"C"
{
#endif
// motion search site
typedef
struct
{
MV
mv
;
...
...
@@ -254,4 +258,8 @@ struct rdcost_block_args {
const
int16_t
*
scan
,
*
nb
;
};
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_BLOCK_H_
vp9/encoder/vp9_dct.h
View file @
b453941c
...
...
@@ -12,6 +12,10 @@
#ifndef VP9_ENCODER_VP9_DCT_H_
#define VP9_ENCODER_VP9_DCT_H_
#ifdef __cplusplus
extern
"C"
{
#endif
void
vp9_fht4x4
(
TX_TYPE
tx_type
,
const
int16_t
*
input
,
int16_t
*
output
,
int
stride
);
...
...
@@ -21,4 +25,8 @@ void vp9_fht8x8(TX_TYPE tx_type, const int16_t *input, int16_t *output,
void
vp9_fht16x16
(
TX_TYPE
tx_type
,
const
int16_t
*
input
,
int16_t
*
output
,
int
stride
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_DCT_H_
vp9/encoder/vp9_encodeframe.h
View file @
b453941c
...
...
@@ -12,6 +12,10 @@
#ifndef VP9_ENCODER_VP9_ENCODEFRAME_H_
#define VP9_ENCODER_VP9_ENCODEFRAME_H_
#ifdef __cplusplus
extern
"C"
{
#endif
struct
macroblock
;
struct
yv12_buffer_config
;
...
...
@@ -19,4 +23,8 @@ void vp9_setup_src_planes(struct macroblock *x,
const
struct
yv12_buffer_config
*
src
,
int
mi_row
,
int
mi_col
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_ENCODEFRAME_H_
vp9/encoder/vp9_encodemb.h
View file @
b453941c
...
...
@@ -16,6 +16,10 @@
#include "vp9/encoder/vp9_onyx_int.h"
#include "vp9/common/vp9_onyxc_int.h"
#ifdef __cplusplus
extern
"C"
{
#endif
struct
optimize_ctx
{
ENTROPY_CONTEXT
ta
[
MAX_MB_PLANE
][
16
];
ENTROPY_CONTEXT
tl
[
MAX_MB_PLANE
][
16
];
...
...
@@ -47,4 +51,8 @@ int vp9_encode_intra(MACROBLOCK *x, int use_16x16_pred);
void
vp9_setup_interp_filters
(
MACROBLOCKD
*
xd
,
INTERPOLATION_TYPE
mcomp_filter_type
,
VP9_COMMON
*
cm
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_ENCODEMB_H_
vp9/encoder/vp9_encodemv.h
View file @
b453941c
...
...
@@ -14,6 +14,10 @@
#include "vp9/encoder/vp9_onyx_int.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
vp9_entropy_mv_init
();
void
vp9_write_nmv_probs
(
VP9_COMMON
*
cm
,
int
usehp
,
vp9_writer
*
const
);
...
...
@@ -30,4 +34,8 @@ void vp9_build_nmv_cost_table(int *mvjoint,
void
vp9_update_mv_count
(
VP9_COMP
*
cpi
,
MACROBLOCK
*
x
,
int_mv
best_ref_mv
[
2
]);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_ENCODEMV_H_
vp9/encoder/vp9_extend.h
View file @
b453941c
...
...
@@ -14,6 +14,10 @@
#include "vpx_scale/yv12config.h"
#include "vpx/vpx_integer.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
vp9_copy_and_extend_frame
(
const
YV12_BUFFER_CONFIG
*
src
,
YV12_BUFFER_CONFIG
*
dst
);
...
...
@@ -22,4 +26,8 @@ void vp9_copy_and_extend_frame_with_rect(const YV12_BUFFER_CONFIG *src,
YV12_BUFFER_CONFIG
*
dst
,
int
srcy
,
int
srcx
,
int
srch
,
int
srcw
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_EXTEND_H_
vp9/encoder/vp9_firstpass.h
View file @
b453941c
...
...
@@ -12,6 +12,10 @@
#define VP9_ENCODER_VP9_FIRSTPASS_H_
#include "vp9/encoder/vp9_onyx_int.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
vp9_init_first_pass
(
VP9_COMP
*
cpi
);
void
vp9_first_pass
(
VP9_COMP
*
cpi
);
void
vp9_end_first_pass
(
VP9_COMP
*
cpi
);
...
...
@@ -25,4 +29,8 @@ void vp9_get_one_pass_params(VP9_COMP *cpi);
void
vp9_get_one_pass_cbr_params
(
VP9_COMP
*
cpi
);
void
vp9_get_svc_params
(
VP9_COMP
*
cpi
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_FIRSTPASS_H_
vp9/encoder/vp9_lookahead.h
View file @
b453941c
...
...
@@ -14,6 +14,10 @@
#include "vpx_scale/yv12config.h"
#include "vpx/vpx_integer.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define MAX_LAG_BUFFERS 25
struct
lookahead_entry
{
...
...
@@ -94,4 +98,8 @@ struct lookahead_entry *vp9_lookahead_peek(struct lookahead_ctx *ctx,
*/
unsigned
int
vp9_lookahead_depth
(
struct
lookahead_ctx
*
ctx
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_LOOKAHEAD_H_
vp9/encoder/vp9_mbgraph.h
View file @
b453941c
...
...
@@ -11,6 +11,14 @@
#ifndef VP9_ENCODER_VP9_MBGRAPH_H_
#define VP9_ENCODER_VP9_MBGRAPH_H_
#ifdef __cplusplus
extern
"C"
{
#endif
void
vp9_update_mbgraph_stats
(
VP9_COMP
*
cpi
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_MBGRAPH_H_
vp9/encoder/vp9_mcomp.h
View file @
b453941c
...
...
@@ -15,6 +15,10 @@
#include "vp9/encoder/vp9_block.h"
#include "vp9/encoder/vp9_variance.h"
#ifdef __cplusplus
extern
"C"
{
#endif
// The maximum number of steps in a step search given the largest
// allowed initial step
#define MAX_MVSEARCH_STEPS 11
...
...
@@ -129,4 +133,8 @@ int vp9_refining_search_8p_c(const MACROBLOCK *x,
int
*
mvjcost
,
int
*
mvcost
[
2
],
const
MV
*
center_mv
,
const
uint8_t
*
second_pred
,
int
w
,
int
h
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_MCOMP_H_
vp9/encoder/vp9_onyx_int.h
View file @
b453941c
...
...
@@ -28,6 +28,10 @@
#include "vp9/encoder/vp9_mcomp.h"
#include "vp9/encoder/vp9_lookahead.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define DISABLE_RC_LONG_TERM_MEM 0
// #define MODE_TEST_HIT_STATS
...
...
@@ -825,4 +829,8 @@ static int get_token_alloc(int mb_rows, int mb_cols) {
return
mb_rows
*
mb_cols
*
(
48
*
16
+
4
);
}
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_ONYX_INT_H_
vp9/encoder/vp9_picklpf.h
View file @
b453941c
...
...
@@ -12,6 +12,10 @@
#ifndef VP9_ENCODER_VP9_PICKLPF_H_
#define VP9_ENCODER_VP9_PICKLPF_H_
#ifdef __cplusplus
extern
"C"
{
#endif
struct
yv12_buffer_config
;
struct
VP9_COMP
;
...
...
@@ -19,4 +23,8 @@ void vp9_set_alt_lf_level(struct VP9_COMP *cpi, int filt_val);
void
vp9_pick_filter_level
(
struct
yv12_buffer_config
*
sd
,
struct
VP9_COMP
*
cpi
,
int
partial
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_PICKLPF_H_
vp9/encoder/vp9_pickmode.h
View file @
b453941c
...
...
@@ -8,8 +8,15 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef VP9_ENCODER_VP9_PICKMODE_H_
#define VP9_ENCODER_VP9_PICKMODE_H_
#include "vp9/encoder/vp9_onyx_int.h"
#ifdef __cplusplus
extern
"C"
{
#endif
int64_t
vp9_pick_inter_mode
(
VP9_COMP
*
cpi
,
MACROBLOCK
*
x
,
const
struct
TileInfo
*
const
tile
,
int
mi_row
,
int
mi_col
,
...
...
@@ -17,3 +24,9 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
int64_t
*
returndistortion
,
BLOCK_SIZE
bsize
,
PICK_MODE_CONTEXT
*
ctx
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_PICKMODE_H_
vp9/encoder/vp9_psnr.h
View file @
b453941c
...
...
@@ -12,6 +12,14 @@
#ifndef VP9_ENCODER_VP9_PSNR_H_
#define VP9_ENCODER_VP9_PSNR_H_
#ifdef __cplusplus
extern
"C"
{
#endif
double
vp9_mse2psnr
(
double
samples
,
double
peak
,
double
mse
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_PSNR_H_
vp9/encoder/vp9_quantize.h
View file @
b453941c
...
...
@@ -13,6 +13,10 @@
#include "vp9/encoder/vp9_block.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
vp9_regular_quantize_b_4x4
(
MACROBLOCK
*
x
,
int
plane
,
int
block
,
const
int16_t
*
scan
,
const
int16_t
*
iscan
);
...
...
@@ -28,4 +32,8 @@ void vp9_mb_init_quantizer(struct VP9_COMP *cpi, MACROBLOCK *x);
void
vp9_init_quantizer
(
struct
VP9_COMP
*
cpi
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_QUANTIZE_H_
vp9/encoder/vp9_ratectrl.h
View file @
b453941c
...
...
@@ -14,6 +14,10 @@
#include "vp9/encoder/vp9_onyx_int.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define FRAME_OVERHEAD_BITS 200
void
vp9_save_coding_context
(
VP9_COMP
*
cpi
);
...
...
@@ -69,4 +73,8 @@ int vp9_drop_frame(VP9_COMP *cpi);
// Update the buffer level.
void
vp9_update_buffer_level
(
VP9_COMP
*
cpi
,
int
encoded_frame_size
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_RATECTRL_H_
vp9/encoder/vp9_rdopt.h
View file @
b453941c
...
...
@@ -13,6 +13,10 @@
#include "vp9/encoder/vp9_onyx_int.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define RDDIV_BITS 7
#define RDCOST(RM, DM, R, D) \
...
...
@@ -80,4 +84,8 @@ void vp9_get_entropy_contexts(TX_SIZE tx_size,
const
ENTROPY_CONTEXT
*
above
,
const
ENTROPY_CONTEXT
*
left
,
int
num_4x4_w
,
int
num_4x4_h
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_RDOPT_H_
vp9/encoder/vp9_segmentation.h
View file @
b453941c
...
...
@@ -15,6 +15,10 @@
#include "vp9/common/vp9_blockd.h"
#include "vp9/encoder/vp9_onyx_int.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
vp9_enable_segmentation
(
VP9_PTR
ptr
);
void
vp9_disable_segmentation
(
VP9_PTR
ptr
);
...
...
@@ -45,4 +49,8 @@ void vp9_choose_segmap_coding_method(VP9_COMP *cpi);
void
vp9_reset_segment_features
(
struct
segmentation
*
seg
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_SEGMENTATION_H_
vp9/encoder/vp9_subexp.h
View file @
b453941c
...
...
@@ -12,6 +12,10 @@
#ifndef VP9_ENCODER_VP9_SUBEXP_H_
#define VP9_ENCODER_VP9_SUBEXP_H_
#ifdef __cplusplus
extern
"C"
{
#endif
void
vp9_compute_update_table
();
...
...
@@ -32,4 +36,8 @@ int vp9_prob_diff_update_savings_search_model(const unsigned int *ct,
vp9_prob
upd
,
int
b
,
int
r
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_SUBEXP_H_
Prev
1
2
Next
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