~ubuntu-branches/ubuntu/maverick/vlc/maverick

« back to all changes in this revision

Viewing changes to src/stream_output/stream_output.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-09-17 21:56:14 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20080917215614-tj0vx8xzd57e52t8
Tags: 0.9.2-1ubuntu1
* New Upstream Release, exception granted by
    - dktrkranz, norsetto, Hobbsee (via irc). LP: #270404

Changes done in ubuntu:

* add libxul-dev to build-depends
* make sure that vlc is build against libxul in configure. This doesn't
  change anything in the package, but makes it more robust if building
  in an 'unclean' chroot or when modifying the package.
* debian/control: make Vcs-* fields point to the motumedia branch
* add libx264-dev and libass-dev to build-depends
  LP: #210354, #199870
* actually enable libass support by passing --enable-libass to configure
* enable libdca: add libdca-dev to build depends and --enable-libdca
* install the x264 plugin.

Changes already in the pkg-multimedia branch in debian:

* don't install usr/share/vlc/mozilla in debian/mozilla-plugin-vlc.install  
* new upstream .desktop file now registers flash video mimetype LP: #261567
* add Xb-Npp-Applications to mozilla-plugin-vlc
* remove duplicate entries in debian/vlc-nox.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 * stream_output.h : internal stream output
 
3
 *****************************************************************************
 
4
 * Copyright (C) 2002-2005 the VideoLAN team
 
5
 * $Id: 7745a9ebf18c6cfa9919bbc63f0e945fa7336bfc $
 
6
 *
 
7
 * Authors: Christophe Massiot <massiot@via.ecp.fr>
 
8
 *          Laurent Aimar <fenrir@via.ecp.fr>
 
9
 *          Eric Petit <titer@videolan.org>
 
10
 *          Jean-Paul Saman <jpsaman #_at_# m2x.nl>
 
11
 *
 
12
 * This program is free software; you can redistribute it and/or modify
 
13
 * it under the terms of the GNU General Public License as published by
 
14
 * the Free Software Foundation; either version 2 of the License, or
 
15
 * (at your option) any later version.
 
16
 *
 
17
 * This program is distributed in the hope that it will be useful,
 
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
 * GNU General Public License for more details.
 
21
 *
 
22
 * You should have received a copy of the GNU General Public License
 
23
 * along with this program; if not, write to the Free Software
 
24
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 
25
 ***************************************************************************/
 
26
 
 
27
#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__)
 
28
# error This header file can only be included from LibVLC.
 
29
#endif
 
30
 
 
31
#ifndef VLC_SRC_STREAMOUT_H
 
32
# define VLC_SRC_STREAMOUT_H 1
 
33
 
 
34
# include <vlc_sout.h>
 
35
# include <vlc_network.h>
 
36
 
 
37
/****************************************************************************
 
38
 * sout_packetizer_input_t: p_sout <-> p_packetizer
 
39
 ****************************************************************************/
 
40
struct sout_packetizer_input_t
 
41
{
 
42
    sout_instance_t     *p_sout;
 
43
 
 
44
    es_format_t         *p_fmt;
 
45
 
 
46
    sout_stream_id_t    *id;
 
47
};
 
48
 
 
49
#define sout_NewInstance(a,b) __sout_NewInstance(VLC_OBJECT(a),b)
 
50
VLC_EXPORT( sout_instance_t *,  __sout_NewInstance,  ( vlc_object_t *, char * ) );
 
51
VLC_EXPORT( void,               sout_DeleteInstance, ( sout_instance_t * ) );
 
52
 
 
53
VLC_EXPORT( sout_packetizer_input_t *, sout_InputNew,( sout_instance_t *, es_format_t * ) );
 
54
VLC_EXPORT( int,                sout_InputDelete,      ( sout_packetizer_input_t * ) );
 
55
VLC_EXPORT( int,                sout_InputSendBuffer,  ( sout_packetizer_input_t *, block_t* ) );
 
56
 
 
57
/* Announce system */
 
58
 
 
59
/* The SAP handler, running in a separate thread */
 
60
struct sap_handler_t
 
61
{
 
62
    VLC_COMMON_MEMBERS /* needed to create a thread */
 
63
 
 
64
    sap_session_t **pp_sessions;
 
65
    sap_address_t **pp_addresses;
 
66
 
 
67
    bool b_control;
 
68
 
 
69
    int i_sessions;
 
70
    int i_addresses;
 
71
 
 
72
    int i_current_session;
 
73
 
 
74
    int (*pf_add)  ( sap_handler_t*, session_descriptor_t *);
 
75
    int (*pf_del)  ( sap_handler_t*, session_descriptor_t *);
 
76
 
 
77
    /* private data, not in p_sys as there is one kind of sap_handler_t */
 
78
};
 
79
 
 
80
struct session_descriptor_t
 
81
{
 
82
    struct sockaddr_storage orig;
 
83
    socklen_t origlen;
 
84
    struct sockaddr_storage addr;
 
85
    socklen_t addrlen;
 
86
 
 
87
    char *psz_sdp;
 
88
    bool b_ssm;
 
89
};
 
90
 
 
91
/* The main announce handler object */
 
92
struct announce_handler_t
 
93
{
 
94
    VLC_COMMON_MEMBERS
 
95
 
 
96
    sap_handler_t *p_sap;
 
97
};
 
98
 
 
99
int announce_HandlerDestroy( announce_handler_t * );
 
100
 
 
101
/* Release it with vlc_object_release() */
 
102
sap_handler_t *announce_SAPHandlerCreate( announce_handler_t *p_announce );
 
103
 
 
104
#endif