IC Imaging Control C++

FrameQueueSink::create Method

FrameQueueSink::create Method

Creates a new FrameQueueSink.
Syntax:
static tFrameSnapSinkPtr    create( FrameQueueSinkListener& listener );
static tFrameSnapSinkPtr    create( FrameQueueSinkListener& listener, const FrameTypeInfo& type );
static tFrameSnapSinkPtr    create( FrameQueueSinkListener& listener, const FrameTypeInfoArray& acceptedFrameTypes );

Parameter Description
listener

Specifies the listener reference which gets the according framesQueued calls.

type

Specifies the FrameTypeInfo of the sink itself.

acceptedFrameTypes

Specifies a list of acceptable frame types for the sink.

Return Value:

A pointer to the new FrameQueueSink, or NULL,if an error occurred.

Examples:

This example creates a listener object (which must be derived from FrameQueueSinkListener ) and with this in hand then creates a FrameQueueSink object. Note that via the acceptedTypes parameter, this sink only accepts RGB formats.

sink_listener    listener_instance;
// Create a FrameTypeInfoArray data structure describing the allowed color formats.
FrameTypeInfoArray acceptedTypes = FrameTypeInfoArray::createRGBArray();
// Create the frame sink
tFrameQueueSinkPtr pSink = FrameQueueSink::create( listener_instance, acceptedTypes );
// Apply the sink to the grabber.
grabber.setSinkType( pSink );

See also: FrameQueueSink, tFrameQueueSinkPtr, FrameQueueSinkListener, FrameTypeInfo, FrameTypeInfoArray

<< FrameQueueSink

Get in touch with us


About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us