Skip to content

Commit efda26d

Browse files
author
Dan Sanders
committed
Replace 'ceiling' with 'rounded up to the nearest integer'
1 parent 1365f38 commit efda26d

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

index.src.html

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3972,11 +3972,12 @@
39723972
|sampleBytes|.
39733973
6. Let |computedLayout| be a new [=computed plane layout=].
39743974
7. Set |computedLayout|'s [=computed plane layout/sourceTop=] to the
3975-
ceiling of the division of truncated |parsedRect|.{{DOMRectInit/y}}
3976-
by |sampleHeight|.
3975+
result of the division of truncated |parsedRect|.{{DOMRectInit/y}}
3976+
by |sampleHeight|, rounded up to the nearest integer.
39773977
8. Set |computedLayout|'s [=computed plane layout/sourceHeight=] to the
3978-
ceiling of the division of truncated
3979-
|parsedRect|.{{DOMRectInit/height}} by |sampleHeight|.
3978+
result of the division of truncated
3979+
|parsedRect|.{{DOMRectInit/height}} by |sampleHeight|, rounded up
3980+
to the nearest integer.
39803981
9. Set |computedLayout|'s [=computed plane layout/sourceLeftBytes=] to
39813982
the result of the integer division of
39823983
truncated |parsedRect|.{{DOMRectInit/x}} by |sampleWidthBytes|.
@@ -4234,10 +4235,11 @@
42344235
the image, in {{VideoFrame/codedHeight}} rows of {{VideoFrame/codedWidth}}
42354236
samples.
42364237

4237-
The U and V planes have a number of rows equal to the ceiling of the
4238-
division of {{VideoFrame/codedHeight}} by 2. Each row has a number of
4239-
samples equal to the ceiling of the division of {{VideoFrame/codedWidth}} by
4240-
2. Samples are arranged starting at the top left of the image.
4238+
The U and V planes have a number of rows equal to the result of the
4239+
division of {{VideoFrame/codedHeight}} by 2, rounded up to the nearest
4240+
integer. Each row has a number of samples equal to the result of the
4241+
division of {{VideoFrame/codedWidth}} by 2, rounded up to the nearest
4242+
integer. Samples are arranged starting at the top left of the image.
42414243

42424244
The visible rectangle offset ({{VideoFrame/visibleRect}}.{{DOMRectInit/x}}
42434245
and {{VideoFrame/visibleRect}}.{{DOMRectInit/y}}) MUST be even.
@@ -4260,10 +4262,11 @@
42604262
top left of the image, in {{VideoFrame/codedHeight}} rows of
42614263
{{VideoFrame/codedWidth}} samples.
42624264

4263-
The U and V planes have a number of rows equal to the ceiling of the
4264-
division of {{VideoFrame/codedHeight}} by 2. Each row has a number of
4265-
samples equal to the ceiling of the division of {{VideoFrame/codedWidth}} by
4266-
2. Samples are arranged starting at the top left of the image.
4265+
The U and V planes have a number of rows equal to the result of the
4266+
division of {{VideoFrame/codedHeight}} by 2, rounded up to the nearest
4267+
integer. Each row has a number of samples equal to the result of the
4268+
division of {{VideoFrame/codedWidth}} by 2, rounded up to the nearest
4269+
integer. Samples are arranged starting at the top left of the image.
42674270

42684271
The visible rectangle offset ({{VideoFrame/visibleRect}}.{{DOMRectInit/x}}
42694272
and {{VideoFrame/visibleRect}}.{{DOMRectInit/y}}) MUST be even.
@@ -4288,9 +4291,9 @@
42884291
{{VideoFrame/codedWidth}} samples.
42894292

42904293
The U and V planes have {{VideoFrame/codedHeight}} rows. Each row has a
4291-
number of samples equal to the ceiling of the division of
4292-
{{VideoFrame/codedWidth}} by 2. Samples are arranged starting at the top
4293-
left of the image.
4294+
number of samples equal to the result of the division of
4295+
{{VideoFrame/codedWidth}} by 2, rounded up to the nearest integer. Samples
4296+
are arranged starting at the top left of the image.
42944297

42954298
The visible rectangle offset ({{VideoFrame/visibleRect}}.{{DOMRectInit/x}})
42964299
MUST be even.
@@ -4328,9 +4331,10 @@
43284331
{{VideoFrame/codedWidth}} samples.
43294332

43304333
The UV plane is composed of interleaved U and V values, in a number of
4331-
rows equal to the ceiling of the division of {{VideoFrame/codedHeight}}
4332-
by 2. Each row has a number of elements equal to the ceiling of the division
4333-
of {{VideoFrame/codedWidth}} by 2. Each element is composed of two Chroma
4334+
rows equal to the result of the division of {{VideoFrame/codedHeight}}
4335+
by 2, rounded up to the nearest integer. Each row has a number of elements
4336+
equal to the result of the division of {{VideoFrame/codedWidth}} by 2,
4337+
rounded up to the nearest integer. Each element is composed of two Chroma
43344338
samples, the U and V samples, in that order. Samples are arranged starting
43354339
at the top left of the image.
43364340

0 commit comments

Comments
 (0)