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
09eb00f6
Commit
09eb00f6
authored
Jul 19, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iabs -> ABS
Originally committed as revision 5793 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1abbf64e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
vp3.c
libavcodec/vp3.c
+3
-4
No files found.
libavcodec/vp3.c
View file @
09eb00f6
...
@@ -1352,7 +1352,6 @@ static int unpack_dct_coeffs(Vp3DecodeContext *s, GetBitContext *gb)
...
@@ -1352,7 +1352,6 @@ static int unpack_dct_coeffs(Vp3DecodeContext *s, GetBitContext *gb)
(compatible_frame[s->all_fragments[x].coding_method] == current_frame_type)
(compatible_frame[s->all_fragments[x].coding_method] == current_frame_type)
#define FRAME_CODED(x) (s->all_fragments[x].coding_method != MODE_COPY)
#define FRAME_CODED(x) (s->all_fragments[x].coding_method != MODE_COPY)
#define DC_COEFF(u) (s->coeffs[u].index ? 0 : s->coeffs[u].coeff) //FIXME do somethin to simplify this
#define DC_COEFF(u) (s->coeffs[u].index ? 0 : s->coeffs[u].coeff) //FIXME do somethin to simplify this
static
inline
int
iabs
(
int
x
)
{
return
((
x
<
0
)
?
-
x
:
x
);
}
static
void
reverse_dc_prediction
(
Vp3DecodeContext
*
s
,
static
void
reverse_dc_prediction
(
Vp3DecodeContext
*
s
,
int
first_fragment
,
int
first_fragment
,
...
@@ -1598,11 +1597,11 @@ static void reverse_dc_prediction(Vp3DecodeContext *s,
...
@@ -1598,11 +1597,11 @@ static void reverse_dc_prediction(Vp3DecodeContext *s,
/* check for outranging on the [ul u l] and
/* check for outranging on the [ul u l] and
* [ul u ur l] predictors */
* [ul u ur l] predictors */
if
((
transform
==
13
)
||
(
transform
==
15
))
{
if
((
transform
==
13
)
||
(
transform
==
15
))
{
if
(
iabs
(
predicted_dc
-
vu
)
>
128
)
if
(
ABS
(
predicted_dc
-
vu
)
>
128
)
predicted_dc
=
vu
;
predicted_dc
=
vu
;
else
if
(
iabs
(
predicted_dc
-
vl
)
>
128
)
else
if
(
ABS
(
predicted_dc
-
vl
)
>
128
)
predicted_dc
=
vl
;
predicted_dc
=
vl
;
else
if
(
iabs
(
predicted_dc
-
vul
)
>
128
)
else
if
(
ABS
(
predicted_dc
-
vul
)
>
128
)
predicted_dc
=
vul
;
predicted_dc
=
vul
;
}
}
...
...
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