aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
authorb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-12-17 15:26:55 +0000
committerb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-12-17 15:26:55 +0000
commit6194a1562e4990efe2655f660b73223ed0919311 (patch)
tree012d7a9b02c6ca6b6e0da2bfc30b3c2ff44c36a6 /Game
parent6baf1389fddd651e03090ea8008d279696a18e5f (diff)
downloadusdx-6194a1562e4990efe2655f660b73223ed0919311.tar.gz
usdx-6194a1562e4990efe2655f660b73223ed0919311.tar.xz
usdx-6194a1562e4990efe2655f660b73223ed0919311.zip
some minor changes to make swscale work
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@712 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game')
-rw-r--r--Game/Code/lib/ffmpeg/swscale.pas16
1 files changed, 13 insertions, 3 deletions
diff --git a/Game/Code/lib/ffmpeg/swscale.pas b/Game/Code/lib/ffmpeg/swscale.pas
index 7f356901..83aabb12 100644
--- a/Game/Code/lib/ffmpeg/swscale.pas
+++ b/Game/Code/lib/ffmpeg/swscale.pas
@@ -128,6 +128,16 @@ type
PSwsContext = ^TSwsContext;
TSwsContext = record
+ av_class: Pointer;
+ swScale: Pointer;
+ srxW,srcH, dstH: integer;
+ chrSrcW, chrSrcH, chrDstW, chrDstH: integer;
+ lumXInc, chrXInc, lumYInc, chrYInc: integer;
+ dstFormat, srcFormat, origDstFormat, origSrcFormat: integer;
+ chrSrcHSubSample, chrSrcVSubSample, chrIntHSubSample, chrIntVSubSample: integer;
+ chrDstHSubSample, chrDstVSubSample: integer;
+ vChrDrop, sliceDir: integer;
+ param: array[0..1] of double;
{internal structure}
end;
@@ -135,11 +145,11 @@ type
procedure sws_freeContext(swsContext: PSwsContext);
cdecl; external sw__scale;
-function sws_getContext(srcW: integer; srcH: integer; srcFormat: integer; dstW: integer; dstH: integer;dstFormat: integer; flags: integer;
+function sws_getContext(srcW: integer; srcH: integer; srcFormat: TAVPixelFormat; dstW: integer; dstH: integer;dstFormat: TAVPixelFormat; flags: integer;
srcFilter: PSwsFilter; dstFilter: PSwsFilter; param: Pdouble): PSwsContext;
cdecl; external sw__scale;
-function sws_scale(context: PSwsContext; src: PPByteArray; srcStride: PIntArray; srcSliceY: integer; srcSliceH: integer;
- dst: PPByteArray; dstStride: PIntArray): integer;
+function sws_scale(context: PSwsContext; src: {PPByteArray}array of pbyte; srcStride: {PIntArray} array of integer; srcSliceY: integer; srcSliceH: integer;
+ dst: {PPByteArray} array of pbyte; dstStride: {PIntArray}array of integer): integer;
cdecl; external sw__scale;
function sws_scale_ordered(context: PSwsContext; src: PPByteArray; srcStride: PIntArray; srcSliceY: integer;
srcSliceH: integer; dst: PPByteArray; dstStride: PIntArray): integer;