# HG changeset patch # User alex # Date 1007570994 0 # Node ID 7e0eeb6494205fddae987d88bcbbd54c068da634 # Parent dcd2bb2e69ef242a041a8fee332abacf8a38a658 compile if no uyvy support (test this change) diff -r dcd2bb2e69ef -r 7e0eeb649420 libvo/vo_directfb.c --- a/libvo/vo_directfb.c Wed Dec 05 16:49:12 2001 +0000 +++ b/libvo/vo_directfb.c Wed Dec 05 16:49:54 2001 +0000 @@ -121,6 +121,7 @@ static unsigned int best_bpp=5; static unsigned int preinit_done=0; static int no_yuy2=1; +static int no_uyvy_support=1; DFBEnumerationResult enum_modes_callback( unsigned int width,unsigned int height,unsigned int bpp, void *data) @@ -229,6 +230,18 @@ // if (!dfb) { DFBCHECK (DirectFBInit (NULL,NULL)); + + if ((directfb_major_version >= 0) && + (directfb_minor_version >= 9) && + (directfb_micro_version >= 7)) + no_uyvy_support = 0; + else + { + no_uyvy_support = 1; + printf("vo_directfb: no UYVY support. Version: %d.%d.%d\n", + directfb_major_version, directfb_minor_version, + directfb_micro_version); + } if (!fb_dev_name && !(fb_dev_name = getenv("FRAMEBUFFER"))) fb_dev_name = "/dev/fb0"; DFBCHECK (DirectFBSetOption ("fbdev",fb_dev_name)); @@ -257,7 +270,7 @@ /* Test the configuration, getting failed fields */ ret = videolayer->TestConfiguration( videolayer, &dlc, &failed ); - if (ret == DFB_UNSUPPORTED) { + if (ret == DFB_UNSUPPORTED && no_uyvy_support == 0) { // printf("Videolayer does not support YUY2"); dlc.pixelformat = DSPF_UYVY; ret = videolayer->TestConfiguration( videolayer, &dlc, &failed );