Fbpitch - Planar DX/PCI User Manual

Display controller
Hide thumbs Also See for DX/PCI:
Table of Contents

Advertisement

FbPitch

Purpose Use
Syntax
DLong (*FbPitch) (dev)
Return value Pitch of framebuffer in pixels.
Description The pitch, sometimes called the stride, is the number of pixels
in one horizontal line of the framebuffer. It may be equal to
or greater than the width of the visible portion of the frame-
buffer. To get from one pixel to another immediately below
it on the screen, skip forward in the framebuffer by the
number of pixels returned by
To get the number of bits per pixel, use the
member function (page 87) of the device handle.
Example This example returns the pitch of the framebuffer in pixels
and bytes.
#include "domeMd.h"
DMdDev
DLong
pitchInPixels = (*dev->FbPitch) (dev);
pitchInBytes = pitchInPixels *
See also
FbWidth, FbHeight, FbSize, BitsPerPixel,
DMdDev Structure
to get the pitch of the framebuffer.

FbPitch

Parameter Type
DMdDev
dev;
pitchInPixels, pitchInBytes;
.
.
.
((*dev->BitsPerPixel) (dev) + 7) / 8;
Name
Description
Device handle of the DOME device
dev
FbPitch()
FbPitch | 85
.
BitsPerPixel()

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dome m2/pciRx/pciDome dx/pciDome rx/pci

Table of Contents