IMG_FMT_BPL()

Calculate the minimum number of bytes required to represent a pixel run

Synopsis:

#include <img/img.h>

#define IMG_FMT_BPL(_fmt, _w) ...

Arguments:

_fmt
An img_format_t specifying the data format of the frame.
_w
The width of the frame, in pixels.

Library:

libimg

Use the -l img option to qcc to link against this library.

Description:

This macro calculates the minimum number of bytes required to represent a run of pixels.

Returns:

The minimum number of bytes required per scanline of the frame.

Classification:

Image library

Safety:
Interrupt handler No
Signal handler No
Thread No