From 87b23e25eee0c04bb47957445e7cf941a7d8b980 Mon Sep 17 00:00:00 2001 From: Anton Mitrofanov Date: Sat, 12 Nov 2011 00:47:48 +0400 Subject: [PATCH] Mark some local functions as static, cosmetics --- common/mc.c | 14 +++++++------- common/rectangle.c | 2 +- encoder/ratecontrol.c | 2 +- encoder/slicetype.c | 2 +- x264.c | 1 + 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/common/mc.c b/common/mc.c index 6f772afa..314c6f96 100644 --- a/common/mc.c +++ b/common/mc.c @@ -304,9 +304,9 @@ void x264_plane_copy_interleave_c( pixel *dst, int i_dst, } } -void x264_plane_copy_deinterleave_c( pixel *dstu, int i_dstu, - pixel *dstv, int i_dstv, - pixel *src, int i_src, int w, int h ) +static void x264_plane_copy_deinterleave_c( pixel *dstu, int i_dstu, + pixel *dstv, int i_dstv, + pixel *src, int i_src, int w, int h ) { for( int y=0; yparam.i_threads; i++ ) diff --git a/encoder/slicetype.c b/encoder/slicetype.c index b344e513..35f4b1ad 100644 --- a/encoder/slicetype.c +++ b/encoder/slicetype.c @@ -283,7 +283,7 @@ static NOINLINE unsigned int x264_weight_cost_chroma444( x264_t *h, x264_frame_t return cost; } -void x264_weights_analyse( x264_t *h, x264_frame_t *fenc, x264_frame_t *ref, int b_lookahead ) +static void x264_weights_analyse( x264_t *h, x264_frame_t *fenc, x264_frame_t *ref, int b_lookahead ) { int i_delta_index = fenc->i_frame - ref->i_frame - 1; /* epsilon is chosen to require at least a numerator of 127 (with denominator = 128) */ diff --git a/x264.c b/x264.c index 7e93809d..50b71fa5 100644 --- a/x264.c +++ b/x264.c @@ -53,6 +53,7 @@ #endif #if HAVE_SWSCALE +#undef DECLARE_ALIGNED #include #endif -- 2.40.0