aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
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;