Commit c55c4fb6 authored by Jean-Paul Saman's avatar Jean-Paul Saman

davinci: implement audio encoder (not tested)

parent 305d2ca1
......@@ -108,14 +108,20 @@ vlc_module_begin()
set_callbacks( OpenAudioDecoder, CloseAudioDecoder );
#ifdef ENABLE_SOUT
/* video encoder */
/* encoder */
add_submodule()
add_shortcut( "davinci" )
set_description( N_("DaVinci DSP video encoder" ) )
set_description( N_("DaVinci DSP encoder" ) )
set_capability( "encoder", 1337 )
set_section( N_("Encoding") , NULL )
set_callbacks( OpenVideoEncoder, CloseVideoEncoder )
set_callbacks( OpenEncoder, CloseEncoder )
/* encoder settings */
add_integer( ENC_CFG_PREFIX "quality", 0, NULL, ENC_QUALITY_TEXT,
ENC_QUALITY_LONGTEXT, true )
change_integer_range( 0, 3 )
/* video encoder settings */
add_integer( ENC_CFG_PREFIX "keyint", 0, NULL, ENC_KEYINT_TEXT,
ENC_KEYINT_LONGTEXT, false )
add_bool( ENC_CFG_PREFIX "interlace", false, NULL, ENC_INTERLACE_TEXT,
......@@ -125,9 +131,9 @@ vlc_module_begin()
change_integer_range( 0, 5 )
add_integer( ENC_CFG_PREFIX "tolerance", 0, NULL, ENC_VT_TEXT,
ENC_VT_LONGTEXT, true )
add_integer( ENC_CFG_PREFIX "quality", 0, NULL, ENC_QUALITY_TEXT,
ENC_QUALITY_LONGTEXT, true )
change_integer_range( 0, 3 )
/* audio encoder settings */
#endif
#if 0
/* video filter submodule */
......
......@@ -44,8 +44,8 @@ void CloseVideoDecoder( vlc_object_t * );
int OpenAudioDecoder( vlc_object_t * );
void CloseAudioDecoder( vlc_object_t * );
int OpenVideoEncoder( vlc_object_t * );
void CloseVideoEncoder( vlc_object_t * );
int OpenEncoder( vlc_object_t * );
void CloseEncoder( vlc_object_t * );
/*****************************************************************************
* Common stuff
......
This diff is collapsed.
......@@ -34,7 +34,8 @@
* Codec fourcc -> davinic_id mapping
*****************************************************************************/
/* Enable codecs by changing #undef in #define here below */
/* Enable codecs by changing #undef in #define here below
* NOTE: Make sure it matches the codec pack you are using. */
#undef DAVINCI_HAS_MPEG1_CODEC
#define DAVINCI_HAS_MPEG2_CODEC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment