]> git.sesse.net Git - vlc/blob - modules/misc/dummy/encoder.c
More cleanup
[vlc] / modules / misc / dummy / encoder.c
1 /*****************************************************************************
2  * encoder.c: dummy encoder plugin for vlc.
3  *****************************************************************************
4  * Copyright (C) 2002 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Gildas Bazin <gbazin@netcourrier.com>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 /*****************************************************************************
25  * Preamble
26  *****************************************************************************/
27 #include <vlc/vlc.h>
28 #include <vlc_codec.h>
29 #include "dummy.h"
30
31 /*****************************************************************************
32  * Local prototypes
33  *****************************************************************************/
34 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict );
35 static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf );
36
37 /*****************************************************************************
38  * OpenDecoder: open the dummy encoder.
39  *****************************************************************************/
40 int E_(OpenEncoder) ( vlc_object_t *p_this )
41 {
42     encoder_t *p_enc = (encoder_t *)p_this;
43
44     p_enc->pf_encode_video = EncodeVideo;
45     p_enc->pf_encode_audio = EncodeAudio;
46
47     return VLC_SUCCESS;
48 }
49
50 /****************************************************************************
51  * EncodeVideo: the whole thing
52  ****************************************************************************/
53 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
54 {
55     return NULL;
56 }
57
58 /****************************************************************************
59  * EncodeAudio: the whole thing
60  ****************************************************************************/
61 static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf )
62 {
63     return NULL;
64 }
65
66 /*****************************************************************************
67  * CloseDecoder: decoder destruction
68  *****************************************************************************/
69 void E_(CloseEncoder) ( vlc_object_t *p_this )
70 {
71 }