mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-09-13 12:59:04 +02:00
* Complete TJSVideoFrame
This commit is contained in:
parent
ee68ba70b9
commit
c7277c9b7d
@ -1907,6 +1907,20 @@ type
|
||||
displayHeight : integer;
|
||||
end;
|
||||
|
||||
TJSVideoFramePlaneLayout = class external name 'Object' (TJSObject)
|
||||
offset : integer;
|
||||
stride : integer;
|
||||
end;
|
||||
|
||||
TJSVideoFramePlaneLayoutArray = array of TJSVideoFramePlaneLayout;
|
||||
|
||||
TJSVideoFrameAllocationSizeOptions = class external name 'Object' (TJSObject)
|
||||
rect : TJSVideoFrameOptionsRect;
|
||||
layout : TJSVideoFramePlaneLayoutArray;
|
||||
format : string;
|
||||
colorspace : string;
|
||||
end;
|
||||
|
||||
TJSVideoFrame = class external name 'VideoFrame' (TJSObject)
|
||||
private
|
||||
FcodedHeight: NativeInt; external name 'codedHeight';
|
||||
@ -1928,6 +1942,13 @@ type
|
||||
constructor new(aFormat : TJSVideoFrame; aOptions : TJSVideoFrameOptions);
|
||||
constructor new(aFormat : TJSHTMLOffscreenCanvas; aOptions : TJSVideoFrameOptions);
|
||||
constructor new(aFormat : TJSObject; aOptions : TJSVideoFrameOptions);
|
||||
function allocationsize() : integer;
|
||||
function allocationsize(aOptions : TJSVideoFrameAllocationSizeOptions) : integer;
|
||||
function clone : TJSVideoFrame;
|
||||
procedure close;
|
||||
procedure copyTo(aDestination : TJSArrayBuffer);
|
||||
procedure copyTo(aDestination : TJSTypedArray);
|
||||
procedure copyTo(aDestination : TJSDataView);
|
||||
|
||||
property format : string read FFormat;
|
||||
property codedHeight : NativeInt Read FcodedHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user