![]() |
Oyranos
git-devel
Oyranos is a full featured Color Management System
|
A FilterNode object. More...
#include <oyFilterNode_s.h>


Public Member Functions | |
| OYAPI oyFilterNode_s *OYEXPORT | oyFilterNode_New (oyObject_s object) |
| allocate a new FilterNode object More... | |
| OYAPI oyFilterNode_s *OYEXPORT | oyFilterNode_Copy (oyFilterNode_s *filternode, oyObject_s object) |
| Copy or Reference a FilterNode object. More... | |
| OYAPI int OYEXPORT | oyFilterNode_Release (oyFilterNode_s **filternode) |
| release and possibly deallocate a oyFilterNode_s object More... | |
| int | oyFilterNode_Connect (oyFilterNode_s *input, const char *socket_nick, oyFilterNode_s *output, const char *plug_nick, int flags OY_UNUSED) |
| Connect two nodes by a edge. More... | |
| OYAPI int OYEXPORT | oyFilterNode_ConnectorMatch (oyFilterNode_s *node_first, int pos_first, oyFilterPlug_s *plug) |
| Check if a connector match to a FilterNode. More... | |
| oyFilterNode_s * | oyFilterNode_Create (const char *registration, oyFilterCore_s *filter, oyObject_s object) |
| Initialise a new filter node object properly. More... | |
| oyStruct_s * | oyFilterNode_GetData (oyFilterNode_s *node, int socket_pos) |
| Get process data from a filter socket. More... | |
| int | oyFilterNode_SetData (oyFilterNode_s *node, oyStruct_s *data, int socket_pos, oyObject_s *object) |
| Set process data to a filter socket. More... | |
| int | oyFilterNode_Disconnect (oyFilterNode_s *node, int pos) |
| Disconnect two nodes by a edge. More... | |
| int | oyFilterNode_EdgeCount (oyFilterNode_s *node, int is_input, int flags) |
| Count real and potential connections to a filter node object. More... | |
| OYAPI int OYEXPORT | oyFilterNode_GetConnectorPos (oyFilterNode_s *node, int is_input, const char *pattern, int nth_of_type, int flags) |
| Get a oyFilterSocket_s or oyFilterPlug_s position from a FilterNode. More... | |
| OYAPI int OYEXPORT | oyFilterNode_GetId (oyFilterNode_s *node) |
| Get the object Id. More... | |
| OYAPI oyFilterPlug_s *OYEXPORT | oyFilterNode_GetPlug (oyFilterNode_s *node, int pos) |
| Get a oyFilterPlug_s of type from a FilterNode. More... | |
| OYAPI int OYEXPORT | oyFilterNode_Run (oyFilterNode_s *node, oyFilterPlug_s *plug, oyPixelAccess_s *ticket) |
| Run a connected oyFilterPlug_s through the FilterNode. More... | |
| OYAPI oyFilterSocket_s *OYEXPORT | oyFilterNode_GetSocket (oyFilterNode_s *node, int pos) |
| Get a oyFilterSocket_s of type from a FilterNode. More... | |
| OYAPI oyFilterNode_s *OYEXPORT | oyFilterNode_GetSocketNode (oyFilterNode_s *node, int pos, int plugs_pos) |
| Get a neighbouring oyFilterNode_s. More... | |
| OYAPI int OYEXPORT | oyFilterNode_CountSocketNodes (oyFilterNode_s *node, int pos, int flags) |
| Get a neighbouring oyFilterNode_s. More... | |
| OYAPI oyFilterNode_s *OYEXPORT | oyFilterNode_GetPlugNode (oyFilterNode_s *node, int pos) |
| Get a neighbouring oyFilterNode_s. More... | |
| const char * | oyFilterNode_GetText (oyFilterNode_s *node, oyNAME_e name_type) |
| Serialise filter node to text. More... | |
| oyFilterNode_s * | oyFilterNode_NewWith (const char *registration, oyOptions_s *options, oyObject_s object) |
| Initialise a complete filter node. More... | |
| OYAPI oyConnector_s *OYEXPORT | oyFilterNode_ShowConnector (oyFilterNode_s *node, int as_pos, int is_plug) |
| Get a connector description from a filter module. More... | |
| OYAPI oyFilterCore_s *OYEXPORT | oyFilterNode_GetCore (oyFilterNode_s *node) |
| Get filter core. More... | |
| OYAPI const char *OYEXPORT | oyFilterNode_GetRegistration (oyFilterNode_s *node) |
| Get filter core registration. More... | |
| OYAPI const char *OYEXPORT | oyFilterNode_GetRendererRegistration (oyFilterNode_s *node) |
| Get filters registration. More... | |
| OYAPI const char *OYEXPORT | oyFilterNode_GetRelatives (oyFilterNode_s *node) |
| Get filter relatives string. More... | |
| OYAPI const char *OYEXPORT | oyFilterNode_GetModuleName (oyFilterNode_s *node) |
| Get filter core module string. More... | |
| OYAPI oyPointer_s *OYEXPORT | oyFilterNode_GetContext (oyFilterNode_s *node) |
| Get module data. More... | |
| OYAPI int OYEXPORT | oyFilterNode_SetContext (oyFilterNode_s *node, oyPointer_s *data) |
| Set module data. More... | |
| oyBlob_s * | oyFilterNode_ToBlob (oyFilterNode_s *node, oyObject_s object) |
| Node context to binary blob. More... | |
| OYAPI oyOptions_s *OYEXPORT | oyFilterNode_GetTags (oyFilterNode_s *node) |
| Get filter tags. More... | |
| OYAPI int OYEXPORT | oyFilterNode_SetBackendContext (oyFilterNode_s *obj, oyPointer_s *ptr) |
| set backend specific runtime data More... | |
| OYAPI oyPointer_s *OYEXPORT | oyFilterNode_GetBackendContext (oyFilterNode_s *obj) |
| get backend specific runtime data More... | |
| void | oyFilterNode_Release__Members (oyFilterNode_s_ *filternode) |
| Custom FilterNode destructor. More... | |
| int | oyFilterNode_Init__Members (oyFilterNode_s_ *filternode OY_UNUSED) |
| Custom FilterNode constructor. More... | |
| int | oyFilterNode_Copy__Members (oyFilterNode_s_ *dst, oyFilterNode_s_ *src) |
| Custom FilterNode copy constructor. More... | |
| int | oyFilterNode_AddToAdjacencyLst_ (oyFilterNode_s_ *s, oyFilterNodes_s_ *nodes, oyFilterPlugs_s_ *edges, const char *mark, int flags) |
| Get a graphs adjazency list. More... | |
| int | oyFilterNode_SetFromPattern_ (oyFilterNode_s_ *node, int select_core, const char *pattern) |
| Set module core in a filter. More... | |
| int | oyFilterNode_SetContext_ (oyFilterNode_s_ *node, oyBlob_s_ *blob) |
| Set module context in a filter. More... | |
| oyStructList_s * | oyFilterNode_GetData_ (oyFilterNode_s_ *node, int get_plug) |
| Get the processing data from a filter node. More... | |
| oyFilterNode_s * | oyFilterNode_GetLastFromLinear_ (oyFilterNode_s_ *first) |
| Get last node from a linear graph. More... | |
| oyFilterNode_s * | oyFilterNode_GetNextFromLinear_ (oyFilterNode_s_ *first) |
| Get next node from a linear graph. More... | |
| oyPointer | oyFilterNode_TextToInfo_ (oyFilterNode_s_ *node, size_t *size, oyAlloc_f allocateFunc) |
| Serialise filter node to binary. More... | |
| oyOptions_s * | oyFilterNode_GetOptions (oyFilterNode_s *node, int flags) |
| Get filter options. More... | |
| int | oyFilterNode_GetUi (oyFilterNode_s *node, int flags, char **ui_text, char ***namespaces, oyAlloc_f allocateFunc) |
| Get filter options XFORMS. More... | |
| oyFilterNode_s * | oyFilterNode_FromOptions (const char *db_base_key, const char *base_pattern, oyOptions_s *options, oyObject_s object) |
| Create a FilterNode from options and fallbacks. More... | |
Public Member Functions inherited from oyStruct_s | |
| const char * | oyStruct_GetTextFromModule (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags) |
| get object infos from a module More... | |
| const char * | oyStruct_GetText (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags) |
| Get a text dump. More... | |
| int | oyStruct_RegisterStaticMessageFunc (int type, oyStruct_RegisterStaticMessageFunc_f msg, oyStruct_RegisterStaticFreeFunc_f free_func) |
| register a function for verbosity More... | |
| const char * | oyStruct_GetInfo (oyPointer context_object, oyNAME_e type, int flags) |
| get a additional string from a object More... | |
| const char * | oyStructTypeToText (oyOBJECT_e type) |
| Objects type to small string. More... | |
Data Fields | |
| const oyOBJECT_e | type_ |
| Type of object. More... | |
| oyStruct_Copy_f | copy |
| Copy function. More... | |
| oyStruct_Release_f | release |
| Release function. More... | |
| oyObject_s | oy_ |
| Oyranos internal object. More... | |
Data Fields inherited from oyStruct_s | |
| const oyOBJECT_e | type_ |
| Type of object. More... | |
| oyStruct_Copy_f | copy |
| Copy function. More... | |
| oyStruct_Release_f | release |
| Release function. More... | |
| oyObject_s | oy_ |
| Oyranos internal object. More... | |
A FilterNode object.
Filter nodes chain filters into a oyConversion_s graph. The filter nodes use plugs and sockets for creating connections. Each plug can only connect to one socket.
This object provides support for separation of options from chaining. So it will be possible to implement options changing, which can affect the same filter instance in different graphs. Options and UI data is defined in the oyCMMapi4_s structure, which is part of the oyFilterCore_s part of a oyFilterNode_s.
A oyFilterNode_s can have various oyFilterPlug_s ' to obtain data from different sources. The required number is described in the oyCMMapi7_s structure. This structure defines as well the data processing method for running the DAC.
oyFilterSocket_s is designed to accept arbitrary numbers of connections to allow for viewing on a filters data output or observe its state changes.
oyFilterNode_s types, like oyCMMapi4_s, oyCMMapi6_s and oyCMMapi7_s, are contained inside libraries called modules. The filter types are identified by Registration strings.
A node can have several data entries attached to it. However, a node type is free to use only in case it is required for it to work. That entries are processing data like images, processing context like curves, tables or the options and a runtime context. The two types of context apply to both filter node types oyCMMapi4_s and oyCMMapi7_s. Here the API overview:
As the oyCMMapi4_s filter part and the oyCMMapi7_s filter part can be completely differently implemented. Thus Oyranos' core needs to connect both. It does this by converting the oyCMMapi4_s processing context from oyFilterNode_ToBlob() to the processing context type of oyCMMapi7_s. The filter type must be provided to Oyranos as a oyCMMapi6_s converter filter. This oyCMMapi6_s converter must support both data types specified in oyCMMapi4_Create() context_type argument and the one specified by the oyCMMapi7_Create() context_type argument. oyFilterGraph_PrepareContexts(), which calls the internal oyFilterNode_SetContext_(), resolves the processing contexts automatically during oyConversion_RunPixels().
| int oyFilterNode_AddToAdjacencyLst_ | ( | oyFilterNode_s_ * | s, |
| oyFilterNodes_s_ * | nodes, | ||
| oyFilterPlugs_s_ * | edges, | ||
| const char * | mark, | ||
| int | flags | ||
| ) |
Get a graphs adjazency list.
Function oyFilterNode_AddToAdjacencyLst_
| int oyFilterNode_Connect | ( | oyFilterNode_s * | input, |
| const char * | socket_nick, | ||
| oyFilterNode_s * | output, | ||
| const char * | plug_nick, | ||
| int flags | OY_UNUSED | ||
| ) |
Connect two nodes by a edge.
Function oyFilterNode_Connect
| input | the node to provide a socket |
| socket_nick | name of socket |
| output | the node providing a plug |
| plug_nick | name of plug |
| flags | unused |
| OYAPI int OYEXPORT oyFilterNode_ConnectorMatch | ( | oyFilterNode_s * | node_first, |
| int | pos_first, | ||
| oyFilterPlug_s * | plug | ||
| ) |
Check if a connector match to a FilterNode.
Function oyFilterNode_ConnectorMatch
| node_first | first node |
| pos_first | position of connector from first node |
| plug | second connector |
Check if basic types match.
More detailed checking is done in oyCMMapi5_s.
| OYAPI oyFilterNode_s *OYEXPORT oyFilterNode_Copy | ( | oyFilterNode_s * | filternode, |
| oyObject_s | object | ||
| ) |
Copy or Reference a FilterNode object.
Function oyFilterNode_Copy
The function is for copying and for referencing. The reference is the most often used way, which saves resourcs and time.
| [in] | filternode | FilterNode struct object |
| object | NULL - means reference, the optional object triggers a real copy |
| int oyFilterNode_Copy__Members | ( | oyFilterNode_s_ * | dst, |
| oyFilterNode_s_ * | src | ||
| ) |
Custom FilterNode copy constructor.
Function oyFilterNode_Copy__Members
| OYAPI int OYEXPORT oyFilterNode_CountSocketNodes | ( | oyFilterNode_s * | node, |
| int | pos, | ||
| int | flags | ||
| ) |
Get a neighbouring oyFilterNode_s.
Function oyFilterNode_CountSocketNodes
| node | filter node |
| pos | connector position |
| flags | specify which number to return
|
| oyFilterNode_s * oyFilterNode_Create | ( | const char * | registration, |
| oyFilterCore_s * | filter, | ||
| oyObject_s | object | ||
| ) |
Initialise a new filter node object properly.
Function oyFilterNode_Create
| registration | the processing filter Registration string |
| filter | the context filter |
| object | the optional object |
Referenced by oyFilterNode_NewWith().
| int oyFilterNode_Disconnect | ( | oyFilterNode_s * | node, |
| int | pos | ||
| ) |
Disconnect two nodes by a edge.
Function oyFilterNode_Disconnect
| node | a node |
| pos | the plug number to release |
| int oyFilterNode_EdgeCount | ( | oyFilterNode_s * | node, |
| int | is_input, | ||
| int | flags | ||
| ) |
Count real and potential connections to a filter node object.
Function oyFilterNode_EdgeCount
| node | the node |
| is_input | 1 - plugs; 0 - sockets |
| flags | specify which number to return
|
| oyFilterNode_s * oyFilterNode_FromOptions | ( | const char * | db_base_key, |
| const char * | base_pattern, | ||
| oyOptions_s * | options, | ||
| oyObject_s | object | ||
| ) |
Create a FilterNode from options and fallbacks.
Function oyFilterNode_FromOptions
The returned object will be created from the found registration pattern strings. The first pattern will be searched in the options argument. If a option is found and that fails, then NULL will be returned. Else the db_base_key will be used to ask the Oyranos DB for context and renderer patterns. In case that fails a policy module will be asked for a default through the base_pattern.
| db_base_key | the Oyranos DB basic key, which will appended by "context" and "renderer"; optional |
| base_pattern | the basic pattern to search in the options and to be used as fallback |
| options | the options to search in for the base_pattern and get "context" and "renderer" keys; optional |
| object | the optional object |
References oyGetFilterNodeRegFromOptions().
| OYAPI oyPointer_s *OYEXPORT oyFilterNode_GetBackendContext | ( | oyFilterNode_s * | obj | ) |
get backend specific runtime data
Backend context is used by a filter type during execution. That is apart from a filter, which can have it's object data associated through a oyFilterNode_GetContext().
| [in] | obj | the node object |
| OYAPI int OYEXPORT oyFilterNode_GetConnectorPos | ( | oyFilterNode_s * | node, |
| int | is_input, | ||
| const char * | pattern, | ||
| int | nth_of_type, | ||
| int | flags | ||
| ) |
Get a oyFilterSocket_s or oyFilterPlug_s position from a FilterNode.
Function oyFilterNode_GetConnectorPos
| node | filter node |
| is_input | 1 - plugs; 0 - sockets |
| pattern | the pattern to be found in the oyConnector_s::connector_type of the searched plug or socket. Its a Registration string. E.g. a typical data connection: "//" OY_TYPE_STD "/data" |
| nth_of_type | the position in the group of the connector type for this filter; Note this parameter makes only sense for the last filter defined connector, as only this one can occure multiple times. |
| flags | specify which status to return
|
| OYAPI oyPointer_s *OYEXPORT oyFilterNode_GetContext | ( | oyFilterNode_s * | node | ) |
Get module data.
The filters private data, previously requested over oyCMMapi4_s::oyCMMFilterNode_ContextToMem() and converted to oyCMMapi4_s::context_type
| [in,out] | node | filter object |
| OYAPI oyFilterCore_s *OYEXPORT oyFilterNode_GetCore | ( | oyFilterNode_s * | node | ) |
Get filter core.
Function oyFilterNode_GetCore
| [in,out] | node | filter object |
| oyStruct_s * oyFilterNode_GetData | ( | oyFilterNode_s * | node, |
| int | socket_pos | ||
| ) |
Get process data from a filter socket.
Function oyFilterNode_GetData
| [in] | node | filter node |
| [in] | socket_pos | position of socket |
| oyStructList_s * oyFilterNode_GetData_ | ( | oyFilterNode_s_ * | node, |
| int | get_plug | ||
| ) |
Get the processing data from a filter node.
Function oyFilterNode_GetData_
| OYAPI int OYEXPORT oyFilterNode_GetId | ( | oyFilterNode_s * | node | ) |
Get the object Id.
Function oyFilterNode_GetId
| [in] | node | filter node |
| oyFilterNode_s * oyFilterNode_GetLastFromLinear_ | ( | oyFilterNode_s_ * | first | ) |
Get last node from a linear graph.
Function oyFilterNode_GetLastFromLinear_
| OYAPI const char *OYEXPORT oyFilterNode_GetModuleName | ( | oyFilterNode_s * | node | ) |
Get filter core module string.
Function oyFilterNode_GetModuleName
| [in,out] | node | filter object |
| oyFilterNode_s * oyFilterNode_GetNextFromLinear_ | ( | oyFilterNode_s_ * | first | ) |
Get next node from a linear graph.
Function oyFilterNode_GetNextFromLinear_
| oyOptions_s * oyFilterNode_GetOptions | ( | oyFilterNode_s * | node, |
| int | flags | ||
| ) |
Get filter options.
Function oyFilterNode_GetOptions
Options are typical user visible settings, which can be presistently stored as user preferences and can be displayed in filter dialogs.
| [in,out] | node | filter object |
| flags | see oyOptions_s::oyOptions_ForFilter() |
Observe exported options for changes and propagate to a existing graph.
| OYAPI oyFilterPlug_s *OYEXPORT oyFilterNode_GetPlug | ( | oyFilterNode_s * | node, |
| int | pos | ||
| ) |
Get a oyFilterPlug_s of type from a FilterNode.
Function oyFilterNode_GetPlug
| node | filter node |
| pos | position of connector from filter |
| OYAPI oyFilterNode_s *OYEXPORT oyFilterNode_GetPlugNode | ( | oyFilterNode_s * | node, |
| int | pos | ||
| ) |
Get a neighbouring oyFilterNode_s.
Function oyFilterNode_GetPlugNode
| node | filter node |
| pos | connector position |
| OYAPI const char *OYEXPORT oyFilterNode_GetRegistration | ( | oyFilterNode_s * | node | ) |
Get filter core registration.
Function oyFilterNode_GetRegistration
| [in,out] | node | filter object |
| OYAPI const char *OYEXPORT oyFilterNode_GetRelatives | ( | oyFilterNode_s * | node | ) |
Get filter relatives string.
Function oyFilterNode_GetRelatives
| [in,out] | node | filter object |
| OYAPI const char *OYEXPORT oyFilterNode_GetRendererRegistration | ( | oyFilterNode_s * | node | ) |
Get filters registration.
Function oyFilterNode_GetRendererRegistration
| [in,out] | node | filter object |
| OYAPI oyFilterSocket_s *OYEXPORT oyFilterNode_GetSocket | ( | oyFilterNode_s * | node, |
| int | pos | ||
| ) |
Get a oyFilterSocket_s of type from a FilterNode.
Function oyFilterNode_GetSocket
| node | filter node |
| pos | absolute position of connector |
| OYAPI oyFilterNode_s *OYEXPORT oyFilterNode_GetSocketNode | ( | oyFilterNode_s * | node, |
| int | pos, | ||
| int | plugs_pos | ||
| ) |
Get a neighbouring oyFilterNode_s.
Function oyFilterNode_GetSocketNode
| node | filter node |
| pos | connector position |
| plugs_pos | position in plug list |
| OYAPI oyOptions_s *OYEXPORT oyFilterNode_GetTags | ( | oyFilterNode_s * | node | ) |
Get filter tags.
Function oyFilterNode_GetTags
Tags are non persistent informations. Typical they are not directly user visible other than filter core options, which can appear inside dialogs.
| [in,out] | node | filter object |
| const char * oyFilterNode_GetText | ( | oyFilterNode_s * | node, |
| oyNAME_e | name_type | ||
| ) |
Serialise filter node to text.
Function oyFilterNode_GetText
Serialise into:
This function provides a complete description of the context. It might be more adequate to use only a subset for hashing as not all data and options might have an effect to the context data result. The oyCMMapi4_s::oyCMMFilterNode_GetText() function provides a way to let a module decide about what to place into a hash text.
| [in,out] | node | filter node |
| [out] | name_type | the type |
| int oyFilterNode_GetUi | ( | oyFilterNode_s * | node, |
| int | flags, | ||
| char ** | ui_text, | ||
| char *** | namespaces, | ||
| oyAlloc_f | allocateFunc | ||
| ) |
Get filter options XFORMS.
Function oyFilterNode_GetUi
| [in,out] | node | filter object |
| [in] | flags | modificators
|
| [out] | ui_text | XFORMS fitting to the node Options |
| [out] | namespaces | additional XML namespaces |
| allocateFunc | optional user allocator |
| int oyFilterNode_Init__Members | ( | oyFilterNode_s_ *filternode | OY_UNUSED | ) |
Custom FilterNode constructor.
Function oyFilterNode_Init__Members
Is this necessary?? filternode->relatives_ = 0;
if( filternode->backend_data && filternode->backend_data->release ) filternode->backend_data->release( (oyStruct_s**) & filternode->backend_data ); filternode->backend_data = 0;
| OYAPI oyFilterNode_s *OYEXPORT oyFilterNode_New | ( | oyObject_s | object | ) |
allocate a new FilterNode object
Function oyFilterNode_New
| oyFilterNode_s * oyFilterNode_NewWith | ( | const char * | registration, |
| oyOptions_s * | options, | ||
| oyObject_s | object | ||
| ) |
Initialise a complete filter node.
Function oyFilterNode_NewWith
The function creates both the oyFilterCore_s with oyFilterCore_NewWith() and oyFilterNode_s with oyFilterNode_Create().
| registration | a Registration string, |
| options | options for the filter |
| object | the optional object |
References oyFilterCore_s::oyFilterCore_NewWith(), oyFilterCore_s::oyFilterCore_Release(), and oyFilterNode_Create().
| OYAPI int OYEXPORT oyFilterNode_Release | ( | oyFilterNode_s ** | filternode | ) |
release and possibly deallocate a oyFilterNode_s object
Function oyFilterNode_Release
| [in,out] | filternode | FilterNode struct object |
| void oyFilterNode_Release__Members | ( | oyFilterNode_s_ * | filternode | ) |
Custom FilterNode destructor.
Function oyFilterNode_Release__Members
| OYAPI int OYEXPORT oyFilterNode_Run | ( | oyFilterNode_s * | node, |
| oyFilterPlug_s * | plug, | ||
| oyPixelAccess_s * | ticket | ||
| ) |
Run a connected oyFilterPlug_s through the FilterNode.
Function oyFilterNode_Run
| node | filter node |
| plug | the plug |
| ticket | the job ticket |
| OYAPI int OYEXPORT oyFilterNode_SetBackendContext | ( | oyFilterNode_s * | obj, |
| oyPointer_s * | ptr | ||
| ) |
set backend specific runtime data
Runtime data can be used as context by a backend during execution. The data is typical set during oyCMMapi7_s creation. This function provides access for a backend inside a DAC in order to change that data during backend lifetime.
That data is apart from a filter object, which can have lifetime data associated through a oyFilterNode_GetContext(). A filter connector can have its processing data associated through oyFilterNode_SetData().
| [in,out] | obj | the node object |
| [in] | ptr | the data needed to run the filter type |
| OYAPI int OYEXPORT oyFilterNode_SetContext | ( | oyFilterNode_s * | node, |
| oyPointer_s * | data | ||
| ) |
Set module data.
| int oyFilterNode_SetContext_ | ( | oyFilterNode_s_ * | node, |
| oyBlob_s_ * | blob | ||
| ) |
Set module context in a filter.
Function oyFilterNode_SetContext_
| int oyFilterNode_SetData | ( | oyFilterNode_s * | node, |
| oyStruct_s * | data, | ||
| int | socket_pos, | ||
| oyObject_s * | object | ||
| ) |
Set process data to a filter socket.
Function oyFilterNode_SetData
| [in,out] | node | filter node |
| [in] | data | data |
| [in] | socket_pos | position of socket |
| [in] | object | a object to not only set a reference |
| int oyFilterNode_SetFromPattern_ | ( | oyFilterNode_s_ * | node, |
| int | select_core, | ||
| const char * | pattern | ||
| ) |
Set module core in a filter.
Function oyFilterNode_SetFromPattern_
| OYAPI oyConnector_s *OYEXPORT oyFilterNode_ShowConnector | ( | oyFilterNode_s * | node, |
| int | as_pos, | ||
| int | is_plug | ||
| ) |
Get a connector description from a filter module.
Function oyFilterNode_ShowConnector
The path to obtain a new connector. The filter can say it has more connectors to provide for a certain kind of static connector eigther described in oyCMMapi4_s::inputs or oyCMMapi4_s::outputs.
| [in] | node | the module filter node |
| [in] | as_pos | the according oyConnector_s |
| [in] | is_plug | select from 0 - plugs or 1 - sockets |
| oyPointer oyFilterNode_TextToInfo_ | ( | oyFilterNode_s_ * | node, |
| size_t * | size, | ||
| oyAlloc_f | allocateFunc | ||
| ) |
Serialise filter node to binary.
Function oyFilterNode_TextToInfo_
| oyBlob_s * oyFilterNode_ToBlob | ( | oyFilterNode_s * | node, |
| oyObject_s | object | ||
| ) |
Node context to binary blob.
Typical a context from a CMM will be returned. It is a intermediate context from oyCMMapi4_s backend. For a CMM with a registration string including "icc_color", the context type should be "oyDL" and this function shall return a ICC device link profile. A converted context, which is suited for precessing by oyCMMapi7_s backends, is stored inside the node and can be obtained by oyFilterNode_GetContext().
The function is expensive, as it requests the data from the CMM without caching.
| node | node object |
| object | the optional object |
| oyStruct_Copy_f oyFilterNode_s::copy |
Copy function.
| oyObject_s oyFilterNode_s::oy_ |
Oyranos internal object.
Features name and hash. Do not change during object life time.
| oyStruct_Release_f oyFilterNode_s::release |
Release function.
| const oyOBJECT_e oyFilterNode_s::type_ |
Type of object.
The struct type tells Oyranos how to interprete hidden fields.
1.8.13