Skip to content
Snippets Groups Projects
Commit 40973305 authored by Lyndon Brown's avatar Lyndon Brown Committed by Hugo Beauzée-Luyssen
Browse files

vpx: add choice list for option

parent d9997a4f
No related branches found
No related tags found
No related merge requests found
......@@ -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 ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment