Skip to content

https://w3c.github.io/webcodecs/#videoframe-compute-layout-and-allocation-size is not taking into account RGB formats #573

Open
@youennf

Description

@youennf

https://w3c.github.io/webcodecs/#videoframe-compute-layout-and-allocation-size algorithm is computing the allocation size based on computedLayout’s sourceWidthBytes.

Computation of sourceWidthBytes is based on sample size and rect width.
In the case of RGB formats, the sample size is 1, but each pixel has 4 samples.
I would assume sourceWidthBytes to be multiple by the per-pixel sample count.
I do not see where this is accounted for in the spec currently.

Metadata

Metadata

Assignees

Labels

need-definitionAn issues where something needs to be specified normatively

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions