/*****************************************************************************
- * vlc_codec.h: codec related structures
+ * vlc_codec.h: Definition of the decoder and encoder structures
*****************************************************************************
- * Copyright (C) 1999-2003 VideoLAN (Centrale Réseaux) and its contributors
+ * Copyright (C) 1999-2003 the VideoLAN team
* $Id$
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+
+#if !defined( __LIBVLC__ )
+ #error You are not libvlc or one of its plugins. You cannot include this file
+#endif
+
#ifndef _VLC_CODEC_H
#define _VLC_CODEC_H 1
+#include <vlc_block.h>
+#include <vlc_es.h>
+
/**
* \file
* This file defines the structure and types used by decoders and encoders
int i_tolerance; /* Bitrate tolerance */
/* Encoder config */
- sout_cfg_t *p_cfg;
+ config_chain_t *p_cfg;
};
/**
* @}
*/
+VLC_EXPORT( input_attachment_t *, decoder_GetInputAttachment, ( decoder_t *, const char *psz_name ) );
+VLC_EXPORT( int, decoder_GetInputAttachments, ( decoder_t *p_dec, input_attachment_t ***ppp_attachment, int *pi_attachment ) );
+
+
#endif /* _VLC_CODEC_H */