Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
x264
Commits
87b23e25
Commit
87b23e25
authored
Nov 12, 2011
by
Anton Mitrofanov
Committed by
Fiona Glaser
Nov 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark some local functions as static, cosmetics
parent
2ecbcd73
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
common/mc.c
common/mc.c
+7
-7
common/rectangle.c
common/rectangle.c
+1
-1
encoder/ratecontrol.c
encoder/ratecontrol.c
+1
-1
encoder/slicetype.c
encoder/slicetype.c
+1
-1
x264.c
x264.c
+1
-0
No files found.
common/mc.c
View file @
87b23e25
...
@@ -304,9 +304,9 @@ void x264_plane_copy_interleave_c( pixel *dst, int i_dst,
...
@@ -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
,
static
void
x264_plane_copy_deinterleave_c
(
pixel
*
dstu
,
int
i_dstu
,
pixel
*
dstv
,
int
i_dstv
,
pixel
*
dstv
,
int
i_dstv
,
pixel
*
src
,
int
i_src
,
int
w
,
int
h
)
pixel
*
src
,
int
i_src
,
int
w
,
int
h
)
{
{
for
(
int
y
=
0
;
y
<
h
;
y
++
,
dstu
+=
i_dstu
,
dstv
+=
i_dstv
,
src
+=
i_src
)
for
(
int
y
=
0
;
y
<
h
;
y
++
,
dstu
+=
i_dstu
,
dstv
+=
i_dstv
,
src
+=
i_src
)
for
(
int
x
=
0
;
x
<
w
;
x
++
)
for
(
int
x
=
0
;
x
<
w
;
x
++
)
...
@@ -316,10 +316,10 @@ void x264_plane_copy_deinterleave_c( pixel *dstu, int i_dstu,
...
@@ -316,10 +316,10 @@ void x264_plane_copy_deinterleave_c( pixel *dstu, int i_dstu,
}
}
}
}
void
x264_plane_copy_deinterleave_rgb_c
(
pixel
*
dsta
,
int
i_dsta
,
static
void
x264_plane_copy_deinterleave_rgb_c
(
pixel
*
dsta
,
int
i_dsta
,
pixel
*
dstb
,
int
i_dstb
,
pixel
*
dstb
,
int
i_dstb
,
pixel
*
dstc
,
int
i_dstc
,
pixel
*
dstc
,
int
i_dstc
,
pixel
*
src
,
int
i_src
,
int
pw
,
int
w
,
int
h
)
pixel
*
src
,
int
i_src
,
int
pw
,
int
w
,
int
h
)
{
{
for
(
int
y
=
0
;
y
<
h
;
y
++
,
dsta
+=
i_dsta
,
dstb
+=
i_dstb
,
dstc
+=
i_dstc
,
src
+=
i_src
)
for
(
int
y
=
0
;
y
<
h
;
y
++
,
dsta
+=
i_dsta
,
dstb
+=
i_dstb
,
dstc
+=
i_dstc
,
src
+=
i_src
)
{
{
...
...
common/rectangle.c
View file @
87b23e25
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "common.h"
#include "common.h"
#define CACHE_FUNC(name,size,width,height)\
#define CACHE_FUNC(name,size,width,height)\
void x264_macroblock_cache_##name##_##width##_##height( void *target, uint32_t val )\
static
void x264_macroblock_cache_##name##_##width##_##height( void *target, uint32_t val )\
{\
{\
x264_macroblock_cache_rect( target, width*size, height, size, val );\
x264_macroblock_cache_rect( target, width*size, height, size, val );\
}
}
...
...
encoder/ratecontrol.c
View file @
87b23e25
...
@@ -2385,7 +2385,7 @@ static float rate_estimate_qscale( x264_t *h )
...
@@ -2385,7 +2385,7 @@ static float rate_estimate_qscale( x264_t *h )
}
}
}
}
void
x264_threads_normalize_predictors
(
x264_t
*
h
)
static
void
x264_threads_normalize_predictors
(
x264_t
*
h
)
{
{
double
totalsize
=
0
;
double
totalsize
=
0
;
for
(
int
i
=
0
;
i
<
h
->
param
.
i_threads
;
i
++
)
for
(
int
i
=
0
;
i
<
h
->
param
.
i_threads
;
i
++
)
...
...
encoder/slicetype.c
View file @
87b23e25
...
@@ -283,7 +283,7 @@ static NOINLINE unsigned int x264_weight_cost_chroma444( x264_t *h, x264_frame_t
...
@@ -283,7 +283,7 @@ static NOINLINE unsigned int x264_weight_cost_chroma444( x264_t *h, x264_frame_t
return
cost
;
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
;
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) */
/* epsilon is chosen to require at least a numerator of 127 (with denominator = 128) */
...
...
x264.c
View file @
87b23e25
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
#endif
#endif
#if HAVE_SWSCALE
#if HAVE_SWSCALE
#undef DECLARE_ALIGNED
#include <libswscale/swscale.h>
#include <libswscale/swscale.h>
#endif
#endif
...
...
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