Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Lyndon Brown
VLC
Commits
40973305
"README.md" did not exist on "6a72fcb7903a894ac7d8c5447264f3f2af4c50fe"
Commit
40973305
authored
3 years ago
by
Lyndon Brown
Committed by
Hugo Beauzée-Luyssen
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
vpx: add choice list for option
parent
d9997a4f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/codec/vpx.c
+7
-4
7 additions, 4 deletions
modules/codec/vpx.c
with
7 additions
and
4 deletions
modules/codec/vpx.c
+
7
−
4
View file @
40973305
...
...
@@ -52,10 +52,12 @@ static void CloseEncoder(encoder_t *);
static
block_t
*
Encode
(
encoder_t
*
p_enc
,
picture_t
*
p_pict
);
#define QUALITY_MODE_TEXT N_("Quality mode")
#define QUALITY_MODE_LONGTEXT N_("Quality setting which will determine max encoding time\n" \
" - 0: Good quality\n"\
" - 1: Realtime\n"\
" - 2: Best quality")
#define QUALITY_MODE_LONGTEXT N_("Quality setting which will determine max encoding time.")
static
const
int
quality_values
[]
=
{
0
,
1
,
2
};
static
const
char
*
const
quality_desc
[]
=
{
N_
(
"Good"
),
N_
(
"Realtime"
),
N_
(
"Best"
),
};
#endif
/*****************************************************************************
...
...
@@ -78,6 +80,7 @@ vlc_module_begin ()
add_integer
(
ENC_CFG_PREFIX
"quality-mode"
,
VPX_DL_GOOD_QUALITY
,
QUALITY_MODE_TEXT
,
QUALITY_MODE_LONGTEXT
)
change_integer_range
(
0
,
2
)
change_integer_list
(
quality_values
,
quality_desc
);
#endif
vlc_module_end
()
...
...
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