xine-lib  1.2.10
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 
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, const void *data);
76 void *vdr_video_init_plugin(xine_t *xine, const void *data);
77 void *vdr_audio_init_plugin(xine_t *xine, const void *data);
78 
79 
80 
81 #endif /* __COMBINED_VDR_H */
82 
spucc_do_init
static void spucc_do_init(spucc_decoder_t *this)
Definition: xine_cc_decoder.c:105
xine_s
Definition: xine_internal.h:80
buf_element_s::size
int32_t size
Definition: buffer.h:343
input_plugin_s::input_class
input_class_t * input_class
Definition: input_plugin.h:225
spucc_font_change
static void spucc_font_change(void *this_gen, xine_cfg_entry_t *value)
Definition: xine_cc_decoder.c:155
xine_stream_s
Definition: xine_internal.h:123
vdr_set_video_window_data_s::y
int32_t y
Definition: combined_vdr.h:28
vdr_audio_init_plugin
void * vdr_audio_init_plugin(xine_t *xine, const void *data)
Definition: post_vdr_audio.c:76
PLUGIN_SPU_DECODER
#define PLUGIN_SPU_DECODER
Definition: xine_plugin.h:34
xineutils.h
XINE_POST_TYPE_AUDIO_FILTER
#define XINE_POST_TYPE_AUDIO_FILTER
Definition: xine.h:818
cc_decoder_s
Definition: cc_decoder.c:417
spucc_decoder_s
Definition: xine_cc_decoder.c:46
post_info_t
Definition: xine_plugin.h:83
spucc_num_change
static void spucc_num_change(void *this_gen, xine_cfg_entry_t *value)
Definition: xine_cc_decoder.c:174
spucc_cfg_enable_change
static void spucc_cfg_enable_change(void *this_gen, xine_cfg_entry_t *value)
Definition: xine_cc_decoder.c:127
XINE_POST_TYPE_VIDEO_FILTER
#define XINE_POST_TYPE_VIDEO_FILTER
Definition: xine.h:815
xine_cfg_entry_s::str_value
char * str_value
Definition: xine.h:1646
spucc_decoder_s::cc_open
int cc_open
Definition: xine_cc_decoder.c:54
xine_event_t
Definition: xine.h:1923
spucc_cfg_scheme_change
static void spucc_cfg_scheme_change(void *this_gen, xine_cfg_entry_t *value)
Definition: xine_cc_decoder.c:141
cc_decoder_open
cc_decoder_t * cc_decoder_open(cc_state_t *cc_state)
Definition: cc_decoder.c:1488
supported_types
static const uint32_t supported_types[]
Definition: xine_cc_decoder.c:357
cc_schemes
static const char *const cc_schemes[2+1]
Definition: xine_cc_decoder.c:40
vdr_set_video_window_data_s::h
int32_t h
Definition: combined_vdr.h:30
spudec_info
static const decoder_info_t spudec_info
Definition: xine_cc_decoder.c:359
config_values_s::register_enum
int(* register_enum)(config_values_t *self, const char *key, int def_value, char **values, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data)
Definition: configfile.h:135
xine_event_new_queue
xine_event_queue_t * xine_event_new_queue(xine_stream_t *s)
Definition: events.c:330
vdr_set_video_window_data_s::h_ref
int32_t h_ref
Definition: combined_vdr.h:32
vdr_frame_size_changed_data_s::r
double r
Definition: combined_vdr.h:43
spudec_discontinuity
static void spudec_discontinuity(spu_decoder_t *this_gen)
Definition: xine_cc_decoder.c:299
init_spu_decoder_plugin
static void * init_spu_decoder_plugin(xine_t *xine, const void *data)
Definition: xine_cc_decoder.c:336
cc_config_s::config_version
int config_version
Definition: cc_decoder.h:45
spucc_decoder_s::video_width
int video_width
Definition: xine_cc_decoder.c:62
spudec_decode_data
static void spudec_decode_data(spu_decoder_t *this_gen, buf_element_t *buf)
Definition: xine_cc_decoder.c:255
xine_event_get
xine_event_t * xine_event_get(xine_event_queue_t *queue)
Definition: events.c:56
spu_decoder_s
Definition: spu_decoder.h:74
spucc_decoder_t
struct spucc_decoder_s spucc_decoder_t
cc_config_s::cc_enabled
int cc_enabled
Definition: cc_decoder.h:37
vdr_set_video_window_data_s::w
int32_t w
Definition: combined_vdr.h:29
combined_vdr.h
spucc_decoder_s::config_version
int config_version
Definition: xine_cc_decoder.c:59
config_values_s::register_string
char *(* register_string)(config_values_t *self, const char *key, const char *def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data)
Definition: configfile.h:106
PLUGIN_INPUT
#define PLUGIN_INPUT
Definition: xine_plugin.h:30
spudec_open_plugin
static spu_decoder_t * spudec_open_plugin(spu_decoder_class_t *class, xine_stream_t *stream)
Definition: xine_cc_decoder.c:312
cc_renderer_open
cc_renderer_t * cc_renderer_open(osd_renderer_t *osd_renderer, metronom_t *metronom, cc_state_t *cc_state, int video_width, int video_height)
Definition: cc_decoder.c:959
config_values_s::register_num
int(* register_num)(config_values_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data)
Definition: configfile.h:145
vdr_input_init_plugin
void * vdr_input_init_plugin(xine_t *xine, const void *data)
Definition: input_vdr.c:2725
cc_state_s
Definition: cc_decoder.h:53
cc_renderer_close
void cc_renderer_close(cc_renderer_t *this_obj)
Definition: cc_decoder.c:980
vdr_frame_size_changed_data_s::h
int32_t h
Definition: combined_vdr.h:42
spucc_update_intrinsics
static void spucc_update_intrinsics(spucc_decoder_t *this)
Definition: xine_cc_decoder.c:82
xine_format_change_data_t::height
int height
Definition: xine.h:1990
cc_config_s
Definition: cc_decoder.h:36
vdr_frame_size_changed_data_s
Definition: combined_vdr.h:38
buf_element_s::pts
int64_t pts
Definition: buffer.h:345
cc_config_s::font
char font[256]
Definition: cc_decoder.h:38
vdr_set_video_window_data_s::w_ref
int32_t w_ref
Definition: combined_vdr.h:31
NULL
NULL
Definition: xine_plugin.c:78
vdr_select_audio_data_s::channels
uint8_t channels
Definition: combined_vdr.h:50
xine_event_dispose_queue
void xine_event_dispose_queue(xine_event_queue_t *queue)
Definition: events.c:379
vdr_frame_size_changed_data_t
struct vdr_frame_size_changed_data_s vdr_frame_size_changed_data_t
NUM_CC_PALETTES
#define NUM_CC_PALETTES
Definition: cc_decoder.h:33
copy_str
static void copy_str(char *d, const char *s, size_t maxbytes)
Definition: xine_cc_decoder.c:73
xine_stream_s::input_plugin
input_plugin_t * input_plugin
Definition: xine_internal.h:132
decoder_info_t
Definition: xine_plugin.h:77
xine_s::config
config_values_t * config
Definition: xine_internal.h:82
cc_config_s::cc_scheme
int cc_scheme
Definition: cc_decoder.h:43
cc_config_s::center
int center
Definition: cc_decoder.h:41
width
unsigned int width
Definition: gfontrle.c:4
XINE_VERSION_CODE
#define XINE_VERSION_CODE
Definition: xine_internal.h:57
xine_event_t::data
void * data
Definition: xine.h:1926
_
#define _(String)
Definition: vcdplayer.h:39
spucc_notify_frame_change
static void spucc_notify_frame_change(spucc_decoder_t *this, int width, int height)
Definition: xine_cc_decoder.c:241
config_values_s
Definition: configfile.h:83
decoder_info_t::supported_types
const uint32_t * supported_types
Definition: xine_plugin.h:78
cc_config_s::italic_font
char italic_font[256]
Definition: cc_decoder.h:40
BUF_SPU_CC
#define BUF_SPU_CC
Definition: buffer.h:288
xine_event_queue_s
Definition: xine_internal.h:107
spucc_decoder_s::cc_state
cc_state_t cc_state
Definition: xine_cc_decoder.c:57
spu_decoder_class_s
Definition: spu_decoder.h:42
EXPORTED
const plugin_info_t xine_plugin_info[] EXPORTED
Definition: xine_cc_decoder.c:364
vdr_select_audio_data_t
struct vdr_select_audio_data_s vdr_select_audio_data_t
buf_element_s
Definition: buffer.h:337
cc_config_s::font_size
int font_size
Definition: cc_decoder.h:39
spucc_class_s
Definition: cc_decoder.h:48
buffer.h
post.h
decode_cc
void decode_cc(cc_decoder_t *this, uint8_t *buffer, uint32_t buf_len, int64_t pts)
Definition: cc_decoder.c:1375
input_class_s::identifier
const char * identifier
short human readable identifier for this plugin class
Definition: input_plugin.h:49
default_spu_decoder_class_dispose
#define default_spu_decoder_class_dispose
Definition: spu_decoder.h:72
spucc_register_cfg_vars
static void spucc_register_cfg_vars(spucc_class_t *this, config_values_t *xine_cfg)
Definition: xine_cc_decoder.c:193
height
unsigned int height
Definition: gfontrle.c:5
xine_cfg_entry_s
Definition: xine.h:1632
xine_cfg_entry_s::num_value
int num_value
Definition: xine.h:1653
vdr_frame_size_changed_data_s::w
int32_t w
Definition: combined_vdr.h:41
xine_format_change_data_t::width
int width
Definition: xine.h:1989
vdr_set_video_window_data_s
Definition: combined_vdr.h:26
vdr_frame_size_changed_data_s::y
int32_t y
Definition: combined_vdr.h:40
cc_decoder_close
void cc_decoder_close(cc_decoder_t *this)
Definition: cc_decoder.c:1517
vdr_select_audio_data_s
Definition: combined_vdr.h:49
vdr_is_vdr_stream
static int vdr_is_vdr_stream(xine_stream_t *stream)
Definition: combined_vdr.h:56
buf_element_s::content
unsigned char * content
Definition: buffer.h:341
spudec_reset
static void spudec_reset(spu_decoder_t *this_gen)
Definition: xine_cc_decoder.c:295
PLUGIN_NONE
#define PLUGIN_NONE
Definition: xine_plugin.h:29
spucc_do_close
static void spucc_do_close(spucc_decoder_t *this)
Definition: xine_cc_decoder.c:93
EXPORTED
const plugin_info_t xine_plugin_info[] EXPORTED
Definition: combined_vdr.c:39
xine_cfg_entry_s::key
const char * key
Definition: xine.h:1633
xine_internal.h
spucc_decoder_s::ccdec
cc_decoder_t * ccdec
Definition: xine_cc_decoder.c:52
spucc_decoder_s::stream
xine_stream_t * stream
Definition: xine_cc_decoder.c:49
PLUGIN_POST
#define PLUGIN_POST
Definition: xine_plugin.h:37
cc_renderer_update_cfg
void cc_renderer_update_cfg(cc_renderer_t *this_obj, int video_width, int video_height)
Definition: cc_decoder.c:991
buf_element_s::decoder_flags
uint32_t decoder_flags
Definition: buffer.h:350
vdr_video_init_plugin
void * vdr_video_init_plugin(xine_t *xine, const void *data)
Definition: post_vdr_video.c:99
config.h
spucc_decoder_s::spu_decoder
spu_decoder_t spu_decoder
Definition: xine_cc_decoder.c:47
xine_event_t::type
int type
Definition: xine.h:1929
spudec_dispose
static void spudec_dispose(spu_decoder_t *this_gen)
Definition: xine_cc_decoder.c:303
vdr_audio_special_info
static const post_info_t vdr_audio_special_info
Definition: combined_vdr.c:36
spucc_decoder_s::queue
xine_event_queue_t * queue
Definition: xine_cc_decoder.c:66
vdr_set_video_window_data_t
struct vdr_set_video_window_data_s vdr_set_video_window_data_t
xine_format_change_data_t
Definition: xine.h:1988
vdr_video_special_info
static const post_info_t vdr_video_special_info
Definition: combined_vdr.c:35
vdr_frame_size_changed_data_s::x
int32_t x
Definition: combined_vdr.h:39
xine_event_free
void xine_event_free(xine_event_t *event)
Definition: events.c:175
vdr_set_video_window_data_s::x
int32_t x
Definition: combined_vdr.h:27
cc_decoder.h
plugin_info_t
Definition: xine_plugin.h:55
CC_FONT_MAX
#define CC_FONT_MAX
Definition: cc_decoder.h:34
spucc_decoder_s::video_height
int video_height
Definition: xine_cc_decoder.c:63
N_
#define N_(String)
Definition: xineintl.h:47
XINE_EVENT_FRAME_FORMAT_CHANGE
#define XINE_EVENT_FRAME_FORMAT_CHANGE
Definition: xine.h:1818
BUF_FLAG_PREVIEW
#define BUF_FLAG_PREVIEW
Definition: buffer.h:380
config_values_s::register_bool
int(* register_bool)(config_values_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data)
Definition: configfile.h:154