6 kinds of original image data format of Forefront Imaging

Description

 Problem
A major work of using DirectShow or Forefront Imaging SDK to develop video applications is to get and handle the data in the original image and process video capture devices. What are the 6 kinds of original image data format of Forefront Imaging?

 Solution

  1. RGB24

    Each pixel point is 3 bytes (24 bits), the image data in accordance with the “RGBRGBRGB …” arrangement, the order of the points of pixels from left to right and from bottom to top.

  2. RGB32

    Each pixel point is 4 bytes (32 bits), compared with RGB24,each pixel add a 0 byte (i.e., the Alpha channel 0), the image data in accordance RGB0RGB0 … arranged in the order of the pixel point is from left to right, from bottom to top.

  3. YUYV

    Each pixel point takes 2 bytes (16 bits), 4:2:2 sampling, it is equal to YUY2.

     

  4. UYVY

    Each pixel point takes 2 bytes (16 bits), 4:2:2 sampling, the sequence of bytes is just the opposite against YUYV.

     

  5. I420

    Each pixel points occupies 12 bits,4:2:0 sampling,also called IYUV.

     

  6. NV12

    Each pixel points occupies 12 bits,4:2:0 sampling,The way of sampling as I420,But in the arrangement,U plane and V plane data order staggered storage.

     

    Note:

    1. 4:2:2 sampling means sample of the pixels in the horizontal direction is sampled by 2:1,No pixels in the vertical direction sampling;
    2. 4:2:0sampling means the pixels in the horizontal direction and the vertical direction of pixels are sampled by 2:1.

Reference website :

  1. http://www.fourcc.org/yuv.php
  2. http://blog.sina.com.cn/s/blog_7050644f010123w4.html
  3. http://www.52rd.com/Blog/Archive_Thread.asp?SID=8955

Share this product

forefront imaging product catalog

Forefront Imaging Product Catalog

We welcome you to download our latest catalog in .PDF format. (Please note: Adobe Acrobat reader is required to view .PDF files. Don't have Adobe Acrobat (Download for free!)