RGB24

From Avisynth wiki
Jump to: navigation, search

RGB24 is an RGB video format where each pixel of the image contains one byte for each of the R (red), G (green) and B (blue) components in successive places of memory. Since one byte occupies 8 bits, the total number of bits consumed by one pixel is 3*8 = 24 and thus the 24 at the end of the format's name.

As it is apparent, the layout of bytes in memory for an RGB24 video frame follows (assuming a least-significant-bit-is-first memory layout) the pattern below:

low memory address    ---->      high memory address
|pixel|pixel|pixel|pixel|pixel|pixel|pixel|pixel|...
|-----|-----|-----|-----|-----|-----|-----|-----|...
|B|G|R|B|G|R|B|G|R|B|G|R|B|G|R|B|G|R|B|G|R|B|G|R|...
Personal tools