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
e42b9bc8
Commit
e42b9bc8
authored
May 12, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nvenc: fix the rc option definitions
parent
65dc7ca4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
nvenc_h264.c
libavcodec/nvenc_h264.c
+1
-1
nvenc_hevc.c
libavcodec/nvenc_hevc.c
+1
-1
No files found.
libavcodec/nvenc_h264.c
View file @
e42b9bc8
...
...
@@ -58,7 +58,7 @@ static const AVOption options[] = {
{
"4.2"
,
""
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
NV_ENC_LEVEL_H264_42
},
0
,
0
,
VE
,
"level"
},
{
"5.0"
,
""
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
NV_ENC_LEVEL_H264_5
},
0
,
0
,
VE
,
"level"
},
{
"5.1"
,
""
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
NV_ENC_LEVEL_H264_51
},
0
,
0
,
VE
,
"level"
},
{
"rc"
,
"Override the preset rate-control"
,
OFFSET
(
rc
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
0
,
VE
},
{
"rc"
,
"Override the preset rate-control"
,
OFFSET
(
rc
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
INT_MAX
,
VE
,
"rc"
},
{
"constqp"
,
"Constant QP mode"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
NV_ENC_PARAMS_RC_CONSTQP
},
0
,
0
,
VE
,
"rc"
},
{
"vbr"
,
"Variable bitrate mode"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
NV_ENC_PARAMS_RC_VBR
},
0
,
0
,
VE
,
"rc"
},
{
"cbr"
,
"Constant bitrate mode"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
NV_ENC_PARAMS_RC_CBR
},
0
,
0
,
VE
,
"rc"
},
...
...
libavcodec/nvenc_hevc.c
View file @
e42b9bc8
...
...
@@ -56,7 +56,7 @@ static const AVOption options[] = {
{
"tier"
,
"Set the encoding tier"
,
OFFSET
(
tier
),
AV_OPT_TYPE_INT
,
{
.
i64
=
NV_ENC_TIER_HEVC_MAIN
},
NV_ENC_TIER_HEVC_MAIN
,
NV_ENC_TIER_HEVC_HIGH
,
VE
,
"tier"
},
{
"main"
,
""
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
NV_ENC_TIER_HEVC_MAIN
},
0
,
0
,
VE
,
"tier"
},
{
"high"
,
""
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
NV_ENC_TIER_HEVC_HIGH
},
0
,
0
,
VE
,
"tier"
},
{
"rc"
,
"Override the preset rate-control"
,
OFFSET
(
rc
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
0
,
VE
,
"rc"
},
{
"rc"
,
"Override the preset rate-control"
,
OFFSET
(
rc
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
INT_MAX
,
VE
,
"rc"
},
{
"constqp"
,
"Constant QP mode"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
NV_ENC_PARAMS_RC_CONSTQP
},
0
,
0
,
VE
,
"rc"
},
{
"vbr"
,
"Variable bitrate mode"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
NV_ENC_PARAMS_RC_VBR
},
0
,
0
,
VE
,
"rc"
},
{
"cbr"
,
"Constant bitrate mode"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
NV_ENC_PARAMS_RC_CBR
},
0
,
0
,
VE
,
"rc"
},
...
...
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