|
3972 | 3972 | |sampleBytes|.
|
3973 | 3973 | 6. Let |computedLayout| be a new [=computed plane layout=].
|
3974 | 3974 | 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. |
3977 | 3977 | 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. |
3980 | 3981 | 9. Set |computedLayout|'s [=computed plane layout/sourceLeftBytes=] to
|
3981 | 3982 | the result of the integer division of
|
3982 | 3983 | truncated |parsedRect|.{{DOMRectInit/x}} by |sampleWidthBytes|.
|
|
4234 | 4235 | the image, in {{VideoFrame/codedHeight}} rows of {{VideoFrame/codedWidth}}
|
4235 | 4236 | samples.
|
4236 | 4237 |
|
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. |
4241 | 4243 |
|
4242 | 4244 | The visible rectangle offset ({{VideoFrame/visibleRect}}.{{DOMRectInit/x}}
|
4243 | 4245 | and {{VideoFrame/visibleRect}}.{{DOMRectInit/y}}) MUST be even.
|
|
4260 | 4262 | top left of the image, in {{VideoFrame/codedHeight}} rows of
|
4261 | 4263 | {{VideoFrame/codedWidth}} samples.
|
4262 | 4264 |
|
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. |
4267 | 4270 |
|
4268 | 4271 | The visible rectangle offset ({{VideoFrame/visibleRect}}.{{DOMRectInit/x}}
|
4269 | 4272 | and {{VideoFrame/visibleRect}}.{{DOMRectInit/y}}) MUST be even.
|
|
4288 | 4291 | {{VideoFrame/codedWidth}} samples.
|
4289 | 4292 |
|
4290 | 4293 | 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. |
4294 | 4297 |
|
4295 | 4298 | The visible rectangle offset ({{VideoFrame/visibleRect}}.{{DOMRectInit/x}})
|
4296 | 4299 | MUST be even.
|
|
4328 | 4331 | {{VideoFrame/codedWidth}} samples.
|
4329 | 4332 |
|
4330 | 4333 | 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 |
4334 | 4338 | samples, the U and V samples, in that order. Samples are arranged starting
|
4335 | 4339 | at the top left of the image.
|
4336 | 4340 |
|
|
0 commit comments