Mercurial > mplayer.hg
comparison libvo/vo_directfb.c @ 4359:266ebffd8fc9
no longer required to call preinit from init and query_format, mplayer.c does this
author | alex |
---|---|
date | Sat, 26 Jan 2002 18:35:29 +0000 |
parents | 5018e8014ebd |
children | df8e0f71cc3c |
comparison
equal
deleted
inserted
replaced
4358:b313f88cd0dc | 4359:266ebffd8fc9 |
---|---|
319 modes[3].valid=0; | 319 modes[3].valid=0; |
320 DFBCHECK (dfb->EnumVideoModes(dfb,enum_modes_callback,NULL)); | 320 DFBCHECK (dfb->EnumVideoModes(dfb,enum_modes_callback,NULL)); |
321 // printf("No YUY2 %i\n",no_yuy2); | 321 // printf("No YUY2 %i\n",no_yuy2); |
322 // } | 322 // } |
323 preinit_done=1; | 323 preinit_done=1; |
324 return 1; | 324 return 0; |
325 | 325 |
326 } | 326 } |
327 | 327 |
328 | 328 |
329 static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, | 329 static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, |
355 d_width = out_width = width; | 355 d_width = out_width = width; |
356 d_height = out_height = height; | 356 d_height = out_height = height; |
357 } | 357 } |
358 | 358 |
359 | 359 |
360 if (!preinit(NULL)) return 1; | 360 // if (!preinit(NULL)) return 1; |
361 | 361 |
362 | 362 |
363 if (vm) { | 363 if (vm) { |
364 // need better algorithm just hack | 364 // need better algorithm just hack |
365 if (modes[source_pixel_size-1].valid) dfb->SetVideoMode(dfb,modes[source_pixel_size-1].width,modes[source_pixel_size-1].height,source_pixel_size); | 365 if (modes[source_pixel_size-1].valid) dfb->SetVideoMode(dfb,modes[source_pixel_size-1].width,modes[source_pixel_size-1].height,source_pixel_size); |
596 | 596 |
597 static uint32_t query_format(uint32_t format) | 597 static uint32_t query_format(uint32_t format) |
598 { | 598 { |
599 int ret = 0x4; /* osd/sub is supported on every bpp */ | 599 int ret = 0x4; /* osd/sub is supported on every bpp */ |
600 | 600 |
601 preinit(NULL); | 601 // preinit(NULL); |
602 | 602 |
603 // printf("Format query: %s\n",vo_format_name(format)); | 603 // printf("Format query: %s\n",vo_format_name(format)); |
604 switch (format) { | 604 switch (format) { |
605 | 605 |
606 // RGB mode works only if color depth is same as on screen and this driver doesn't know before init | 606 // RGB mode works only if color depth is same as on screen and this driver doesn't know before init |