* Complete TJSVideoFrame

This commit is contained in:
Michael Van Canneyt 2025-04-24 10:55:46 +02:00
parent ee68ba70b9
commit c7277c9b7d

View File

@ -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;