Skip to content

Add SVC modes and metadata #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
spec: media-capabilities; urlPrefix: https://w3c.github.io/media-capabilities/#
type: method; text: decodingInfo(); url: dom-mediacapabilities-decodinginfo
type: attribute; text: powerEfficient; url: dom-mediacapabilitiesinfo-powerefficient

spec: webrtc-svc; urlPrefix: https://w3c.github.io/webrtc-svc/
type: dfn; text: scalability mode identifier; url:#scalabilitymodes*
</pre>


Expand Down Expand Up @@ -663,7 +666,13 @@
required WebCodecsErrorCallback error;
};

callback EncodedAudioChunkOutputCallback = undefined(EncodedAudioChunk output);
dictionary EncodedAudioChunkMetadata {
AudioDecoderConfig decoderConfig;
};

callback EncodedAudioChunkOutputCallback =
undefined (EncodedAudioChunk output,
optional EncodedAudioChunkMetadata metadata);
</xmp>

Internal Slots {#audioencoder-internal-slots}
Expand Down Expand Up @@ -901,7 +910,14 @@
required WebCodecsErrorCallback error;
};

callback EncodedVideoChunkOutputCallback = undefined(EncodedVideoChunk output, VideoDecoderConfig? output_config);
dictionary EncodedVideoChunkMetadata {
VideoDecoderConfig decoderConfig;
unsigned long temporalLayerId;
};

callback EncodedVideoChunkOutputCallback =
undefined (EncodedVideoChunk chunk,
optional EncodedVideoChunkMetadata metadata);
</xmp>

Internal Slots {#videoencoder-internal-slots}
Expand Down Expand Up @@ -1501,6 +1517,7 @@
unsigned long displayWidth;
unsigned long displayHeight;
HardwareAcceleration hardwareAcceleration = "allow";
DOMString scalabilityMode;
};
</xmp>

Expand Down Expand Up @@ -1584,6 +1601,11 @@
Configures hardware acceleration for this codec. See
{{HardwareAcceleration}}.
</dd>

<dt><dfn dict-member for=VideoEncoderConfig>scalabilityMode</dfn></dt>
<dd>
An encoding [=scalability mode identifier=] as defined by [[WebRTC-SVC]].
</dd>
</dl>

Hardware Acceleration{#hardware-acceleration}
Expand Down