]> git.sesse.net Git - vlc/blob - modules/misc/dummy/encoder.c
9c900b7d962bbe156c265f61835455618c68790c
[vlc] / modules / misc / dummy / encoder.c
1 /*****************************************************************************
2  * encoder.c: dummy encoder plugin for vlc.
3  *****************************************************************************
4  * Copyright (C) 2002 VideoLAN
5  * $Id: encoder.c,v 1.1 2003/11/16 21:28:26 gbazin Exp $
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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 /*****************************************************************************
25  * Preamble
26  *****************************************************************************/
27 #include <vlc/vlc.h>
28 #include <vlc/decoder.h>
29
30 /*****************************************************************************
31  * Local prototypes
32  *****************************************************************************/
33 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict );
34 static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf );
35
36 /*****************************************************************************
37  * OpenDecoder: open the dummy encoder.
38  *****************************************************************************/
39 int E_(OpenEncoder) ( vlc_object_t *p_this )
40 {
41     encoder_t *p_enc = (encoder_t *)p_this;
42
43     p_enc->pf_encode_video = EncodeVideo;
44     p_enc->pf_encode_audio = EncodeAudio;
45
46     return VLC_SUCCESS;
47 }
48
49 /****************************************************************************
50  * EncodeVideo: the whole thing
51  ****************************************************************************/
52 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
53 {
54     return NULL;
55 }
56
57 /****************************************************************************
58  * EncodeAudio: the whole thing
59  ****************************************************************************/
60 static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf )
61 {
62     return NULL;
63 }
64
65 /*****************************************************************************
66  * CloseDecoder: decoder destruction
67  *****************************************************************************/
68 void E_(CloseEncoder) ( vlc_object_t *p_this )
69 {
70 }