summaryrefslogtreecommitdiff
path: root/src/post
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-08 01:12:44 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-08 01:12:44 +0100
commit3a233b827783151c4c08985224782f1dcce43a8f (patch)
tree5377813a1b3369d2700050df921ec0b33426b7f6 /src/post
parentf12149f0ca2743e6f5f9d39ba53b27c306137597 (diff)
downloadxine-lib-3a233b827783151c4c08985224782f1dcce43a8f.tar.gz
xine-lib-3a233b827783151c4c08985224782f1dcce43a8f.tar.bz2
Mark various private arrays, structs & fn parameters as static and/or const.
Two of the modified files are headers, but each contains definitions as well as declarations and is only ever used once.
Diffstat (limited to 'src/post')
-rw-r--r--src/post/audio/upmix.c2
-rw-r--r--src/post/deinterlace/pulldown.c26
-rw-r--r--src/post/planar/noise.c2
3 files changed, 15 insertions, 15 deletions
diff --git a/src/post/audio/upmix.c b/src/post/audio/upmix.c
index 76c9afe58..975d8b79e 100644
--- a/src/post/audio/upmix.c
+++ b/src/post/audio/upmix.c
@@ -57,7 +57,7 @@ typedef struct{
} biquad_t;
/* S-parameters for designing 4th order Butterworth filter */
-static biquad_t s_param[2] = {{{1.0,0.0,0.0},{1.0,0.765367,1.0}},
+static const biquad_t s_param[2] = {{{1.0,0.0,0.0},{1.0,0.765367,1.0}},
{{1.0,0.0,0.0},{1.0,1.847759,1.0}}};
/* Data for specific instances of this filter */
diff --git a/src/post/deinterlace/pulldown.c b/src/post/deinterlace/pulldown.c
index 41b31d596..cb263ccfb 100644
--- a/src/post/deinterlace/pulldown.c
+++ b/src/post/deinterlace/pulldown.c
@@ -85,19 +85,19 @@
*
*/
-/* Offset 1 2 3 4 5 */
-/* Field Pattern [T B T][B T][B T B] [T B] */
-/* Action Copy Save Merge Copy Copy */
-/* Bot Top */
-int tff_top_pattern[] = { 0, 1, 0, 0, 0 };
-int tff_bot_pattern[] = { 0, 0, 0, 1, 0 };
-
-/* Offset 1 2 3 4 5 */
-/* Field Pattern [B T B][T B][T B T] [B T] */
-/* Action Copy Save Merge Copy Copy */
-/* Top Bot */
-int bff_top_pattern[] = { 0, 0, 0, 1, 0 };
-int bff_bot_pattern[] = { 0, 1, 0, 0, 0 };
+/* Offset 1 2 3 4 5 */
+/* Field Pattern [T B T][B T][B T B] [T B] */
+/* Action Copy Save Merge Copy Copy */
+/* Bot Top */
+static const int tff_top_pattern[] = { 0, 1, 0, 0, 0 };
+static const int tff_bot_pattern[] = { 0, 0, 0, 1, 0 };
+
+/* Offset 1 2 3 4 5 */
+/* Field Pattern [B T B][T B][T B T] [B T] */
+/* Action Copy Save Merge Copy Copy */
+/* Top Bot */
+static const int bff_top_pattern[] = { 0, 0, 0, 1, 0 };
+static const int bff_bot_pattern[] = { 0, 1, 0, 0, 0 };
/* Timestamp mangling */
/* From the DVD : 0 + 3003+ 6006 + 9009+ 12012 = 15015 */
diff --git a/src/post/planar/noise.c b/src/post/planar/noise.c
index 154d5f8cc..a5bf03039 100644
--- a/src/post/planar/noise.c
+++ b/src/post/planar/noise.c
@@ -62,7 +62,7 @@ typedef struct noise_param_t {
static int nonTempRandShift[MAX_RES]= {-1};
-static int patt[4] = {
+static const int patt[4] = {
-1,0,1,0
};