FotoSHOCK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
FotoSHOCKcore::InputProto Class Reference

Class describing inputs of an ImageOperation. More...

#include <ImageOperation.hpp>

Public Member Functions

int addInput (PixelData dataFormat)
 Add a new input. More...
 
const std::size_t size () const
 Return the number of inputs. More...
 

Detailed Description

Class describing inputs of an ImageOperation.

This class describes format for each input in an ImageOperationDescriptor. When the operation is connected to another operation, the format between the operations is checked against the InputProto specified by ImageOperationDescriptor of both operations.

Note
The InputProto allows using some of the special format settings, that makes possible to eg. specify, that the operation accepts any kind of input pixel format..
Examples:
graph/example.cpp.

Member Function Documentation

int FotoSHOCKcore::InputProto::addInput ( PixelData  dataFormat)

Add a new input.

This function is used to add a new input to the InputProto. The input data of operation are checked against the PixelData format specified when the input was added.

Parameters
dataFormatformat of an input. The input format is checked against this format when the input is connected to other operation.
Returns
position (number) of the added input
Examples:
graph/example.cpp.
const std::size_t FotoSHOCKcore::InputProto::size ( ) const

Return the number of inputs.

Returns
number of inputs

The documentation for this class was generated from the following files: