xine-lib: xine-lib-1.2.12/src/vdr/combined_vdr.h Source File

xine-lib 1.2.12

combined_vdr.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2000-2018 the xine project
3 *
4 * This file is part of xine, a free video player.
5 *
6 * xine is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * xine is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 */
20
21#ifndef __COMBINED_VDR_H
22#define __COMBINED_VDR_H
23
24
25
26 typedef struct vdr_set_video_window_data_s {
27 int32_t x;
28 int32_t y;
29 int32_t w;
30 int32_t h;
31 int32_t w_ref;
32 int32_t h_ref;
33
34} vdr_set_video_window_data_t;
35
36
37
38 typedef struct vdr_frame_size_changed_data_s {
39 int32_t x;
40 int32_t y;
41 int32_t w;
42 int32_t h;
43 double r;
44
45} vdr_frame_size_changed_data_t;
46
47
48
49 typedef struct vdr_select_audio_data_s {
50 uint8_t channels;
51
52} vdr_select_audio_data_t;
53
54
55
56 inline static int vdr_is_vdr_stream(xine_stream_t *stream)
57{
58 if (!stream
59 || !stream->input_plugin
60 || !stream->input_plugin->input_class)
61 {
62 return 0;
63 }
64
65 if (stream->input_plugin->input_class->identifier &&
66 0 == strcmp(stream->input_plugin->input_class->identifier, "VDR"))
67 return 1;
68
69 return 0;
70}
71
72
73
74/* plugin class initialization function */
75void *vdr_input_init_plugin(xine_t *xine, const void *data);
76void *vdr_video_init_plugin(xine_t *xine, const void *data);
77void *vdr_audio_init_plugin(xine_t *xine, const void *data);
78
79
80
81#endif /* __COMBINED_VDR_H */
82
vdr_is_vdr_stream
static int vdr_is_vdr_stream(xine_stream_t *stream)
Definition: combined_vdr.h:56
vdr_set_video_window_data_t
struct vdr_set_video_window_data_s vdr_set_video_window_data_t
vdr_frame_size_changed_data_t
struct vdr_frame_size_changed_data_s vdr_frame_size_changed_data_t
vdr_video_init_plugin
void * vdr_video_init_plugin(xine_t *xine, const void *data)
Definition: post_vdr_video.c:99
vdr_audio_init_plugin
void * vdr_audio_init_plugin(xine_t *xine, const void *data)
Definition: post_vdr_audio.c:76
vdr_select_audio_data_t
struct vdr_select_audio_data_s vdr_select_audio_data_t
vdr_input_init_plugin
void * vdr_input_init_plugin(xine_t *xine, const void *data)
Definition: input_vdr.c:2812
input_class_s::identifier
const char * identifier
short human readable identifier for this plugin class
Definition: input_plugin.h:49
input_plugin_s::input_class
input_class_t * input_class
Definition: input_plugin.h:225
vdr_frame_size_changed_data_s
Definition: combined_vdr.h:38
vdr_frame_size_changed_data_s::x
int32_t x
Definition: combined_vdr.h:39
vdr_frame_size_changed_data_s::r
double r
Definition: combined_vdr.h:43
vdr_frame_size_changed_data_s::w
int32_t w
Definition: combined_vdr.h:41
vdr_frame_size_changed_data_s::h
int32_t h
Definition: combined_vdr.h:42
vdr_frame_size_changed_data_s::y
int32_t y
Definition: combined_vdr.h:40
vdr_select_audio_data_s
Definition: combined_vdr.h:49
vdr_select_audio_data_s::channels
uint8_t channels
Definition: combined_vdr.h:50
vdr_set_video_window_data_s
Definition: combined_vdr.h:26
vdr_set_video_window_data_s::h_ref
int32_t h_ref
Definition: combined_vdr.h:32
vdr_set_video_window_data_s::w_ref
int32_t w_ref
Definition: combined_vdr.h:31
vdr_set_video_window_data_s::h
int32_t h
Definition: combined_vdr.h:30
vdr_set_video_window_data_s::x
int32_t x
Definition: combined_vdr.h:27
vdr_set_video_window_data_s::y
int32_t y
Definition: combined_vdr.h:28
vdr_set_video_window_data_s::w
int32_t w
Definition: combined_vdr.h:29
xine_s
Definition: xine_internal.h:80
xine_stream_s
Definition: xine_internal.h:123
xine_stream_s::input_plugin
input_plugin_t * input_plugin
Definition: xine_internal.h:132