![]() |
Oyranos
0.9.7
Oyranos is a full featured Color Management System
|
Channel selection module for Oyranos. More...
#include "oyCMMapi4_s.h"
#include "oyCMMapi7_s.h"
#include "oyCMMui_s.h"
#include "oyConnectorImaging_s.h"
#include "oyRectangle_s.h"
#include "oyRectangle_s_.h"
#include "oyranos_cmm.h"
#include "oyranos_cmm_oyra.h"
#include "oyranos_db.h"
#include "oyranos_helper.h"
#include "oyranos_i18n.h"
#include "oyranos_string.h"
#include <math.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <locale.h>
Functions | |
int | oyraFilter_ImageChannelRun (oyFilterPlug_s *requestor_plug, oyPixelAccess_s *ticket) |
implement oyCMMFilter_GetNext_f() More... | |
oyCMMapi_s * | oyraApi7ImageChannelCreate (void) |
oyra oyCMMapi7_s implementation More... | |
oyCMMapi_s * | oyraApi4ImageChannelCreate (void) |
oyra oyCMMapi4_s implementation More... | |
Channel selection module for Oyranos.
Oyranos is an open source Color Management System
oyCMMapi_s* oyraApi4ImageChannelCreate | ( | void | ) |
oyra oyCMMapi4_s implementation
@instance oyra_api4
a filter providing a channel image filter
References oyCMMui_s::oyCMMui_Create().
oyCMMapi_s* oyraApi7ImageChannelCreate | ( | void | ) |
oyra oyCMMapi7_s implementation
@instance oyra_api7
a filter providing a channel image filter
int oyraFilter_ImageChannelRun | ( | oyFilterPlug_s * | requestor_plug, |
oyPixelAccess_s * | ticket | ||
) |
implement oyCMMFilter_GetNext_f()
@func oyraFilter_ImageChannelRun
The "channel" option is build of channel fields. It contains the output section in one text string each in squared brackets: "[a|b|c]". Each channel is separated by pipe sign '|' and can contain the channel symbol or a fill value. -1 indicates the module shall select a appropriate fill value. The counting of channels starts from a and ends with z, covering the range of ASCII a-z. A special case is a "" no op signature. Use it for pass through.
With the above syntax it is possible to add or remove channels or simply switch channels of.
switch the second and thierd channels of: ["a", -1, -1]
swap first with thierd channel: ["c", "b". "a"]
duplicate the second channel and skip the first and possible the c and more source channels: ["b", "b"]
Note: changing the channel count might require a new ICC profile for the output image. Please setup the graph accordingly.
References oy_debug, oyFilterPlug_s::oyFilterPlug_GetSocket(), oyFilterSocket_s::oyFilterSocket_GetData(), and oyFilterSocket_s::oyFilterSocket_GetNode().