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
37fce84e
Commit
37fce84e
authored
Mar 19, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/libtheoraenc: clarify comment about global_quality to quality conversion
parent
b448c0a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
libtheoraenc.c
libavcodec/libtheoraenc.c
+5
-5
No files found.
libavcodec/libtheoraenc.c
View file @
37fce84e
...
...
@@ -207,10 +207,10 @@ static av_cold int encode_init(AVCodecContext* avc_context)
avcodec_get_chroma_sub_sample
(
avc_context
->
pix_fmt
,
&
h
->
uv_hshift
,
&
h
->
uv_vshift
);
if
(
avc_context
->
flags
&
CODEC_FLAG_QSCALE
)
{
/*
to be constant with the libvorbis implementation, clip global_quality to 0 - 10
Theora accepts a quality parameter p, which is:
* 0 <= p <=63
* an int value
/*
Clip global_quality in QP units to the [0 - 10] range
to be consistent with the libvorbis implementation.
Theora accepts a quality parameter which is an int value in
the [0 - 63] range.
*/
t_info
.
quality
=
av_clipf
(
avc_context
->
global_quality
/
(
float
)
FF_QP2LAMBDA
,
0
,
10
)
*
6
.
3
;
t_info
.
target_bitrate
=
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