1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2008 Laurent Aimar
7 * Authors: Laurent Aimar < fenrir _AT_ videolan _DOT_ org >
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__)
25 # error This header file can only be included from LibVLC.
28 #ifndef _INPUT_RESOURCE_H
29 #define _INPUT_RESOURCE_H 1
31 #include <vlc_common.h>
34 * This function set the associated input.
36 void input_resource_SetInput( input_resource_t *, input_thread_t * );
39 * This function handles sout request.
41 sout_instance_t *input_resource_RequestSout( input_resource_t *, sout_instance_t *, const char *psz_sout );
44 * This function handles aout request.
46 aout_instance_t *input_resource_RequestAout( input_resource_t *, aout_instance_t * );
49 * This function return the current aout if any.
51 * You must call vlc_object_release on the value returned (if non NULL).
53 aout_instance_t *input_resource_HoldAout( input_resource_t *p_resource );
56 * This function handles vout request.
58 vout_thread_t *input_resource_RequestVout( input_resource_t *, vout_thread_t *, video_format_t *, unsigned dpb_size, bool b_recycle );
61 * This function return one of the current vout if any.
63 * You must call vlc_object_release on the value returned (if non NULL).
65 vout_thread_t *input_resource_HoldVout( input_resource_t * );
68 * This function return all current vouts if any.
70 * You must call vlc_object_release on all values returned (if non NULL).
72 void input_resource_HoldVouts( input_resource_t *, vout_thread_t ***, size_t * );
75 * This function releases all resources (object).
77 void input_resource_Terminate( input_resource_t * );
80 * This function holds the input_resource_t itself
82 input_resource_t *input_resource_Hold( input_resource_t * );