diff --git a/index.src.html b/index.src.html index 7a704560..8030f74b 100644 --- a/index.src.html +++ b/index.src.html @@ -133,6 +133,10 @@ :: A grouping of {{EncodedVideoChunk}}s whose timestamp cadence produces a particular framerate. See {{VideoEncoderConfig/scalabilityMode}}. +: Spatial Layer +:: A grouping of {{EncodedVideoChunk}}s which produces a particular + resolution. See {{VideoEncoderConfig/scalabilityMode}}. + : Progressive Image :: An image that supports decoding to multiple levels of detail, with lower levels becoming available while the encoded data is not yet fully buffered. @@ -1652,11 +1656,20 @@ |svc|.{{SvcOutputMetadata/temporalLayerId}}. 4. Assign |svc| to |chunkMetadata|.{{EncodedVideoChunkMetadata/svc}}. - 8. If |encoderConfig|.{{VideoEncoderConfig/alpha}} is set to `"keep"`: + 8. If |encoderConfig|.{{VideoEncoderConfig/scalabilityMode}} + describes multiple [=spatial layers=]: + 1. Let |svc| be a new {{SvcOutputMetadata}} instance. + 2. Let |spatial_layer_id| be the zero-based index describing the + spatial layer for |output|. + 3. Assign |spatial_layer_id| to + |svc|.{{SvcOutputMetadata/spatialLayerId}}. + 4. Assign |svc| to + |chunkMetadata|.{{EncodedVideoChunkMetadata/svc}}. + 9. If |encoderConfig|.{{VideoEncoderConfig/alpha}} is set to `"keep"`: 1. Let |alphaSideData| be the encoded alpha data in |output|. 2. Assign |alphaSideData| to |chunkMetadata|.{{EncodedVideoChunkMetadata/alphaSideData}}. - 9. Invoke {{VideoEncoder/[[output callback]]}} with |chunk| and + 10. Invoke {{VideoEncoder/[[output callback]]}} with |chunk| and |chunkMetadata|.