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
56d9b943
Commit
56d9b943
authored
Sep 30, 2008
by
Benoit Fouet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics
Originally committed as revision 15474 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
68e9c68f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
indeo3.c
libavcodec/indeo3.c
+13
-12
No files found.
libavcodec/indeo3.c
View file @
56d9b943
...
...
@@ -69,24 +69,25 @@ static av_cold void build_modpred(Indeo3DecodeContext *s)
s
->
ModPred
=
av_malloc
(
8
*
128
);
for
(
i
=
0
;
i
<
128
;
++
i
)
{
s
->
ModPred
[
i
+
0
*
128
]
=
(
i
>
126
)
?
254
:
2
*
((
i
+
1
)
-
((
i
+
1
)
%
2
));
s
->
ModPred
[
i
+
1
*
128
]
=
(
i
==
7
)
?
20
:
((
i
==
119
||
i
==
120
)
?
236
:
2
*
((
i
+
2
)
-
((
i
+
1
)
%
3
)));
s
->
ModPred
[
i
+
2
*
128
]
=
(
i
>
125
)
?
248
:
2
*
((
i
+
2
)
-
((
i
+
2
)
%
4
));
s
->
ModPred
[
i
+
3
*
128
]
=
2
*
((
i
+
1
)
-
((
i
-
3
)
%
5
));
s
->
ModPred
[
i
+
4
*
128
]
=
(
i
==
8
)
?
20
:
2
*
((
i
+
1
)
-
((
i
-
3
)
%
6
));
s
->
ModPred
[
i
+
5
*
128
]
=
2
*
((
i
+
4
)
-
((
i
+
3
)
%
7
));
s
->
ModPred
[
i
+
6
*
128
]
=
(
i
>
123
)
?
240
:
2
*
((
i
+
4
)
-
((
i
+
4
)
%
8
));
s
->
ModPred
[
i
+
7
*
128
]
=
2
*
((
i
+
5
)
-
((
i
+
4
)
%
9
));
s
->
ModPred
[
i
+
0
*
128
]
=
i
>
126
?
254
:
2
*
(
i
+
1
-
((
i
+
1
)
%
2
));
s
->
ModPred
[
i
+
1
*
128
]
=
i
==
7
?
20
:
i
==
119
||
i
==
120
?
236
:
2
*
(
i
+
2
-
((
i
+
1
)
%
3
));
s
->
ModPred
[
i
+
2
*
128
]
=
i
>
125
?
248
:
2
*
(
i
+
2
-
((
i
+
2
)
%
4
));
s
->
ModPred
[
i
+
3
*
128
]
=
2
*
(
i
+
1
-
((
i
-
3
)
%
5
));
s
->
ModPred
[
i
+
4
*
128
]
=
i
==
8
?
20
:
2
*
(
i
+
1
-
((
i
-
3
)
%
6
));
s
->
ModPred
[
i
+
5
*
128
]
=
2
*
(
i
+
4
-
((
i
+
3
)
%
7
));
s
->
ModPred
[
i
+
6
*
128
]
=
i
>
123
?
240
:
2
*
(
i
+
4
-
((
i
+
4
)
%
8
));
s
->
ModPred
[
i
+
7
*
128
]
=
2
*
(
i
+
5
-
((
i
+
4
)
%
9
));
}
s
->
corrector_type
=
av_malloc
(
24
*
256
);
for
(
i
=
0
;
i
<
24
;
++
i
)
{
for
(
j
=
0
;
j
<
256
;
++
j
)
{
s
->
corrector_type
[
i
*
256
+
j
]
=
(
j
<
corrector_type_0
[
i
])
?
1
:
((
j
<
248
||
(
i
==
16
&&
j
==
248
))
?
0
:
corrector_type_2
[
j
-
248
])
;
s
->
corrector_type
[
i
*
256
+
j
]
=
j
<
corrector_type_0
[
i
]
?
1
:
j
<
248
||
(
i
==
16
&&
j
==
248
)
?
0
:
corrector_type_2
[
j
-
248
]
;
}
}
}
...
...
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