qml: Create MediaGroupDisplay
[vlc.git] / modules / codec / edummy.c
blob89ad5f6c2e23b101a6b26ca87af96a13bb8b6ed4
1 /*****************************************************************************
2 * edummy.c: dummy encoder plugin for vlc.
3 *****************************************************************************
4 * Copyright (C) 2002 VLC authors and VideoLAN
6 * Authors: Gildas Bazin <gbazin@netcourrier.com>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
23 /*****************************************************************************
24 * Preamble
25 *****************************************************************************/
26 #ifdef HAVE_CONFIG_H
27 # include "config.h"
28 #endif
30 #include <vlc_common.h>
31 #include <vlc_plugin.h>
32 #include <vlc_codec.h>
34 static int OpenEncoder( vlc_object_t * );
36 vlc_module_begin ()
37 set_shortname( N_("Dummy") )
38 set_description( N_("Dummy encoder") )
39 set_capability( "encoder", 0 )
40 set_callback( OpenEncoder )
41 add_shortcut( "dummy" )
42 vlc_module_end ()
45 /*****************************************************************************
46 * Local prototypes
47 *****************************************************************************/
48 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict );
49 static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_buf );
51 /*****************************************************************************
52 * OpenDecoder: open the dummy encoder.
53 *****************************************************************************/
54 static int OpenEncoder( vlc_object_t *p_this )
56 encoder_t *p_enc = (encoder_t *)p_this;
58 p_enc->pf_encode_video = EncodeVideo;
59 p_enc->pf_encode_audio = EncodeAudio;
61 return VLC_SUCCESS;
64 /****************************************************************************
65 * EncodeVideo: the whole thing
66 ****************************************************************************/
67 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
69 VLC_UNUSED(p_enc); VLC_UNUSED(p_pict);
70 return NULL;
73 /****************************************************************************
74 * EncodeAudio: the whole thing
75 ****************************************************************************/
76 static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_buf )
78 VLC_UNUSED(p_enc); VLC_UNUSED(p_buf);
79 return NULL;