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
ba36f14e
Commit
ba36f14e
authored
Feb 28, 2012
by
Christophe Gisquet
Committed by
Ronald S. Bultje
Mar 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AAC SBR: group some writes.
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
7e1ce6a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
aacsbr.c
libavcodec/aacsbr.c
+6
-12
No files found.
libavcodec/aacsbr.c
View file @
ba36f14e
...
...
@@ -1229,8 +1229,7 @@ static void sbr_hf_inverse_filter(SBRDSPContext *dsp,
(
phi
[
1
][
1
][
0
]
*
phi
[
1
][
1
][
0
]
+
phi
[
1
][
1
][
1
]
*
phi
[
1
][
1
][
1
])
/
1
.
000001
f
;
if
(
!
dk
)
{
alpha1
[
k
][
0
]
=
0
;
alpha1
[
k
][
1
]
=
0
;
AV_ZERO64
(
alpha1
[
k
]);
}
else
{
float
temp_real
,
temp_im
;
temp_real
=
phi
[
0
][
0
][
0
]
*
phi
[
1
][
1
][
0
]
-
...
...
@@ -1245,8 +1244,7 @@ static void sbr_hf_inverse_filter(SBRDSPContext *dsp,
}
if
(
!
phi
[
1
][
0
][
0
])
{
alpha0
[
k
][
0
]
=
0
;
alpha0
[
k
][
1
]
=
0
;
AV_ZERO64
(
alpha0
[
k
]);
}
else
{
float
temp_real
,
temp_im
;
temp_real
=
phi
[
0
][
0
][
0
]
+
alpha1
[
k
][
0
]
*
phi
[
1
][
1
][
0
]
+
...
...
@@ -1260,10 +1258,8 @@ static void sbr_hf_inverse_filter(SBRDSPContext *dsp,
if
(
alpha1
[
k
][
0
]
*
alpha1
[
k
][
0
]
+
alpha1
[
k
][
1
]
*
alpha1
[
k
][
1
]
>=
16
.
0
f
||
alpha0
[
k
][
0
]
*
alpha0
[
k
][
0
]
+
alpha0
[
k
][
1
]
*
alpha0
[
k
][
1
]
>=
16
.
0
f
)
{
alpha1
[
k
][
0
]
=
0
;
alpha1
[
k
][
1
]
=
0
;
alpha0
[
k
][
0
]
=
0
;
alpha0
[
k
][
1
]
=
0
;
AV_ZERO64
(
alpha0
[
k
]);
AV_ZERO64
(
alpha1
[
k
]);
}
}
}
...
...
@@ -1299,14 +1295,12 @@ static int sbr_lf_gen(AACContext *ac, SpectralBandReplication *sbr,
memset
(
X_low
,
0
,
32
*
sizeof
(
*
X_low
));
for
(
k
=
0
;
k
<
sbr
->
kx
[
1
];
k
++
)
{
for
(
i
=
t_HFGen
;
i
<
i_f
+
t_HFGen
;
i
++
)
{
X_low
[
k
][
i
][
0
]
=
W
[
1
][
i
-
t_HFGen
][
k
][
0
];
X_low
[
k
][
i
][
1
]
=
W
[
1
][
i
-
t_HFGen
][
k
][
1
];
AV_COPY64
(
X_low
[
k
][
i
],
W
[
1
][
i
-
t_HFGen
][
k
]);
}
}
for
(
k
=
0
;
k
<
sbr
->
kx
[
0
];
k
++
)
{
for
(
i
=
0
;
i
<
t_HFGen
;
i
++
)
{
X_low
[
k
][
i
][
0
]
=
W
[
0
][
i
+
i_f
-
t_HFGen
][
k
][
0
];
X_low
[
k
][
i
][
1
]
=
W
[
0
][
i
+
i_f
-
t_HFGen
][
k
][
1
];
AV_COPY64
(
X_low
[
k
][
i
],
W
[
0
][
i
+
i_f
-
t_HFGen
][
k
]);
}
}
return
0
;
...
...
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