# HG changeset patch # User ksorim # Date 1020073941 0 # Node ID af9efcb8024414dec9c675f04b6a12084cd9b531 # Parent 6a6107da2d82f48f358e9395d2aba77d93620bc0 Use new style query_formats flags. Fixes bug with flip. diff -r 6a6107da2d82 -r af9efcb80244 libvo/vo_sdl.c --- a/libvo/vo_sdl.c Mon Apr 29 08:47:30 2002 +0000 +++ b/libvo/vo_sdl.c Mon Apr 29 09:52:21 2002 +0000 @@ -114,6 +114,7 @@ #include "fastmemcpy.h" #include "sub.h" #include "aspect.h" +#include "libmpcodecs/vfcap.h" #ifdef HAVE_X11 #include @@ -1583,7 +1584,8 @@ case IMGFMT_YUY2: case IMGFMT_UYVY: case IMGFMT_YVYU: - return 0x6; // hw supported & osd + return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_OSD | + VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN; case IMGFMT_RGB15: case IMGFMT_BGR15: case IMGFMT_RGB16: @@ -1592,7 +1594,7 @@ case IMGFMT_BGR24: case IMGFMT_RGB32: case IMGFMT_BGR32: - return 0x5; // hw supported w/conversion & osd + return VFCAP_CSP_SUPPORTED | VFCAP_OSD | VFCAP_FLIP; } return 0; }