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
4fa3f1c5
Commit
4fa3f1c5
authored
Dec 08, 2011
by
Mashiat Sarker Shakkhar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not update buffers in case no speed change is necessary
parent
153a8537
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+6
-2
No files found.
libavcodec/wmalosslessdec.c
View file @
4fa3f1c5
...
...
@@ -948,9 +948,10 @@ static void lms_update(WmallDecodeCtx *s, int ich, int ilms, int input, int resi
static
void
use_high_update_speed
(
WmallDecodeCtx
*
s
,
int
ich
)
{
int
ilms
,
recent
,
icoef
;
s
->
update_speed
[
ich
]
=
16
;
for
(
ilms
=
s
->
cdlms_ttl
[
ich
]
-
1
;
ilms
>=
0
;
ilms
--
)
{
recent
=
s
->
cdlms
[
ich
][
ilms
].
recent
;
if
(
s
->
update_speed
[
ich
]
==
16
)
continue
;
if
(
s
->
bV3RTM
)
{
for
(
icoef
=
0
;
icoef
<
s
->
cdlms
[
ich
][
ilms
].
order
;
icoef
++
)
s
->
cdlms
[
ich
][
ilms
].
lms_updates
[
icoef
+
recent
]
*=
2
;
...
...
@@ -959,14 +960,16 @@ static void use_high_update_speed(WmallDecodeCtx *s, int ich)
s
->
cdlms
[
ich
][
ilms
].
lms_updates
[
icoef
]
*=
2
;
}
}
s
->
update_speed
[
ich
]
=
16
;
}
static
void
use_normal_update_speed
(
WmallDecodeCtx
*
s
,
int
ich
)
{
int
ilms
,
recent
,
icoef
;
s
->
update_speed
[
ich
]
=
8
;
for
(
ilms
=
s
->
cdlms_ttl
[
ich
]
-
1
;
ilms
>=
0
;
ilms
--
)
{
recent
=
s
->
cdlms
[
ich
][
ilms
].
recent
;
if
(
s
->
update_speed
[
ich
]
==
8
)
continue
;
if
(
s
->
bV3RTM
)
{
for
(
icoef
=
0
;
icoef
<
s
->
cdlms
[
ich
][
ilms
].
order
;
icoef
++
)
s
->
cdlms
[
ich
][
ilms
].
lms_updates
[
icoef
+
recent
]
/=
2
;
...
...
@@ -975,6 +978,7 @@ static void use_normal_update_speed(WmallDecodeCtx *s, int ich)
s
->
cdlms
[
ich
][
ilms
].
lms_updates
[
icoef
]
/=
2
;
}
}
s
->
update_speed
[
ich
]
=
8
;
}
static
void
revert_cdlms
(
WmallDecodeCtx
*
s
,
int
ch
,
int
coef_begin
,
int
coef_end
)
...
...
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