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
d84c2298
Commit
d84c2298
authored
Mar 23, 2017
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/nvenc: apply quantization factors to cqp
parent
7fb2a7af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
nvenc.c
libavcodec/nvenc.c
+5
-3
No files found.
libavcodec/nvenc.c
View file @
d84c2298
...
...
@@ -523,9 +523,11 @@ static av_cold void set_constqp(AVCodecContext *avctx)
rc
->
constQP
.
qpInterB
=
rc
->
constQP
.
qpInterP
;
}
}
else
if
(
ctx
->
cqp
>=
0
)
{
rc
->
constQP
.
qpInterP
=
ctx
->
cqp
;
rc
->
constQP
.
qpInterB
=
ctx
->
cqp
;
rc
->
constQP
.
qpIntra
=
ctx
->
cqp
;
rc
->
constQP
.
qpInterP
=
rc
->
constQP
.
qpInterB
=
rc
->
constQP
.
qpIntra
=
ctx
->
cqp
;
if
(
avctx
->
b_quant_factor
!=
0
.
0
)
rc
->
constQP
.
qpInterB
=
av_clip
(
ctx
->
cqp
*
fabs
(
avctx
->
b_quant_factor
)
+
avctx
->
b_quant_offset
+
0
.
5
,
0
,
51
);
if
(
avctx
->
i_quant_factor
!=
0
.
0
)
rc
->
constQP
.
qpIntra
=
av_clip
(
ctx
->
cqp
*
fabs
(
avctx
->
i_quant_factor
)
+
avctx
->
i_quant_offset
+
0
.
5
,
0
,
51
);
}
avctx
->
qmin
=
-
1
;
...
...
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