w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
978 stars 136 forks source link

`[Default] VideoColorSpaceInit toJSON()` is out of spec #486

Closed ChunMinChang closed 1 year ago

ChunMinChang commented 2 years ago

... the operation must have the return type given in the third column of the table.

Identifier Default method steps Return type
"toJSON" The default toJSON steps object

By the definition of [Default] and default method steps, [Default] VideoColorSpaceInit toJSON() seems incorrect.

Shoud it be replaced by [Default] object toJSON() or VideoColorSpaceInit toJSON()?

dalecurtis commented 1 year ago

[Default] VideoColorSpaceInit toJSON();

Is what we have now.