1 /*****************************************************************************
2 * encoder.c: dummy encoder plugin for vlc.
3 *****************************************************************************
4 * Copyright (C) 2002 the VideoLAN team
7 * Authors: Gildas Bazin <gbazin@netcourrier.com>
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.
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.
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 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
31 #include <vlc_common.h>
32 #include <vlc_codec.h>
35 /*****************************************************************************
37 *****************************************************************************/
38 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict );
39 static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf );
41 /*****************************************************************************
42 * OpenDecoder: open the dummy encoder.
43 *****************************************************************************/
44 int OpenEncoder ( vlc_object_t *p_this )
46 encoder_t *p_enc = (encoder_t *)p_this;
48 p_enc->pf_encode_video = EncodeVideo;
49 p_enc->pf_encode_audio = EncodeAudio;
54 /****************************************************************************
55 * EncodeVideo: the whole thing
56 ****************************************************************************/
57 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
59 VLC_UNUSED(p_enc); VLC_UNUSED(p_pict);
63 /****************************************************************************
64 * EncodeAudio: the whole thing
65 ****************************************************************************/
66 static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf )
68 VLC_UNUSED(p_enc); VLC_UNUSED(p_buf);
72 /*****************************************************************************
73 * CloseDecoder: decoder destruction
74 *****************************************************************************/
75 void CloseEncoder ( vlc_object_t *p_this )