Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
3399a26d
Commit
3399a26d
authored
May 14, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nvenc: allow setting the number of slices
Based on a patch by Agatha Hu <ahu@nvidia.com>
parent
10545f84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
nvenc.c
libavcodec/nvenc.c
+6
-0
No files found.
libavcodec/nvenc.c
View file @
3399a26d
...
...
@@ -618,6 +618,9 @@ static int nvenc_setup_h264_config(AVCodecContext *avctx)
h264
->
maxNumRefFrames
=
avctx
->
refs
;
h264
->
idrPeriod
=
cc
->
gopLength
;
h264
->
sliceMode
=
3
;
h264
->
sliceModeData
=
FFMAX
(
avctx
->
slices
,
1
);
if
(
ctx
->
flags
&
NVENC_LOSSLESS
)
h264
->
qpPrimeYZeroTransformBypassFlag
=
1
;
...
...
@@ -693,6 +696,9 @@ static int nvenc_setup_hevc_config(AVCodecContext *avctx)
cc
->
profileGUID
=
NV_ENC_HEVC_PROFILE_MAIN_GUID
;
avctx
->
profile
=
FF_PROFILE_HEVC_MAIN
;
hevc
->
sliceMode
=
3
;
hevc
->
sliceModeData
=
FFMAX
(
avctx
->
slices
,
1
);
if
(
ctx
->
level
)
{
hevc
->
level
=
ctx
->
level
;
}
else
{
...
...
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