stream_output.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * stream_output.h : internal stream output
00003  *****************************************************************************
00004  * Copyright (C) 2002-2005 VLC authors and VideoLAN
00005  * $Id: 1607927847606e0ce44f71de15451756ba32e199 $
00006  *
00007  * Authors: Christophe Massiot <massiot@via.ecp.fr>
00008  *          Laurent Aimar <fenrir@via.ecp.fr>
00009  *          Eric Petit <titer@videolan.org>
00010  *          Jean-Paul Saman <jpsaman #_at_# m2x.nl>
00011  *
00012  * This program is free software; you can redistribute it and/or modify it
00013  * under the terms of the GNU Lesser General Public License as published by
00014  * the Free Software Foundation; either version 2.1 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00020  * GNU Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public License
00023  * along with this program; if not, write to the Free Software Foundation,
00024  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00025  ***************************************************************************/
00026 
00027 #ifndef VLC_SRC_STREAMOUT_H
00028 # define VLC_SRC_STREAMOUT_H 1
00029 
00030 # include <vlc_sout.h>
00031 # include <vlc_network.h>
00032 
00033 /****************************************************************************
00034  * sout_packetizer_input_t: p_sout <-> p_packetizer
00035  ****************************************************************************/
00036 struct sout_packetizer_input_t
00037 {
00038     sout_instance_t     *p_sout;
00039 
00040     es_format_t         *p_fmt;
00041 
00042     sout_stream_id_t    *id;
00043 };
00044 
00045 sout_instance_t *sout_NewInstance( vlc_object_t *, const char * );
00046 #define sout_NewInstance(a,b) sout_NewInstance(VLC_OBJECT(a),b)
00047 void sout_DeleteInstance( sout_instance_t * );
00048 
00049 sout_packetizer_input_t *sout_InputNew( sout_instance_t *, es_format_t * );
00050 int sout_InputDelete( sout_packetizer_input_t * );
00051 int sout_InputSendBuffer( sout_packetizer_input_t *, block_t* );
00052 
00053 /* Announce system */
00054 
00055 struct session_descriptor_t
00056 {
00057     struct sockaddr_storage orig;
00058     socklen_t origlen;
00059     struct sockaddr_storage addr;
00060     socklen_t addrlen;
00061 
00062     char *psz_sdp;
00063     bool b_ssm;
00064 };
00065 
00066 struct sap_handler_t *SAP_Create (vlc_object_t *);
00067 void SAP_Destroy (struct sap_handler_t *);
00068 int SAP_Add (struct sap_handler_t *, session_descriptor_t *);
00069 void SAP_Del (struct sap_handler_t *, const session_descriptor_t *);
00070 
00071 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines