VLC 4.0.0-dev
Loading...
Searching...
No Matches
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
36
37/**
38 * This function set the associated input.
39 */
41
42/**
43 * \return the current audio output if any.
44 * Use aout_Release() to drop the reference.
45 */
47
48/**
49 * This function creates or recycles an audio output.
50 */
52
53/**
54 * This function retains or destroys an audio output.
55 */
57
58/**
59 * This function handles sout request.
60 */
63
66 enum vlc_vout_order *order,
67 enum input_resource_vout_state *vout_state);
69 enum input_resource_vout_state *vout_state);
70
71/**
72 * This function returns one of the current vout if any.
73 *
74 * You must call vout_Release() on the value returned (if non NULL).
75 */
77
78/**
79 * This function returns the dummy vout. It will be the parent of the future
80 * main vout and can be used to pre-configure it. */
82
83/**
84 * This function returns all current vouts if any.
85 *
86 * You must call vout_Release() on all values returned (if non NULL).
87 */
89
91
92/**
93 * This function holds the input_resource_t itself
94 */
96
98
99#endif
vlc_vout_order
vout or spu_channel order
Definition vlc_vout.h:70
void input_resource_PutAout(input_resource_t *, audio_output_t *)
This function retains or destroys an audio output.
Definition resource.c:255
audio_output_t * input_resource_GetAout(input_resource_t *)
This function creates or recycles an audio output.
Definition resource.c:223
void input_resource_SetInput(input_resource_t *, input_thread_t *)
This function set the associated input.
Definition resource.c:348
void input_resource_PutVout(input_resource_t *, vout_thread_t *, enum input_resource_vout_state *vout_state)
Definition resource.c:400
sout_stream_t * input_resource_RequestSout(input_resource_t *, const char *)
This function handles sout request.
Definition resource.c:590
void input_resource_HoldVouts(input_resource_t *, vout_thread_t ***, size_t *)
This function returns all current vouts if any.
Definition resource.c:545
vout_thread_t * input_resource_HoldDummyVout(input_resource_t *)
This function returns the dummy vout.
Definition resource.c:540
void input_resource_StopFreeVout(input_resource_t *)
Definition resource.c:578
vout_thread_t * input_resource_HoldVout(input_resource_t *)
This function returns one of the current vout if any.
Definition resource.c:526
void input_resource_PutSout(input_resource_t *, sout_stream_t *)
Definition resource.c:628
vout_thread_t * input_resource_RequestVout(input_resource_t *, vlc_video_context *, const vout_configuration_t *, enum vlc_vout_order *order, enum input_resource_vout_state *vout_state)
Definition resource.c:451
input_resource_vout_state
Definition resource.h:31
@ INPUT_RESOURCE_VOUT_NOTCHANGED
Definition resource.h:32
@ INPUT_RESOURCE_VOUT_STOPPED
Definition resource.h:34
@ INPUT_RESOURCE_VOUT_STARTED
Definition resource.h:33
input_resource_t * input_resource_Hold(input_resource_t *)
This function holds the input_resource_t itself.
Definition resource.c:342
void input_resource_ResetAout(input_resource_t *)
Definition resource.c:289
audio_output_t * input_resource_HoldAout(input_resource_t *)
Definition resource.c:276
Audio output object.
Definition vlc_aout.h:155
Definition resource.c:58
Main structure representing an input thread.
Definition input_internal.h:42
Definition vlc_sout.h:274
Definition decoder_device.c:98
Vout configuration.
Definition vout_internal.h:36
Video output thread descriptor.
Definition vlc_vout.h:54
This file is a collection of common definitions and types.