6 kinds of original image data format of Forefront Imaging
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?
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.
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.
Each pixel point takes 2 bytes (16 bits), 4:2:2 sampling, it is equal to YUY2.
Each pixel point takes 2 bytes (16 bits), 4:2:2 sampling, the sequence of bytes is just the opposite against YUYV.
Each pixel points occupies 12 bits，4:2:0 sampling，also called IYUV.
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.
- 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;
- 4:2:0sampling means the pixels in the horizontal direction and the vertical direction of pixels are sampled by 2:1.