xine-lib  1.2.9
combined_vdr.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2000-2007 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 
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 
35 
36 
37 
39  int32_t x;
40  int32_t y;
41  int32_t w;
42  int32_t h;
43  double r;
44 
46 
47 
48 
49 typedef struct vdr_select_audio_data_s {
50  uint8_t channels;
51 
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 */
75 void *vdr_input_init_plugin(xine_t *xine, void *data);
76 void *vdr_video_init_plugin(xine_t *xine, void *data);
77 void *vdr_audio_init_plugin(xine_t *xine, void *data);
78 
79 
80 
81 #endif /* __COMBINED_VDR_H */
82 
input_plugin_t * input_plugin
Definition: xine_internal.h:219
int32_t w
Definition: combined_vdr.h:29
struct vdr_set_video_window_data_s vdr_set_video_window_data_t
input_class_t * input_class
Definition: input_plugin.h:226
const char * identifier
short human readable identifier for this plugin class
Definition: input_plugin.h:51
double r
Definition: combined_vdr.h:43
Definition: combined_vdr.h:49
int32_t x
Definition: combined_vdr.h:27
struct vdr_frame_size_changed_data_s vdr_frame_size_changed_data_t
int32_t h
Definition: combined_vdr.h:42
void * vdr_audio_init_plugin(xine_t *xine, void *data)
Definition: post_vdr_audio.c:72
int32_t w_ref
Definition: combined_vdr.h:31
int32_t h
Definition: combined_vdr.h:30
Definition: xine_internal.h:210
int32_t h_ref
Definition: combined_vdr.h:32
void * vdr_input_init_plugin(xine_t *xine, void *data)
Definition: input_vdr.c:2776
int32_t w
Definition: combined_vdr.h:41
Definition: combined_vdr.h:26
struct vdr_select_audio_data_s vdr_select_audio_data_t
Definition: xine_internal.h:81
int32_t y
Definition: combined_vdr.h:40
int32_t y
Definition: combined_vdr.h:28
int32_t x
Definition: combined_vdr.h:39
static int vdr_is_vdr_stream(xine_stream_t *stream)
Definition: combined_vdr.h:56
Definition: combined_vdr.h:38
uint8_t channels
Definition: combined_vdr.h:50
void * vdr_video_init_plugin(xine_t *xine, void *data)
Definition: post_vdr_video.c:95