changeset 7688:41d242c5bee1

since draw_slice() can handle packed RGB too, set the VFCAP_ACCEPT_STRIDE flag
author arpi
date Wed, 09 Oct 2002 22:37:27 +0000
parents a9a19a991a70
children 39e62d6592ca
files libvo/vo_yuv4mpeg.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_yuv4mpeg.c	Wed Oct 09 22:32:04 2002 +0000
+++ b/libvo/vo_yuv4mpeg.c	Wed Oct 09 22:37:27 2002 +0000
@@ -347,8 +347,8 @@
 			// gets done in draw_slice
 			break;
 
-		case IMGFMT_BGR|24:
-		case IMGFMT_RGB|24:
+		case IMGFMT_BGR24:
+		case IMGFMT_RGB24:
 			memcpy(rgb_buffer, src[0], image_width * image_height * 3);
 			break;
 	}
@@ -367,10 +367,10 @@
 		switch(format)
 		{
 			case IMGFMT_YV12:
-				return VFCAP_CSP_SUPPORTED|VFCAP_OSD;
+				return VFCAP_CSP_SUPPORTED|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
 			case IMGFMT_BGR|24:
 			case IMGFMT_RGB|24:
-				return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD;
+				return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
 		}
 	}
 	else
@@ -379,10 +379,10 @@
 		switch(format)
 		{
 			case IMGFMT_YV12:
-				return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD;
+				return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
     		case IMGFMT_BGR|24:
     		case IMGFMT_RGB|24:
-        		return VFCAP_CSP_SUPPORTED|VFCAP_OSD;
+        		return VFCAP_CSP_SUPPORTED|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
     	}	
 	}
 	return 0;