mirror of https://github.com/mpv-player/mpv
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) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6566 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9d2fe87374
commit
d7d187300d
|
@ -622,6 +622,9 @@ int parse_codec_cfg(char *cfgfile)
|
||||||
goto err_out_parse_error;
|
goto err_out_parse_error;
|
||||||
if (!strcmp(token[0], "seekable"))
|
if (!strcmp(token[0], "seekable"))
|
||||||
codec->flags |= CODECS_FLAG_SEEKABLE;
|
codec->flags |= CODECS_FLAG_SEEKABLE;
|
||||||
|
else
|
||||||
|
if (!strcmp(token[0], "align16"))
|
||||||
|
codec->flags |= CODECS_FLAG_ALIGN16;
|
||||||
else
|
else
|
||||||
goto err_out_parse_error;
|
goto err_out_parse_error;
|
||||||
} else if (!strcmp(token[0], "status")) {
|
} else if (!strcmp(token[0], "status")) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __CODEC_CFG_H
|
#ifndef __CODEC_CFG_H
|
||||||
#define __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_FOURCC 32
|
||||||
#define CODECS_MAX_OUTFMT 16
|
#define CODECS_MAX_OUTFMT 16
|
||||||
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
// Global flags:
|
// Global flags:
|
||||||
#define CODECS_FLAG_SEEKABLE (1<<0)
|
#define CODECS_FLAG_SEEKABLE (1<<0)
|
||||||
|
#define CODECS_FLAG_ALIGN16 (1<<1)
|
||||||
#define CODECS_FLAG_SELECTED (1<<15) /* for internal use */
|
#define CODECS_FLAG_SELECTED (1<<15) /* for internal use */
|
||||||
|
|
||||||
// Outfmt flags:
|
// Outfmt flags:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
; Before editing this file, please read DOCS/tech/codecs.conf.txt !
|
; Before editing this file, please read DOCS/tech/codecs.conf.txt !
|
||||||
;=============================================================================
|
;=============================================================================
|
||||||
|
|
||||||
release 20020625
|
release 20020626
|
||||||
|
|
||||||
;=============================================================================
|
;=============================================================================
|
||||||
; VIDEO CODECS
|
; VIDEO CODECS
|
||||||
|
@ -751,6 +751,7 @@ videocodec vp3
|
||||||
status working
|
status working
|
||||||
comment "For SSE-systems use hacked dll from ftp://mplayerhq.hu/MPlayer/samples/drivers32/"
|
comment "For SSE-systems use hacked dll from ftp://mplayerhq.hu/MPlayer/samples/drivers32/"
|
||||||
fourcc VP30,vp30,VP31,vp31
|
fourcc VP30,vp30,VP31,vp31
|
||||||
|
flags align16
|
||||||
driver vfwex
|
driver vfwex
|
||||||
dll "vp31vfw.dll"
|
dll "vp31vfw.dll"
|
||||||
out YUY2
|
out YUY2
|
||||||
|
|
Loading…
Reference in New Issue