1 /*****************************************************************************
2 * encoder.c: dummy encoder plugin for vlc.
3 *****************************************************************************
4 * Copyright (C) 2002 VideoLAN
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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
28 #include <vlc/decoder.h>
30 /*****************************************************************************
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 );
36 /*****************************************************************************
37 * OpenDecoder: open the dummy encoder.
38 *****************************************************************************/
39 int E_(OpenEncoder) ( vlc_object_t *p_this )
41 encoder_t *p_enc = (encoder_t *)p_this;
43 p_enc->pf_encode_video = EncodeVideo;
44 p_enc->pf_encode_audio = EncodeAudio;
49 /****************************************************************************
50 * EncodeVideo: the whole thing
51 ****************************************************************************/
52 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
57 /****************************************************************************
58 * EncodeAudio: the whole thing
59 ****************************************************************************/
60 static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf )
65 /*****************************************************************************
66 * CloseDecoder: decoder destruction
67 *****************************************************************************/
68 void E_(CloseEncoder) ( vlc_object_t *p_this )