Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
f58f600c
Commit
f58f600c
authored
12 years ago
by
Paul B Mahol
Browse files
Options
Downloads
Patches
Plain Diff
lclenc: make compression level user selectable
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
25b7aa98
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libavcodec/lclenc.c
+3
-2
3 additions, 2 deletions
libavcodec/lclenc.c
tests/ref/fate/vsynth1-zlib
+1
-1
1 addition, 1 deletion
tests/ref/fate/vsynth1-zlib
tests/ref/fate/vsynth2-zlib
+1
-1
1 addition, 1 deletion
tests/ref/fate/vsynth2-zlib
with
5 additions
and
4 deletions
libavcodec/lclenc.c
+
3
−
2
View file @
f58f600c
...
@@ -140,8 +140,9 @@ static av_cold int encode_init(AVCodecContext *avctx)
...
@@ -140,8 +140,9 @@ static av_cold int encode_init(AVCodecContext *avctx)
avctx
->
extradata
=
av_mallocz
(
8
);
avctx
->
extradata
=
av_mallocz
(
8
);
avctx
->
coded_frame
=
&
c
->
pic
;
avctx
->
coded_frame
=
&
c
->
pic
;
// Will be user settable someday
c
->
compression
=
avctx
->
compression_level
==
FF_COMPRESSION_DEFAULT
?
c
->
compression
=
6
;
COMP_ZLIB_NORMAL
:
av_clip
(
avctx
->
compression_level
,
0
,
9
);
c
->
flags
=
0
;
c
->
flags
=
0
;
c
->
imgtype
=
IMGTYPE_RGB24
;
c
->
imgtype
=
IMGTYPE_RGB24
;
avctx
->
bits_per_coded_sample
=
24
;
avctx
->
bits_per_coded_sample
=
24
;
...
...
This diff is collapsed.
Click to expand it.
tests/ref/fate/vsynth1-zlib
+
1
−
1
View file @
f58f600c
1aa8c91588a9672b6adb63b98156a104
*tests/data/fate/vsynth1-zlib.avi
fd52fff386f172bb3aef97761b99331c
*tests/data/fate/vsynth1-zlib.avi
12108632 tests/data/fate/vsynth1-zlib.avi
12108632 tests/data/fate/vsynth1-zlib.avi
93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-zlib.out.rawvideo
93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-zlib.out.rawvideo
stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200
stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200
This diff is collapsed.
Click to expand it.
tests/ref/fate/vsynth2-zlib
+
1
−
1
View file @
f58f600c
fa60eac1bfbdf38c773d11d716eb6465
*tests/data/fate/vsynth2-zlib.avi
d0e240b5241c3e0a5f813644d3dc5d9f
*tests/data/fate/vsynth2-zlib.avi
12517176 tests/data/fate/vsynth2-zlib.avi
12517176 tests/data/fate/vsynth2-zlib.avi
98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth2-zlib.out.rawvideo
98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth2-zlib.out.rawvideo
stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200
stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment