RGB24
From Avisynth wiki
(Difference between revisions)
(made pixel layout correction) |
m (1 revision) |
Latest revision as of 22:34, 9 May 2013
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|...