Diffstat (limited to 'noncore/multimedia/opieplayer2/nullvideo.c') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/nullvideo.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/nullvideo.c b/noncore/multimedia/opieplayer2/nullvideo.c index b8b8eb3..8badb7b 100644 --- a/noncore/multimedia/opieplayer2/nullvideo.c +++ b/noncore/multimedia/opieplayer2/nullvideo.c | |||
@@ -15,25 +15,41 @@ struct null_driver_s { | |||
15 | uint32_t m_capabilities; | 15 | uint32_t m_capabilities; |
16 | int m_show_video; | 16 | int m_show_video; |
17 | int m_video_fullscreen; | 17 | int m_video_fullscreen; |
18 | int m_is_scaling; | 18 | int m_is_scaling; |
19 | }; | 19 | }; |
20 | typedef struct opie_frame_s opie_frame_t; | 20 | typedef struct opie_frame_s opie_frame_t; |
21 | struct opie_frame_s { | 21 | struct opie_frame_s { |
22 | vo_frame_t frame; | 22 | vo_frame_t frame; |
23 | char* name; | 23 | char* name; |
24 | int version; | 24 | int version; |
25 | int m_width; | 25 | int m_width; |
26 | int m_height; | 26 | int m_height; |
27 | int m_ratio_code; | ||
28 | int format; | ||
29 | int flags; | ||
30 | int user_ratio; | ||
31 | |||
32 | int ideal_width; | ||
33 | int ideal_height; | ||
34 | int output_width, output_height; | ||
27 | uint8_t *chunk[3]; | 35 | uint8_t *chunk[3]; |
36 | uint8_t *rgb_dst; | ||
37 | int yuv_stride; | ||
38 | int stripe_height, stripe_inc; | ||
39 | |||
40 | int bytes_per_line; | ||
41 | uint8_t *data; | ||
42 | |||
43 | |||
28 | null_driver_t *output; | 44 | null_driver_t *output; |
29 | }; | 45 | }; |
30 | 46 | ||
31 | static uint32_t null_get_capabilities(vo_driver_t *self ){ | 47 | static uint32_t null_get_capabilities(vo_driver_t *self ){ |
32 | null_driver_t* this = (null_driver_t*)self; | 48 | null_driver_t* this = (null_driver_t*)self; |
33 | printf("capabilities\n"); | 49 | printf("capabilities\n"); |
34 | return this->m_capabilities; | 50 | return this->m_capabilities; |
35 | } | 51 | } |
36 | 52 | ||
37 | /* take care of the frame*/ | 53 | /* take care of the frame*/ |
38 | static void null_frame_dispose( vo_frame_t* vo_img){ | 54 | static void null_frame_dispose( vo_frame_t* vo_img){ |
39 | opie_frame_t* frame = (opie_frame_t*)vo_img; | 55 | opie_frame_t* frame = (opie_frame_t*)vo_img; |
@@ -207,12 +223,18 @@ int null_is_fullscreen( vo_driver_t* self ){ | |||
207 | return ((null_driver_t*)self)->m_video_fullscreen; | 223 | return ((null_driver_t*)self)->m_video_fullscreen; |
208 | } | 224 | } |
209 | void null_set_fullscreen( vo_driver_t* self, int screen ){ | 225 | void null_set_fullscreen( vo_driver_t* self, int screen ){ |
210 | ((null_driver_t*)self)->m_video_fullscreen = screen; | 226 | ((null_driver_t*)self)->m_video_fullscreen = screen; |
211 | } | 227 | } |
212 | int null_is_scaling( vo_driver_t* self ){ | 228 | int null_is_scaling( vo_driver_t* self ){ |
213 | return ((null_driver_t*)self)->m_is_scaling; | 229 | return ((null_driver_t*)self)->m_is_scaling; |
214 | } | 230 | } |
215 | void null_set_scaling( vo_driver_t* self, int scale ){ | 231 | void null_set_scaling( vo_driver_t* self, int scale ){ |
216 | ((null_driver_t*)self)->m_is_scaling = scale; | 232 | ((null_driver_t*)self)->m_is_scaling = scale; |
217 | } | 233 | } |
218 | 234 | ||
235 | void null_set_gui_width( vo_driver_t* self, int width ){ | ||
236 | |||
237 | } | ||
238 | void null_set_gui_height( vo_driver_t* self, int height ){ | ||
239 | |||
240 | } | ||