fb_bitfield

Description

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

Definition

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 the leftmost bit.
  • Other values: The MSB is the rightmost bit.