diff options
author | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-02-20 22:44:15 +0000 |
---|---|---|
committer | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-02-20 22:44:15 +0000 |
commit | 6b6c598b466c8436ef120bd8ef0e3bc296d976cf (patch) | |
tree | 8a8a35c8dd109324a5ca6b64272832ff9e5b7a69 /src/lib | |
parent | 84ce09f33dac2cb9e42fe58dae9e9ed686dcb00d (diff) | |
download | usdx-6b6c598b466c8436ef120bd8ef0e3bc296d976cf.tar.gz usdx-6b6c598b466c8436ef120bd8ef0e3bc296d976cf.tar.xz usdx-6b6c598b466c8436ef120bd8ef0e3bc296d976cf.zip |
update of swscale to 0.10.0 and fix of missing declaration in previous commit
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2118 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ffmpeg/swscale.pas | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/lib/ffmpeg/swscale.pas b/src/lib/ffmpeg/swscale.pas index 2afe19db..ccefacd8 100644 --- a/src/lib/ffmpeg/swscale.pas +++ b/src/lib/ffmpeg/swscale.pas @@ -143,6 +143,18 @@ const SWS_CS_SMPTE240M = 7; SWS_CS_DEFAULT = 5; +{$IF LIBSWSCALE_VERSION >= 000010000} // 0.10.0 +(** + * Returns a pointer to yuv<->rgb coefficients for the given colorspace + * suitable for sws_setColorspaceDetails(). + * + * @param colorspace One of the SWS_CS_* macros. If invalid, + * SWS_CS_DEFAULT is used. + *) + function sws_getCoefficients(colorspace: cint): Pcint; + cdecl; external sw__scale; +{$IFEND} + type // when used for filters they must have an odd number of elements @@ -172,13 +184,15 @@ type * Returns a positive value if pix_fmt is a supported input format, 0 * otherwise. *) - function sws_isSupportedInput(pix_fmt: TAVPixelFormat): cint; + function sws_isSupportedInput(pix_fmt: TAVPixelFormat): cint; + cdecl; external sw__scale; (** * Returns a positive value if pix_fmt is a supported output format, 0 * otherwise. *) - function sws_isSupportedOutput(pix_fmt: TAVPixelFormat): cint; + function sws_isSupportedOutput(pix_fmt: TAVPixelFormat): cint; + cdecl; external sw__scale; {$IFEND} (** |