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
9326caa5
Commit
9326caa5
authored
Jun 23, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/lzo: allow selecting the compression function in the test code
parent
49bf712a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
lzo.c
libavutil/lzo.c
+11
-1
No files found.
libavutil/lzo.c
View file @
9326caa5
...
...
@@ -217,6 +217,7 @@ int av_lzo1x_decode(void *out, int *outlen, const void *in, int *inlen)
int
main
(
int
argc
,
char
*
argv
[])
{
FILE
*
in
=
fopen
(
argv
[
1
],
"rb"
);
int
comp_level
=
argc
>
2
?
atoi
(
argv
[
2
])
:
0
;
uint8_t
*
orig
=
av_malloc
(
MAXSZ
+
16
);
uint8_t
*
comp
=
av_malloc
(
2
*
MAXSZ
+
16
);
uint8_t
*
decomp
=
av_malloc
(
MAXSZ
+
16
);
...
...
@@ -226,7 +227,16 @@ int main(int argc, char *argv[]) {
int
inlen
,
outlen
;
int
i
;
av_log_set_level
(
AV_LOG_DEBUG
);
lzo1x_999_compress
(
orig
,
s
,
comp
,
&
clen
,
tmp
);
if
(
comp_level
==
0
)
{
lzo1x_1_compress
(
orig
,
s
,
comp
,
&
clen
,
tmp
);
}
else
if
(
comp_level
==
11
)
{
lzo1x_1_11_compress
(
orig
,
s
,
comp
,
&
clen
,
tmp
);
}
else
if
(
comp_level
==
12
)
{
lzo1x_1_12_compress
(
orig
,
s
,
comp
,
&
clen
,
tmp
);
}
else
if
(
comp_level
==
15
)
{
lzo1x_1_15_compress
(
orig
,
s
,
comp
,
&
clen
,
tmp
);
}
else
lzo1x_999_compress
(
orig
,
s
,
comp
,
&
clen
,
tmp
);
for
(
i
=
0
;
i
<
300
;
i
++
)
{
START_TIMER
inlen
=
clen
;
outlen
=
MAXSZ
;
...
...
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