00001 /***************************************************************************** 00002 * encoder.c: dummy encoder plugin for vlc. 00003 ***************************************************************************** 00004 * Copyright (C) 2002 the VideoLAN team 00005 * $Id: encoder.c 11664 2005-07-09 06:17:09Z courmisch $ 00006 * 00007 * Authors: Gildas Bazin <[email protected]> 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. 00022 *****************************************************************************/ 00023 00024 /***************************************************************************** 00025 * Preamble 00026 *****************************************************************************/ 00027 #include <vlc/vlc.h> 00028 #include <vlc/decoder.h> 00029 00030 /***************************************************************************** 00031 * Local prototypes 00032 *****************************************************************************/ 00033 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict ); 00034 static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf ); 00035 00036 /***************************************************************************** 00037 * OpenDecoder: open the dummy encoder. 00038 *****************************************************************************/ 00039 int E_(OpenEncoder) ( vlc_object_t *p_this ) 00040 { 00041 encoder_t *p_enc = (encoder_t *)p_this; 00042 00043 p_enc->pf_encode_video = EncodeVideo; 00044 p_enc->pf_encode_audio = EncodeAudio; 00045 00046 return VLC_SUCCESS; 00047 } 00048 00049 /**************************************************************************** 00050 * EncodeVideo: the whole thing 00051 ****************************************************************************/ 00052 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict ) 00053 { 00054 return NULL; 00055 } 00056 00057 /**************************************************************************** 00058 * EncodeAudio: the whole thing 00059 ****************************************************************************/ 00060 static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_buf ) 00061 { 00062 return NULL; 00063 } 00064 00065 /***************************************************************************** 00066 * CloseDecoder: decoder destruction 00067 *****************************************************************************/ 00068 void E_(CloseEncoder) ( vlc_object_t *p_this ) 00069 { 00070 }