Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d2585315
Commit
d2585315
authored
Aug 15, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: Mark a bunch of tables only used within one file static
parent
060ce0c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
swscale.c
libswscale/swscale.c
+2
-2
swscale_unscaled.c
libswscale/swscale_unscaled.c
+4
-4
No files found.
libswscale/swscale.c
View file @
d2585315
...
@@ -46,7 +46,7 @@ DECLARE_ALIGNED(8, const uint8_t, dither_8x8_128)[8][8] = {
...
@@ -46,7 +46,7 @@ DECLARE_ALIGNED(8, const uint8_t, dither_8x8_128)[8][8] = {
{
112
,
16
,
104
,
8
,
118
,
22
,
110
,
14
,
},
{
112
,
16
,
104
,
8
,
118
,
22
,
110
,
14
,
},
};
};
DECLARE_ALIGNED
(
8
,
const
uint8_t
,
ff_
sws_pb_64
)[
8
]
=
{
DECLARE_ALIGNED
(
8
,
static
const
uint8_t
,
sws_pb_64
)[
8
]
=
{
64
,
64
,
64
,
64
,
64
,
64
,
64
,
64
64
,
64
,
64
,
64
,
64
,
64
,
64
,
64
};
};
...
@@ -440,7 +440,7 @@ static int swScale(SwsContext *c, const uint8_t *src[],
...
@@ -440,7 +440,7 @@ static int swScale(SwsContext *c, const uint8_t *src[],
}
}
if
(
!
should_dither
)
{
if
(
!
should_dither
)
{
c
->
chrDither8
=
c
->
lumDither8
=
ff_
sws_pb_64
;
c
->
chrDither8
=
c
->
lumDither8
=
sws_pb_64
;
}
}
lastDstY
=
dstY
;
lastDstY
=
dstY
;
...
...
libswscale/swscale_unscaled.c
View file @
d2585315
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include "libavutil/bswap.h"
#include "libavutil/bswap.h"
#include "libavutil/pixdesc.h"
#include "libavutil/pixdesc.h"
DECLARE_ALIGNED
(
8
,
const
uint8_t
,
dither_8x8_1
)[
8
][
8
]
=
{
DECLARE_ALIGNED
(
8
,
static
const
uint8_t
,
dither_8x8_1
)[
8
][
8
]
=
{
{
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,},
{
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,},
{
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,},
{
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,},
{
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,},
{
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,},
...
@@ -44,7 +44,7 @@ DECLARE_ALIGNED(8, const uint8_t, dither_8x8_1)[8][8] = {
...
@@ -44,7 +44,7 @@ DECLARE_ALIGNED(8, const uint8_t, dither_8x8_1)[8][8] = {
{
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,},
{
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,},
{
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,},
{
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,},
};
};
DECLARE_ALIGNED
(
8
,
const
uint8_t
,
dither_8x8_3
)[
8
][
8
]
=
{
DECLARE_ALIGNED
(
8
,
static
const
uint8_t
,
dither_8x8_3
)[
8
][
8
]
=
{
{
1
,
2
,
1
,
2
,
1
,
2
,
1
,
2
,},
{
1
,
2
,
1
,
2
,
1
,
2
,
1
,
2
,},
{
3
,
0
,
3
,
0
,
3
,
0
,
3
,
0
,},
{
3
,
0
,
3
,
0
,
3
,
0
,
3
,
0
,},
{
1
,
2
,
1
,
2
,
1
,
2
,
1
,
2
,},
{
1
,
2
,
1
,
2
,
1
,
2
,
1
,
2
,},
...
@@ -54,7 +54,7 @@ DECLARE_ALIGNED(8, const uint8_t, dither_8x8_3)[8][8] = {
...
@@ -54,7 +54,7 @@ DECLARE_ALIGNED(8, const uint8_t, dither_8x8_3)[8][8] = {
{
1
,
2
,
1
,
2
,
1
,
2
,
1
,
2
,},
{
1
,
2
,
1
,
2
,
1
,
2
,
1
,
2
,},
{
3
,
0
,
3
,
0
,
3
,
0
,
3
,
0
,},
{
3
,
0
,
3
,
0
,
3
,
0
,
3
,
0
,},
};
};
DECLARE_ALIGNED
(
8
,
const
uint8_t
,
dither_8x8_64
)[
8
][
8
]
=
{
DECLARE_ALIGNED
(
8
,
static
const
uint8_t
,
dither_8x8_64
)[
8
][
8
]
=
{
{
18
,
34
,
30
,
46
,
17
,
33
,
29
,
45
,},
{
18
,
34
,
30
,
46
,
17
,
33
,
29
,
45
,},
{
50
,
2
,
62
,
14
,
49
,
1
,
61
,
13
,},
{
50
,
2
,
62
,
14
,
49
,
1
,
61
,
13
,},
{
26
,
42
,
22
,
38
,
25
,
41
,
21
,
37
,},
{
26
,
42
,
22
,
38
,
25
,
41
,
21
,
37
,},
...
@@ -65,7 +65,7 @@ DECLARE_ALIGNED(8, const uint8_t, dither_8x8_64)[8][8] = {
...
@@ -65,7 +65,7 @@ DECLARE_ALIGNED(8, const uint8_t, dither_8x8_64)[8][8] = {
{
56
,
8
,
52
,
4
,
59
,
11
,
55
,
7
,},
{
56
,
8
,
52
,
4
,
59
,
11
,
55
,
7
,},
};
};
extern
const
uint8_t
dither_8x8_128
[
8
][
8
];
extern
const
uint8_t
dither_8x8_128
[
8
][
8
];
DECLARE_ALIGNED
(
8
,
const
uint8_t
,
dither_8x8_256
)[
8
][
8
]
=
{
DECLARE_ALIGNED
(
8
,
static
const
uint8_t
,
dither_8x8_256
)[
8
][
8
]
=
{
{
72
,
136
,
120
,
184
,
68
,
132
,
116
,
180
,},
{
72
,
136
,
120
,
184
,
68
,
132
,
116
,
180
,},
{
200
,
8
,
248
,
56
,
196
,
4
,
244
,
52
,},
{
200
,
8
,
248
,
56
,
196
,
4
,
244
,
52
,},
{
104
,
168
,
88
,
152
,
100
,
164
,
84
,
148
,},
{
104
,
168
,
88
,
152
,
100
,
164
,
84
,
148
,},
...
...
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