|
4268 | 4268 | planes of Chroma, denoted Y, U and V, and present in this order. It is also
|
4269 | 4269 | often refered to as Planar YUV 4:2:0.
|
4270 | 4270 |
|
4271 |
| - The U an V planes are [=sub-sampled=] horizontaly and vertically by a |
| 4271 | + The U an V planes are [=sub-sampled=] horizontally and vertically by a |
4272 | 4272 | [=factor=] of 2 compared to the Y plane.
|
4273 | 4273 |
|
4274 | 4274 | Each sample in this format is 8 bits.
|
|
4296 | 4296 | present in this order. It is also often refered to as Planar YUV 4:2:0 with
|
4297 | 4297 | an alpha channel.
|
4298 | 4298 |
|
4299 |
| - The U an V planes are [=sub-sampled=] horizontaly and vertically by a |
| 4299 | + The U an V planes are [=sub-sampled=] horizontally and vertically by a |
4300 | 4300 | [=factor=] of 2 compared to the Y and Alpha planes.
|
4301 | 4301 |
|
4302 | 4302 | Each sample in this format is 8 bits.
|
|
4325 | 4325 | planes of Chroma, denoted Y, U and V, and present in this order. It is also
|
4326 | 4326 | often refered to as Planar YUV 4:2:2.
|
4327 | 4327 |
|
4328 |
| - The U an V planes are [=sub-sampled=] horizontaly by a [=factor=] of 2 |
| 4328 | + The U an V planes are [=sub-sampled=] horizontally by a [=factor=] of 2 |
4329 | 4329 | compared to the Y plane, and not [=sub-sampled=] vertically.
|
4330 | 4330 |
|
4331 | 4331 | Each sample in this format is 8 bits.
|
|
4366 | 4366 | another plane for the two Chroma components. The two planes are present in
|
4367 | 4367 | this order, and are refered to as respectively the Y plane and the UV plane.
|
4368 | 4368 |
|
4369 |
| - The U an V components are [=sub-sampled=] horizontaly and vertically by a |
| 4369 | + The U an V components are [=sub-sampled=] horizontally and vertically by a |
4370 | 4370 | [=factor=] of 2 compared to the components in the Y planes.
|
4371 | 4371 |
|
4372 | 4372 | Each sample in this format is 8 bits.
|
|
4389 | 4389 | {{VideoFrame/visibleRect}}.{{DOMRectInit/y}}) MUST be even.
|
4390 | 4390 |
|
4391 | 4391 | <div class=example>
|
4392 |
| - An image in the NV12 pixel format that is 16 pixels wide and 9 pixels tall |
| 4392 | + An image in the NV12 pixel format that is 16 pixels wide and 10 pixels tall |
4393 | 4393 | will be arranged like so in memory:
|
4394 | 4394 |
|
4395 | 4395 | ```
|
4396 |
| - YYYYYYYYYYYYYY |
4397 |
| - YYYYYYYYYYYYYY |
4398 |
| - YYYYYYYYYYYYYY |
4399 |
| - YYYYYYYYYYYYYY |
4400 |
| - YYYYYYYYYYYYYY |
4401 |
| - YYYYYYYYYYYYYY |
4402 |
| - YYYYYYYYYYYYYY |
4403 |
| - YYYYYYYYYYYYYY |
4404 |
| - YYYYYYYYYYYYYY |
4405 |
| - UVUVUVUVUVUVUV |
4406 |
| - UVUVUVUVUVUVUV |
4407 |
| - UVUVUVUVUVUVUV |
4408 |
| - UVUVUVUVUVUVUV |
4409 |
| - UVUVUVUVUVUVUV |
4410 |
| - UVUVUVUVUVUVUV |
4411 |
| - UVUVUVUVUVUVUV |
4412 |
| - UVUVUVUVUVUVUV |
4413 |
| - UVUVUVUVUVUVUV |
| 4396 | + YYYYYYYYYYYYYYYY |
| 4397 | + YYYYYYYYYYYYYYYY |
| 4398 | + YYYYYYYYYYYYYYYY |
| 4399 | + YYYYYYYYYYYYYYYY |
| 4400 | + YYYYYYYYYYYYYYYY |
| 4401 | + YYYYYYYYYYYYYYYY |
| 4402 | + YYYYYYYYYYYYYYYY |
| 4403 | + YYYYYYYYYYYYYYYY |
| 4404 | + YYYYYYYYYYYYYYYY |
| 4405 | + YYYYYYYYYYYYYYYY |
| 4406 | + UVUVUVUVUVUVUVUV |
| 4407 | + UVUVUVUVUVUVUVUV |
| 4408 | + UVUVUVUVUVUVUVUV |
| 4409 | + UVUVUVUVUVUVUVUV |
| 4410 | + UVUVUVUVUVUVUVUV |
4414 | 4411 | ```
|
4415 | 4412 |
|
4416 | 4413 | All samples being linear in memory.
|
|
0 commit comments