User`s guide
5 Acquiring Image Data
5-8
Format Frame Types
Signed 16- and 32-bit formats; both little-endian and big-endian;
in regular and flip formats.
Floating-point and double formats; both little-endian and big-
endian formats; in regular and flip formats.
Color 8-, 24-, 32-, and 48-bit RGB formats; both little-endian and big-
endian; regular and flip; packed and planar (see “Understanding
Packed and Planar Formats” on page 5-8).
Frame types that specify the order of the bytes of color data (RGB
or GBR) and specify where the blank byte is located (XRGB or
XGBR).
Formats that represent colors in 4-bits (4444), 5-bits (555), 5- or 6-
bits (565), or 10-bits (101010).
Formats that use the YUV color space.
Suggested Algorithm
Your adaptor's getFrameType() function must return the appropriate frame type that
describes the data returned by your device for the specified format.
If your device supports multiple color formats, you do not need to expose all the formats
to toolbox users. You can simply provide one color format and handle the low-level details
in your adaptor with FRAMETYPE.
Example
The following example shows a skeletal implementation of the getFrameType()
function. An actual implementation might select the frame type based on the format the
user selected.
virtual imaqkit::frametypes::FRAMETYPE getFrameType() const {
return imaqkit::frametypes::FRAMETYPE:MONO8;
}
Understanding Packed and Planar Formats
The adaptor kit IAdaptorFrame class defines many FRAMETYPE enumerations that
cover the many possible types of image data devices can return. For example, some
devices can return color images in packed or nonpacked (planar) formats. These formats