changeset 6565:1075fe5fc8c3

new global codec flag: align16 it means that width/height should be round up to n*16 (some buggy codec needs it to avoid sig11 / image distortions)
author arpi
date Tue, 25 Jun 2002 22:26:34 +0000
parents 652ada9f9b66
children a48ad140c3af
files codec-cfg.c codec-cfg.h etc/codecs.conf
diffstat 3 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/codec-cfg.c	Tue Jun 25 19:14:11 2002 +0000
+++ b/codec-cfg.c	Tue Jun 25 22:26:34 2002 +0000
@@ -623,6 +623,9 @@
 			if (!strcmp(token[0], "seekable"))
 				codec->flags |= CODECS_FLAG_SEEKABLE;
 			else
+			if (!strcmp(token[0], "align16"))
+				codec->flags |= CODECS_FLAG_ALIGN16;
+			else
 				goto err_out_parse_error;
 		} else if (!strcmp(token[0], "status")) {
 			if (get_token(1, 1) < 0)
--- a/codec-cfg.h	Tue Jun 25 19:14:11 2002 +0000
+++ b/codec-cfg.h	Tue Jun 25 22:26:34 2002 +0000
@@ -1,7 +1,7 @@
 #ifndef __CODEC_CFG_H
 #define __CODEC_CFG_H
 
-#define CODEC_CFG_MIN	20020625
+#define CODEC_CFG_MIN	20020626
 
 #define CODECS_MAX_FOURCC	32
 #define CODECS_MAX_OUTFMT	16
@@ -9,6 +9,7 @@
 
 // Global flags:
 #define CODECS_FLAG_SEEKABLE	(1<<0)
+#define CODECS_FLAG_ALIGN16	(1<<1)
 #define CODECS_FLAG_SELECTED	(1<<15)  /* for internal use */
 
 // Outfmt flags:
--- a/etc/codecs.conf	Tue Jun 25 19:14:11 2002 +0000
+++ b/etc/codecs.conf	Tue Jun 25 22:26:34 2002 +0000
@@ -3,7 +3,7 @@
 ;  Before editing this file, please read DOCS/tech/codecs.conf.txt !
 ;=============================================================================
 
-release 20020625
+release 20020626
 
 ;=============================================================================
 ;                   VIDEO CODECS
@@ -751,6 +751,7 @@
   status working
   comment "For SSE-systems use hacked dll from ftp://mplayerhq.hu/MPlayer/samples/drivers32/"
   fourcc VP30,vp30,VP31,vp31
+  flags align16
   driver vfwex
   dll "vp31vfw.dll"
   out YUY2