The size of each frame in the video data format.

Source: Internet
Author: User

The size of each rgb24 frame is

Size = width × heigth × 3 bit

The size of each rgb32 frame is

Size = width × heigth × 4

Yuv420 the size of each frame is

Size = width × heigth × 1. 5 Bit

Differences between yv12 and i420 Space

Yv12, i420 is the surface format

Yv12: brightness (row x column) + U (row x column/4) + V (row x column/4)

I420: brightness (row x column) + V (row x column/4) + U (row x column/4)

Note: After conversion from RGB to yuv420, the data volume is reduced by half, but the conversion from RGB to YUV [i420] is better than that from RGB to YUV [yv12.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.