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
34c22a9c
Commit
34c22a9c
authored
Aug 01, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
faan(i)dct: Kill some disabled code
parent
a4b1b5aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
27 deletions
+2
-27
faandct.c
libavcodec/faandct.c
+2
-18
faanidct.c
libavcodec/faanidct.c
+0
-9
No files found.
libavcodec/faandct.c
View file @
34c22a9c
...
...
@@ -97,17 +97,9 @@ static av_always_inline void row_fdct(FLOAT temp[64], int16_t *data)
tmp5
+=
tmp6
;
tmp6
+=
tmp7
;
#if 0
{
FLOAT z5;
z5 = (tmp4 - tmp6) * A5;
z2 = tmp4 * A2 + z5;
z4 = tmp6 * A4 + z5;
}
#else
z2
=
tmp4
*
(
A2
+
A5
)
-
tmp6
*
A5
;
z4
=
tmp6
*
(
A4
-
A5
)
+
tmp4
*
A5
;
#endif
tmp5
*=
A1
;
z11
=
tmp7
+
tmp5
;
...
...
@@ -159,17 +151,9 @@ void ff_faandct(int16_t *data)
tmp5
+=
tmp6
;
tmp6
+=
tmp7
;
#if 0
{
FLOAT z5;
z5 = (tmp4 - tmp6) * A5;
z2 = tmp4 * A2 + z5;
z4 = tmp6 * A4 + z5;
}
#else
z2
=
tmp4
*
(
A2
+
A5
)
-
tmp6
*
A5
;
z4
=
tmp6
*
(
A4
-
A5
)
+
tmp4
*
A5
;
#endif
tmp5
*=
A1
;
z11
=
tmp7
+
tmp5
;
...
...
libavcodec/faanidct.c
View file @
34c22a9c
...
...
@@ -62,17 +62,8 @@ static inline void p8idct(int16_t data[64], FLOAT temp[64], uint8_t *dest, int s
od07
=
s17
+
s53
;
od25
=
(
s17
-
s53
)
*
(
2
*
A4
);
#if 0 //these 2 are equivalent
{
FLOAT tmp0;
tmp0 = (d17 + d53) * (2 * A2);
od34 = d17 * (2 * B6) - tmp0;
od16 = d53 * (-2 * B2) + tmp0;
}
#else
od34
=
d17
*
(
2
*
(
B6
-
A2
))
-
d53
*
(
2
*
A2
);
od16
=
d53
*
(
2
*
(
A2
-
B2
))
+
d17
*
(
2
*
A2
);
#endif
od16
-=
od07
;
od25
-=
od16
;
...
...
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