-
Notifications
You must be signed in to change notification settings - Fork 151
Extend EncodedVideoChunkMetadata for Spatial Scalability #756
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,6 +133,10 @@ | |
:: A grouping of {{EncodedVideoChunk}}s whose timestamp cadence produces a | ||
particular framerate. See {{VideoEncoderConfig/scalabilityMode}}. | ||
|
||
: <dfn>Spatial Layer</dfn> | ||
:: A grouping of {{EncodedVideoChunk}}s which produces a particular | ||
resolution. See {{VideoEncoderConfig/scalabilityMode}}. | ||
|
||
: <dfn>Progressive Image</dfn> | ||
:: 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|. | ||
</dd> | ||
<dt><dfn>Reset VideoEncoder</dfn> (with |exception|)</dt> | ||
|
@@ -1704,6 +1717,9 @@ | |
|
||
dictionary SvcOutputMetadata { | ||
unsigned long temporalLayerId; | ||
unsigned long spatialLayerId; | ||
unsigned long long frameId; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Djuffin @tonyherre
aboba marked this conversation as resolved.
Show resolved
Hide resolved
|
||
sequence <unsigned long long> dependencies; | ||
}; | ||
</xmp> | ||
|
||
|
@@ -1723,7 +1739,17 @@ | |
:: A number that identifies the [=temporal layer=] for the associated | ||
{{EncodedVideoChunk}}. | ||
|
||
: <dfn dict-member for=SvcOutputMetadata>spatialLayerId</dfn> | ||
:: A number that identifies the [=spatial layer=] for the associated | ||
{{EncodedVideoChunk}}. | ||
|
||
: <dfn dict-member for=SvcOutputMetadata>frameId</dfn> | ||
:: A number that identifies the associated {{EncodedVideoChunk}}. | ||
|
||
|
||
: <dfn dict-member for=SvcOutputMetadata>dependencies</dfn> | ||
:: A sequence containing the {{frameId}} values that the associated {{EncodedVideoChunk}} depends on. | ||
|
||
Configurations{#configurations} | ||
=============================== | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will override everything produced by the step 8 for SVC modes that have both temporal and spatial layers. for example: L2T2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I have fixed this. PTAL.