Skip to content

Commit 6d8e3d3

Browse files
authored
Fix row sizes for packed RGB pixel formats (#961)
RGBA, RGBX, BGRA and BGRX state that the single plane holds codedWidth * codedHeight * 4 samples (four 8-bit samples per pixel), but describe it as codedHeight rows of codedWidth samples. Each row holds codedWidth * 4 samples.
1 parent 72fd17c commit 6d8e3d3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎index.src.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5103,7 +5103,7 @@
51035103
There are {{VideoFrame/codedWidth}} * {{VideoFrame/codedHeight}} * 4 samples
51045104
(and therefore bytes) in the single plane, arranged starting at the top
51055105
left of the image, in {{VideoFrame/codedHeight}} rows of
5106-
{{VideoFrame/codedWidth}} samples.
5106+
{{VideoFrame/codedWidth}} * 4 samples.
51075107

51085108
{{RGBA}}'s [=equivalent opaque format=] is {{RGBX}}.
51095109
</dd>
@@ -5118,7 +5118,7 @@
51185118
There are {{VideoFrame/codedWidth}} * {{VideoFrame/codedHeight}} * 4 samples
51195119
(and therefore bytes) in the single plane, arranged starting at the top left
51205120
of the image, in {{VideoFrame/codedHeight}} rows of
5121-
{{VideoFrame/codedWidth}} samples.
5121+
{{VideoFrame/codedWidth}} * 4 samples.
51225122
</dd>
51235123
<dt><dfn enum-value for=VideoPixelFormat>BGRA</dfn></dt>
51245124
<dd>
@@ -5130,7 +5130,7 @@
51305130
There are {{VideoFrame/codedWidth}} * {{VideoFrame/codedHeight}} * 4 samples
51315131
(and therefore bytes) in the single plane, arranged starting at the top left
51325132
of the image, in {{VideoFrame/codedHeight}} rows of
5133-
{{VideoFrame/codedWidth}} samples.
5133+
{{VideoFrame/codedWidth}} * 4 samples.
51345134

51355135
{{BGRA}}'s [=equivalent opaque format=] is {{BGRX}}.
51365136
</dd>
@@ -5145,7 +5145,7 @@
51455145
There are {{VideoFrame/codedWidth}} * {{VideoFrame/codedHeight}} * 4 samples
51465146
(and therefore bytes) in the single plane, arranged starting at the top left
51475147
of the image, in {{VideoFrame/codedHeight}} rows of
5148-
{{VideoFrame/codedWidth}} samples.
5148+
{{VideoFrame/codedWidth}} * 4 samples.
51495149
</dd>
51505150
</dl>
51515151

0 commit comments

Comments
 (0)