@webref/idl 3.20.0 → 3.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fs.idl +4 -4
- package/package.json +1 -1
- package/webcodecs.idl +12 -4
- package/webrtc-encoded-transform.idl +2 -4
package/fs.idl
CHANGED
|
@@ -85,10 +85,10 @@ interface FileSystemSyncAccessHandle {
|
|
|
85
85
|
unsigned long long write([AllowShared] BufferSource buffer,
|
|
86
86
|
optional FileSystemReadWriteOptions options = {});
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
undefined truncate([EnforceRange] unsigned long long newSize);
|
|
89
|
+
unsigned long long getSize();
|
|
90
|
+
undefined flush();
|
|
91
|
+
undefined close();
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
[SecureContext]
|
package/package.json
CHANGED
package/webcodecs.idl
CHANGED
|
@@ -312,6 +312,8 @@ interface VideoFrame {
|
|
|
312
312
|
readonly attribute long long timestamp; // microseconds
|
|
313
313
|
readonly attribute VideoColorSpace colorSpace;
|
|
314
314
|
|
|
315
|
+
VideoFrameMetadata metadata();
|
|
316
|
+
|
|
315
317
|
unsigned long allocationSize(
|
|
316
318
|
optional VideoFrameCopyToOptions options = {});
|
|
317
319
|
Promise<sequence<PlaneLayout>> copyTo(
|
|
@@ -334,6 +336,8 @@ dictionary VideoFrameInit {
|
|
|
334
336
|
// Default matches image unless visibleRect is provided.
|
|
335
337
|
[EnforceRange] unsigned long displayWidth;
|
|
336
338
|
[EnforceRange] unsigned long displayHeight;
|
|
339
|
+
|
|
340
|
+
VideoFrameMetadata metadata;
|
|
337
341
|
};
|
|
338
342
|
|
|
339
343
|
dictionary VideoFrameBufferInit {
|
|
@@ -356,6 +360,10 @@ dictionary VideoFrameBufferInit {
|
|
|
356
360
|
VideoColorSpaceInit colorSpace;
|
|
357
361
|
};
|
|
358
362
|
|
|
363
|
+
dictionary VideoFrameMetadata {
|
|
364
|
+
// Possible members are recorded in the VideoFrame Metadata Registry.
|
|
365
|
+
};
|
|
366
|
+
|
|
359
367
|
dictionary VideoFrameCopyToOptions {
|
|
360
368
|
DOMRectInit rect;
|
|
361
369
|
sequence<PlaneLayout> layout;
|
|
@@ -400,10 +408,10 @@ interface VideoColorSpace {
|
|
|
400
408
|
};
|
|
401
409
|
|
|
402
410
|
dictionary VideoColorSpaceInit {
|
|
403
|
-
VideoColorPrimaries? primaries;
|
|
404
|
-
VideoTransferCharacteristics? transfer;
|
|
405
|
-
VideoMatrixCoefficients? matrix;
|
|
406
|
-
boolean? fullRange;
|
|
411
|
+
VideoColorPrimaries? primaries = null;
|
|
412
|
+
VideoTransferCharacteristics? transfer = null;
|
|
413
|
+
VideoMatrixCoefficients? matrix = null;
|
|
414
|
+
boolean? fullRange = null;
|
|
407
415
|
};
|
|
408
416
|
|
|
409
417
|
enum VideoColorPrimaries {
|
|
@@ -80,7 +80,7 @@ dictionary RTCEncodedVideoFrameMetadata {
|
|
|
80
80
|
[Exposed=(Window,DedicatedWorker)]
|
|
81
81
|
interface RTCEncodedVideoFrame {
|
|
82
82
|
readonly attribute RTCEncodedVideoFrameType type;
|
|
83
|
-
readonly attribute unsigned long timestamp;
|
|
83
|
+
readonly attribute unsigned long timestamp;
|
|
84
84
|
attribute ArrayBuffer data;
|
|
85
85
|
RTCEncodedVideoFrameMetadata getMetadata();
|
|
86
86
|
};
|
|
@@ -93,13 +93,11 @@ dictionary RTCEncodedAudioFrameMetadata {
|
|
|
93
93
|
|
|
94
94
|
[Exposed=(Window,DedicatedWorker)]
|
|
95
95
|
interface RTCEncodedAudioFrame {
|
|
96
|
-
readonly attribute unsigned long timestamp;
|
|
96
|
+
readonly attribute unsigned long timestamp;
|
|
97
97
|
attribute ArrayBuffer data;
|
|
98
98
|
RTCEncodedAudioFrameMetadata getMetadata();
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
// New interfaces to expose JavaScript-based transforms.
|
|
102
|
-
|
|
103
101
|
[Exposed=DedicatedWorker]
|
|
104
102
|
interface RTCTransformEvent : Event {
|
|
105
103
|
readonly attribute RTCRtpScriptTransformer transformer;
|