Commit 5c385e6f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Move and split dummy encoder

parent 329be451
...@@ -112,6 +112,7 @@ $Id$ ...@@ -112,6 +112,7 @@ $Id$
* dvdnav: access module for DVDs with libdvdnav * dvdnav: access module for DVDs with libdvdnav
* dvdread: input module for accessing DVDs, uses libdvdread * dvdread: input module for accessing DVDs, uses libdvdread
* dynamicoverlay: subpicture filter using shared memory that can be written to by external applications * dynamicoverlay: subpicture filter using shared memory that can be written to by external applications
* edummy: dummy encoder
* egl: EGL video output * egl: EGL video output
* equalizer: a equalizer audio filter * equalizer: a equalizer audio filter
* erase: Logo erase video filter * erase: Logo erase video filter
......
...@@ -39,6 +39,7 @@ SOURCES_t140 = t140.c ...@@ -39,6 +39,7 @@ SOURCES_t140 = t140.c
SOURCES_crystalhd = crystalhd.c SOURCES_crystalhd = crystalhd.c
SOURCES_stl = stl.c SOURCES_stl = stl.c
SOURCES_ddummy = ddummy.c SOURCES_ddummy = ddummy.c
SOURCES_edummy = edummy.c
libvlc_LTLIBRARIES += \ libvlc_LTLIBRARIES += \
liba52_plugin.la \ liba52_plugin.la \
...@@ -51,6 +52,7 @@ libvlc_LTLIBRARIES += \ ...@@ -51,6 +52,7 @@ libvlc_LTLIBRARIES += \
libddummy_plugin.la \ libddummy_plugin.la \
libdts_plugin.la \ libdts_plugin.la \
libdvbsub_plugin.la \ libdvbsub_plugin.la \
libedummy_plugin.la \
liblpcm_plugin.la \ liblpcm_plugin.la \
libmpeg_audio_plugin.la \ libmpeg_audio_plugin.la \
librawvideo_plugin.la \ librawvideo_plugin.la \
......
...@@ -29,8 +29,20 @@ ...@@ -29,8 +29,20 @@
#endif #endif
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_codec.h> #include <vlc_codec.h>
#include "dummy.h"
static int OpenEncoder( vlc_object_t * );
static void CloseEncoder( vlc_object_t * );
vlc_module_begin ()
set_shortname( N_("Dummy") )
set_description( N_("Dummy encoder") )
set_capability( "encoder", 0 )
set_callbacks( OpenEncoder, CloseEncoder )
add_shortcut( "dummy" )
vlc_module_end ()
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
...@@ -41,7 +53,7 @@ static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf ); ...@@ -41,7 +53,7 @@ static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf );
/***************************************************************************** /*****************************************************************************
* OpenDecoder: open the dummy encoder. * OpenDecoder: open the dummy encoder.
*****************************************************************************/ *****************************************************************************/
int OpenEncoder ( vlc_object_t *p_this ) static int OpenEncoder( vlc_object_t *p_this )
{ {
encoder_t *p_enc = (encoder_t *)p_this; encoder_t *p_enc = (encoder_t *)p_this;
...@@ -72,7 +84,7 @@ static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf ) ...@@ -72,7 +84,7 @@ static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf )
/***************************************************************************** /*****************************************************************************
* CloseDecoder: decoder destruction * CloseDecoder: decoder destruction
*****************************************************************************/ *****************************************************************************/
void CloseEncoder ( vlc_object_t *p_this ) static void CloseEncoder( vlc_object_t *p_this )
{ {
VLC_UNUSED(p_this); VLC_UNUSED(p_this);
} }
...@@ -2,7 +2,6 @@ SOURCES_dummy = \ ...@@ -2,7 +2,6 @@ SOURCES_dummy = \
dummy.c \ dummy.c \
dummy.h \ dummy.h \
interface.c \ interface.c \
encoder.c \
renderer.c \ renderer.c \
$(NULL) $(NULL)
......
...@@ -58,10 +58,6 @@ vlc_module_begin () ...@@ -58,10 +58,6 @@ vlc_module_begin ()
add_category_hint( N_("Interface"), NULL, false ) add_category_hint( N_("Interface"), NULL, false )
add_bool( "dummy-quiet", false, QUIET_TEXT, QUIET_LONGTEXT, false ) add_bool( "dummy-quiet", false, QUIET_TEXT, QUIET_LONGTEXT, false )
#endif #endif
add_submodule ()
set_description( N_("Dummy encoder function") )
set_capability( "encoder", 0 )
set_callbacks( OpenEncoder, CloseEncoder )
add_submodule () add_submodule ()
set_description( N_("Dummy font renderer function") ) set_description( N_("Dummy font renderer function") )
set_capability( "text renderer", 1 ) set_capability( "text renderer", 1 )
......
...@@ -26,7 +26,4 @@ ...@@ -26,7 +26,4 @@
*****************************************************************************/ *****************************************************************************/
int OpenIntf ( vlc_object_t * ); int OpenIntf ( vlc_object_t * );
int OpenEncoder ( vlc_object_t * );
void CloseEncoder ( vlc_object_t * );
int OpenRenderer ( vlc_object_t * ); int OpenRenderer ( vlc_object_t * );
...@@ -352,6 +352,7 @@ modules/codec/dmo/dmo.c ...@@ -352,6 +352,7 @@ modules/codec/dmo/dmo.c
modules/codec/dmo/dmo.h modules/codec/dmo/dmo.h
modules/codec/dts.c modules/codec/dts.c
modules/codec/dvbsub.c modules/codec/dvbsub.c
modules/codec/edummy.c
modules/codec/faad.c modules/codec/faad.c
modules/codec/flac.c modules/codec/flac.c
modules/codec/fluidsynth.c modules/codec/fluidsynth.c
...@@ -911,7 +912,6 @@ modules/misc/audioscrobbler.c ...@@ -911,7 +912,6 @@ modules/misc/audioscrobbler.c
modules/misc/dhparams.h modules/misc/dhparams.h
modules/misc/dummy/dummy.c modules/misc/dummy/dummy.c
modules/misc/dummy/dummy.h modules/misc/dummy/dummy.h
modules/misc/dummy/encoder.c
modules/misc/dummy/interface.c modules/misc/dummy/interface.c
modules/misc/dummy/renderer.c modules/misc/dummy/renderer.c
modules/misc/gnutls.c modules/misc/gnutls.c
......
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