author | sandman <sandman> | 2002-08-03 23:58:20 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-08-03 23:58:20 (UTC) |
commit | 0cecd08dba036f39e414e34a2b7c070008ee3884 (patch) (unidiff) | |
tree | c187c9308f0553b1d5d9cd59093bcc3c11740665 /noncore/multimedia/opieplayer2/nullvideo.c | |
parent | 8fb605fdfbbcbc654f567efcb59f02ec0d26228a (diff) | |
download | opie-0cecd08dba036f39e414e34a2b7c070008ee3884.zip opie-0cecd08dba036f39e414e34a2b7c070008ee3884.tar.gz opie-0cecd08dba036f39e414e34a2b7c070008ee3884.tar.bz2 |
Added support for fullscreen playback
Diffstat (limited to 'noncore/multimedia/opieplayer2/nullvideo.c') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/nullvideo.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/nullvideo.c b/noncore/multimedia/opieplayer2/nullvideo.c index 3a18a40..5ee8d5d 100644 --- a/noncore/multimedia/opieplayer2/nullvideo.c +++ b/noncore/multimedia/opieplayer2/nullvideo.c | |||
@@ -63,8 +63,9 @@ struct opie_frame_s { | |||
63 | double ratio_factor; | 63 | double ratio_factor; |
64 | int ideal_width; | 64 | int ideal_width; |
65 | int ideal_height; | 65 | int ideal_height; |
66 | int output_width, output_height; | 66 | int output_width, output_height; |
67 | int gui_width, gui_height; | ||
67 | uint8_t *chunk[3]; | 68 | uint8_t *chunk[3]; |
68 | 69 | ||
69 | yuv2rgb_t *yuv2rgb; | 70 | yuv2rgb_t *yuv2rgb; |
70 | uint8_t *rgb_dst; | 71 | uint8_t *rgb_dst; |
@@ -292,9 +293,10 @@ static void null_update_frame_format( vo_driver_t* self, vo_frame_t* img, | |||
292 | || (ratio_code != frame->ratio_code) | 293 | || (ratio_code != frame->ratio_code) |
293 | || (flags != frame->flags) | 294 | || (flags != frame->flags) |
294 | || (format != frame->format) | 295 | || (format != frame->format) |
295 | || (this->user_ratio != frame->user_ratio) | 296 | || (this->user_ratio != frame->user_ratio) |
296 | || this->gui_changed ) { | 297 | || (this->gui_width != frame-> gui_width ) |
298 | || (this-> gui_height != frame-> gui_height)) { | ||
297 | 299 | ||
298 | frame->width = width; | 300 | frame->width = width; |
299 | frame->height = height; | 301 | frame->height = height; |
300 | frame->ratio_code = ratio_code; | 302 | frame->ratio_code = ratio_code; |
@@ -302,9 +304,10 @@ static void null_update_frame_format( vo_driver_t* self, vo_frame_t* img, | |||
302 | frame->format = format; | 304 | frame->format = format; |
303 | frame->user_ratio = this->user_ratio; | 305 | frame->user_ratio = this->user_ratio; |
304 | this->gui_changed = 0; | 306 | this->gui_changed = 0; |
305 | //frame->show_video = this->m_show_video; | 307 | //frame->show_video = this->m_show_video; |
306 | 308 | frame->gui_width = this->gui_width; | |
309 | frame->gui_height = this->gui_height; | ||
307 | 310 | ||
308 | null_compute_ideal_size (this, frame); | 311 | null_compute_ideal_size (this, frame); |
309 | null_compute_rgb_size (this, frame); | 312 | null_compute_rgb_size (this, frame); |
310 | 313 | ||
@@ -535,10 +538,10 @@ vo_driver_t* init_video_out_plugin( config_values_t* conf, | |||
535 | vo->m_video_fullscreen = 0; | 538 | vo->m_video_fullscreen = 0; |
536 | vo->m_is_scaling = 0; | 539 | vo->m_is_scaling = 0; |
537 | vo->user_ratio = ASPECT_AUTO; | 540 | vo->user_ratio = ASPECT_AUTO; |
538 | vo->display_ratio = 1.0; | 541 | vo->display_ratio = 1.0; |
539 | vo->gui_width = 200; | 542 | vo->gui_width = 16; |
540 | vo->gui_height = 150; | 543 | vo->gui_height = 8; |
541 | vo->frameDis = NULL; | 544 | vo->frameDis = NULL; |
542 | 545 | ||
543 | /* install callback handlers*/ | 546 | /* install callback handlers*/ |
544 | vo->vo_driver.get_capabilities = null_get_capabilities; | 547 | vo->vo_driver.get_capabilities = null_get_capabilities; |