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
3f3d2b5f
Commit
3f3d2b5f
authored
Nov 10, 2011
by
Mashiat Sarker Shakkhar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement use_high_update_speed() and use_normal_update_speed()
parent
1e0db1c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+32
-0
No files found.
libavcodec/wmalosslessdec.c
View file @
3f3d2b5f
...
...
@@ -826,6 +826,38 @@ static void lms_update(WmallDecodeCtx *s, int ich, int ilms, int32_t input, int3
}
}
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
];
ilms
>=
0
;
ilms
--
)
{
recent
=
s
->
cdlms
[
ich
][
ilms
].
recent
;
if
(
s
->
bV3RTM
)
{
for
(
icoef
=
0
;
icoef
<
s
->
cdlms
[
ich
][
ilms
].
order
;
icoef
++
)
s
->
cdlms
[
ich
][
ilms
].
lms_updates
[
icoef
+
recent
]
*=
2
;
}
else
{
for
(
icoef
=
0
;
icoef
<
s
->
cdlms
[
ich
][
ilms
].
order
;
icoef
++
)
s
->
cdlms
[
ich
][
ilms
].
lms_updates
[
icoef
]
*=
2
;
}
}
}
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
];
ilms
>=
0
;
ilms
--
)
{
recent
=
s
->
cdlms
[
ich
][
ilms
].
recent
;
if
(
s
->
bV3RTM
)
{
for
(
icoef
=
0
;
icoef
<
s
->
cdlms
[
ich
][
ilms
].
order
;
icoef
++
)
s
->
cdlms
[
ich
][
ilms
].
lms_updates
[
icoef
+
recent
]
/=
2
;
}
else
{
for
(
icoef
=
0
;
icoef
<
s
->
cdlms
[
ich
][
ilms
].
order
;
icoef
++
)
s
->
cdlms
[
ich
][
ilms
].
lms_updates
[
icoef
]
/=
2
;
}
}
}
/**
*@brief Decode a single subframe (block).
*@param s codec context
...
...
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