fb_bitfield

Description

Bit field, used to set the pixel format. This is a native struct of the Linux FrameBuffer.

Prototype

struct fb_bitfield {
    __u32 offset;           /* beginning of bitfield    */
    __u32 length;           /* length of bitfield       */
    __u32 msb_right;        /* != 0 : Most significant bit is */ 
                            /* right */ 
};

Members

Member

Description

offset

Offset of the color component.

length

Number of bits occupied by each color component.

msb_right

  • 0: The MSB is on the leftmost bit.
  • Non-zero: The MSB is the rightmost bit.