VLC  4.0.0-dev
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
resource.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * resource.h
3  *****************************************************************************
4  * Copyright (C) 2008 Laurent Aimar
5  *
6  * Authors: Laurent Aimar < fenrir _AT_ videolan _DOT_ org >
7  *
8  * This program is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this program; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21  *****************************************************************************/
22 
23 #ifndef LIBVLC_INPUT_RESOURCE_H
24 #define LIBVLC_INPUT_RESOURCE_H 1
25 
26 #include <vlc_common.h>
27 #include <vlc_mouse.h>
28 #include "../video_output/vout_internal.h"
29 
30 /**
31  * This function set the associated input.
32  */
34 
35 /**
36  * This function handles sout request.
37  */
39 
41  vout_thread_t *cfg_vout,
42  enum vlc_vout_order *order,
46 
47 /**
48  * This function returns one of the current vout if any.
49  *
50  * You must call vout_Release() on the value returned (if non NULL).
51  */
53 
54 /**
55  * This function returns the dummy vout. It will be the parent of the future
56  * main vout and can be used to pre-configure it. */
58 
59 /**
60  * This function returns all current vouts if any.
61  *
62  * You must call vout_Release() on all values returned (if non NULL).
63  */
65 
67 
68 /**
69  * This function holds the input_resource_t itself
70  */
72 
73 #endif
Definition: resource.c:47
vout_thread_t * input_resource_HoldVout(input_resource_t *)
This function returns one of the current vout if any.
Definition: resource.c:456
void input_resource_HoldVouts(input_resource_t *, vout_thread_t ***, size_t *)
This function returns all current vouts if any.
Definition: resource.c:474
This file is a collection of common definitions and types.
void input_resource_SetInput(input_resource_t *, input_thread_t *)
This function set the associated input.
Definition: resource.c:312
Definition: decoder_helpers.c:232
void input_resource_StopFreeVout(input_resource_t *)
Definition: resource.c:504
Video output thread descriptor.
Definition: vlc_vout.h:60
Decoder context struct.
Definition: vlc_codec.h:577
vout_thread_t * input_resource_GetVoutDecoderDevice(input_resource_t *, vout_thread_t *cfg_vout, enum vlc_vout_order *order, vlc_decoder_device **)
Definition: resource.c:366
void input_resource_PutVout(input_resource_t *, vout_thread_t *)
Definition: resource.c:358
vlc_vout_order
vout or spu_channel order
Definition: vlc_vout.h:78
Main structure representing an input thread.
Definition: input_internal.h:48
sout_instance_t * input_resource_RequestSout(input_resource_t *, sout_instance_t *, const char *psz_sout)
This function handles sout request.
Definition: resource.c:516
Stream output instance (FIXME: should be private to src/ to avoid invalid unsynchronized access) ...
Definition: vlc_sout.h:48
int input_resource_StartVout(input_resource_t *, vlc_video_context *, const vout_configuration_t *)
Definition: resource.c:432
input_resource_t * input_resource_Hold(input_resource_t *)
This function holds the input_resource_t itself.
Definition: resource.c:306
vout_thread_t * input_resource_HoldDummyVout(input_resource_t *)
This function returns the dummy vout.
Definition: resource.c:469
Vout configuration.
Definition: vout_internal.h:48