Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

IMG_FMT_BPL()

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

Synopsis:

#include <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:

img

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

See also:

img_convert_data(), img_decode_callouts_t