|
133 | 133 | :: A grouping of {{EncodedVideoChunk}}s whose timestamp cadence produces a
|
134 | 134 | particular framerate. See {{VideoEncoderConfig/scalabilityMode}}.
|
135 | 135 |
|
| 136 | +: <dfn>Spatial Layer</dfn> |
| 137 | +:: A grouping of {{EncodedVideoChunk}}s which produces a particular |
| 138 | + resolution. See {{VideoEncoderConfig/scalabilityMode}}. |
| 139 | + |
136 | 140 | : <dfn>Progressive Image</dfn>
|
137 | 141 | :: An image that supports decoding to multiple levels of detail, with lower
|
138 | 142 | levels becoming available while the encoded data is not yet fully buffered.
|
|
1652 | 1656 | |svc|.{{SvcOutputMetadata/temporalLayerId}}.
|
1653 | 1657 | 4. Assign |svc| to
|
1654 | 1658 | |chunkMetadata|.{{EncodedVideoChunkMetadata/svc}}.
|
1655 |
| - 8. If |encoderConfig|.{{VideoEncoderConfig/alpha}} is set to `"keep"`: |
| 1659 | + 8. If |encoderConfig|.{{VideoEncoderConfig/scalabilityMode}} |
| 1660 | + describes multiple [=spatial layers=]: |
| 1661 | + 1. Let |svc| be a new {{SvcOutputMetadata}} instance. |
| 1662 | + 2. Let |spatial_layer_id| be the zero-based index describing the |
| 1663 | + spatial layer for |output|. |
| 1664 | + 3. Assign |spatial_layer_id| to |
| 1665 | + |svc|.{{SvcOutputMetadata/spatialLayerId}}. |
| 1666 | + 4. Assign |svc| to |
| 1667 | + |chunkMetadata|.{{EncodedVideoChunkMetadata/svc}}. |
| 1668 | + 9. If |encoderConfig|.{{VideoEncoderConfig/alpha}} is set to `"keep"`: |
1656 | 1669 | 1. Let |alphaSideData| be the encoded alpha data in |output|.
|
1657 | 1670 | 2. Assign |alphaSideData| to
|
1658 | 1671 | |chunkMetadata|.{{EncodedVideoChunkMetadata/alphaSideData}}.
|
1659 |
| - 9. Invoke {{VideoEncoder/[[output callback]]}} with |chunk| and |
| 1672 | + 10. Invoke {{VideoEncoder/[[output callback]]}} with |chunk| and |
1660 | 1673 | |chunkMetadata|.
|
1661 | 1674 | </dd>
|
1662 | 1675 | <dt><dfn>Reset VideoEncoder</dfn> (with |exception|)</dt>
|
|
1704 | 1717 |
|
1705 | 1718 | dictionary SvcOutputMetadata {
|
1706 | 1719 | unsigned long temporalLayerId;
|
| 1720 | + unsigned long spatialLayerId; |
| 1721 | + unsigned long long frameId; |
| 1722 | + sequence <unsigned long long> dependencies; |
1707 | 1723 | };
|
1708 | 1724 | </xmp>
|
1709 | 1725 |
|
|
1723 | 1739 | :: A number that identifies the [=temporal layer=] for the associated
|
1724 | 1740 | {{EncodedVideoChunk}}.
|
1725 | 1741 |
|
| 1742 | +: <dfn dict-member for=SvcOutputMetadata>spatialLayerId</dfn> |
| 1743 | +:: A number that identifies the [=spatial layer=] for the associated |
| 1744 | + {{EncodedVideoChunk}}. |
| 1745 | + |
| 1746 | +: <dfn dict-member for=SvcOutputMetadata>frameId</dfn> |
| 1747 | +:: A number that identifies the associated {{EncodedVideoChunk}}. |
1726 | 1748 |
|
| 1749 | +: <dfn dict-member for=SvcOutputMetadata>dependencies</dfn> |
| 1750 | +:: A sequence containing the {{frameId}} values that the associated {{EncodedVideoChunk}} depends on. |
| 1751 | + |
1727 | 1752 | Configurations{#configurations}
|
1728 | 1753 | ===============================
|
1729 | 1754 |
|
|
0 commit comments