Bit plane 2026-11-05
A bit plane collects one fixed bit position from every integer sample of a digital image. For an unsigned -bit sample , define its plane- entry byEach bit plane contains binary entries, while the powers of two determine their contribution to reconstruction. The Linux frame-buffer API uses this organization for
FB_TYPE_PLANES, where plane stores bit of the pixel samples.[ref]The Frame Buffer Device API in the Linux Kernel documentation. §2, FB_TYPE_PLANES and FB_TYPE_INTERLEAVED_PLANES
For an original four-pixel row stored as four-bit unsigned samples, the bit planes from most significant to least significant areThe third pixel reconstructs as . The same operation applies independently to every location in an image; bit-plane slicing extracts those binary images for inspection or processing.
If only the two most significant bit planes are retained, this row reconstructs as . In general that truncation gives , so the discarded remainder lies between zero and three. This is a statement about integer code values; a nonlinear color space can make equal code changes correspond to unequal light changes.
A bit plane differs from a component plane. One eight-bit red component plane can itself be decomposed into eight bit planes. State the component encoding, bit significance and layout before combining planes; the visible binary pattern alone does not identify its significance. Bit planes need not form a progression from smooth shapes to noise for arbitrary images.
Component plane 2026-11-05
A component plane stores samples of one component of an image separately from its other components. A three-plane RGB color model layout can hold a red array, a green array and a blue array, each indexed by image location. Intel's planar-format table records this arrangement explicitly.[ref]
Pixel and Planar Image Formats by Intel. Planar Image Formats table, RGB row with separate R, G and B planes
A component plane stores component samples, which can occupy several bits; a bit plane stores only one bit position from each sample.For an original image, takeAt row one, column zero, using zero-based indices, the pixel is . If each component uses one byte and row-major order, the active red bytes are
10 40 70 100. A routine that changes the red component plane can leave the green and blue arrays untouched.The three active arrays contain bytes. With a separately declared four-byte framebuffer stride for each plane's row, storage instead occupies bytes, including padding. The image values are unchanged. A plane's dimensions, base address and row stride are therefore distinct parts of its layout description.
Other colour representations need not have three equal-sized, separate component arrays. Intel's table includes formats with differently sized planes and formats that interleave two colour components in one plane.[ref]
Pixel and Planar Image Formats by Intel. Planar Image Formats table and Plane Size and Layout figures, three-plane and two-plane layouts
A semiplanar pixel format combines a separate plane with such an interleaved plane. Thus an API's memory-plane count alone need not equal the number of colour components. A component plane is a statement about data organization, separate from the color space that interprets its numerical samples. Image memory plane 2026-11-05
An image memory plane is a separately described region of stored image data within a video frame or pixel buffer. It is a memory-organization concept, distinct from a component plane or a bit plane. One memory plane can contain several interleaved components, while one image can use several memory planes.[ref]
For example, NV12M uses one memory plane for luma and another for alternating Cb/Cr samples. It therefore has two memory planes but three colour components. NV21M uses the same plane count with the colour-difference pair order reversed. Their 4:2:0 chroma subsampling specifies sample counts; it does not turn the two components in the second plane into separate allocations.
Allocation capacity and video buffer payload also differ. A V4L2 plane descriptor records
length, bytesused and a V4L2 plane data offset. In that API, bytesused includes the offset before the actual image data, so the image-data extent isThe allocation size is a separate limit.[ref]For an original example, stipulate
length = 4096, bytesused = 3072 and data_offset = 128, all in bytes. The image data begin128 bytes after the plane base and span2944 bytes, ending at base offset3072. They occupy neither the full4096-byte allocation nor all3072 bytes preceding that endpoint. The necessary bounds areA consumer must combine these extents with the actual pixel format and framebuffer stride. A plane's capacity alone does not identify where a particular component or row begins. Planar pixel format 2026-11-05
A planar pixel format distributes a pixel's information among separate planes of stored samples, instead of putting all its components together as in a packed pixel format. A component plane may contain all red samples, another all green samples and another all blue samples. Intel's image-format documentation distinguishes these arrangements explicitly.[ref]
Pixel and Planar Image Formats by Intel. Pixel-Order Image Formats and Planar Image Formats tables, RGB rows
For an original one-row, two-pixel RGB color model image, suppose the component triples are and , each component occupying one byte. A packed order can be
10 20 30 40 50 60. A declared planar layout can instead store red bytes 10 40, green bytes 20 50 and blue bytes 30 60. Reinterpreting one sequence as the other changes the reconstructed colours; it is not an image compression method.For a chosen planar layout with one byte per sample, plane has base address and framebuffer stride bytes. The sample at row and column then has addressFor example, with , , row and column , the red sample is at address . Width, height, plane order, sample size and each plane's stride belong in the layout specification. Separate planes need not be adjacent allocations.
A bit plane is another arrangement: one plane stores the same bit position from many pixels. The Linux frame-buffer API's
FB_TYPE_PLANES uses this bit-plane meaning, rather than one entire colour component per plane.[ref]The Frame Buffer Device API in the Linux Kernel documentation. §2, FB_TYPE_PLANES and FB_TYPE_INTERLEAVED_PLANES
Thus the word planar alone is insufficient to decode a buffer. Processing one component across many pixels can use a contiguous component plane, while processing whole pixels must gather their components according to the declared pixel format.