Diffstat (limited to 'noncore/multimedia/opieplayer2/nullvideo.c') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/nullvideo.c | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/nullvideo.c b/noncore/multimedia/opieplayer2/nullvideo.c index 5224862..b8b8eb3 100644 --- a/noncore/multimedia/opieplayer2/nullvideo.c +++ b/noncore/multimedia/opieplayer2/nullvideo.c | |||
@@ -10,13 +10,15 @@ | |||
10 | 10 | ||
11 | typedef struct null_driver_s null_driver_t; | 11 | typedef struct null_driver_s null_driver_t; |
12 | 12 | ||
13 | struct null_driver_s { | 13 | struct null_driver_s { |
14 | vo_driver_t vo_driver; | 14 | vo_driver_t vo_driver; |
15 | uint32_t m_capabilities; | 15 | uint32_t m_capabilities; |
16 | 16 | int m_show_video; | |
17 | int m_video_fullscreen; | ||
18 | int m_is_scaling; | ||
17 | }; | 19 | }; |
18 | typedef struct opie_frame_s opie_frame_t; | 20 | typedef struct opie_frame_s opie_frame_t; |
19 | struct opie_frame_s { | 21 | struct opie_frame_s { |
20 | vo_frame_t frame; | 22 | vo_frame_t frame; |
21 | char* name; | 23 | char* name; |
22 | int version; | 24 | int version; |
@@ -144,12 +146,15 @@ static int null_redraw_needed( vo_driver_t* self ){ | |||
144 | 146 | ||
145 | 147 | ||
146 | vo_driver_t* init_video_out_plugin( config_values_t* conf, | 148 | vo_driver_t* init_video_out_plugin( config_values_t* conf, |
147 | void* video ){ | 149 | void* video ){ |
148 | null_driver_t *vo; | 150 | null_driver_t *vo; |
149 | vo = (null_driver_t*)malloc( sizeof(null_driver_t ) ); | 151 | vo = (null_driver_t*)malloc( sizeof(null_driver_t ) ); |
152 | vo->m_show_video = 0; // false | ||
153 | vo->m_video_fullscreen = 0; | ||
154 | vo->m_is_scaling = 0; | ||
150 | /* memset? */ | 155 | /* memset? */ |
151 | 156 | ||
152 | /* install callback handlers*/ | 157 | /* install callback handlers*/ |
153 | vo->vo_driver.get_capabilities = null_get_capabilities; | 158 | vo->vo_driver.get_capabilities = null_get_capabilities; |
154 | vo->vo_driver.alloc_frame = null_alloc_frame; | 159 | vo->vo_driver.alloc_frame = null_alloc_frame; |
155 | vo->vo_driver.update_frame_format = null_update_frame_format; | 160 | vo->vo_driver.update_frame_format = null_update_frame_format; |
@@ -178,6 +183,36 @@ static vo_info_t vo_info_null = { | |||
178 | }; | 183 | }; |
179 | 184 | ||
180 | vo_info_t *get_video_out_plugin_info(){ | 185 | vo_info_t *get_video_out_plugin_info(){ |
181 | vo_info_null.description = _("xine video output plugin using null device"); | 186 | vo_info_null.description = _("xine video output plugin using null device"); |
182 | return &vo_info_null; | 187 | return &vo_info_null; |
183 | } | 188 | } |
189 | |||
190 | /* this is special for this device */ | ||
191 | /** | ||
192 | * We know that we will be controled by the XINE LIB++ | ||
193 | */ | ||
194 | |||
195 | /** | ||
196 | * | ||
197 | */ | ||
198 | int null_is_showing_video( vo_driver_t* self ){ | ||
199 | null_driver_t* this = (null_driver_t*)self; | ||
200 | return this->m_show_video; | ||
201 | } | ||
202 | void null_set_show_video( vo_driver_t* self, int show ) { | ||
203 | ((null_driver_t*)self)->m_show_video = show; | ||
204 | } | ||
205 | |||
206 | int null_is_fullscreen( vo_driver_t* self ){ | ||
207 | return ((null_driver_t*)self)->m_video_fullscreen; | ||
208 | } | ||
209 | void null_set_fullscreen( vo_driver_t* self, int screen ){ | ||
210 | ((null_driver_t*)self)->m_video_fullscreen = screen; | ||
211 | } | ||
212 | int null_is_scaling( vo_driver_t* self ){ | ||
213 | return ((null_driver_t*)self)->m_is_scaling; | ||
214 | } | ||
215 | void null_set_scaling( vo_driver_t* self, int scale ){ | ||
216 | ((null_driver_t*)self)->m_is_scaling = scale; | ||
217 | } | ||
218 | |||