Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_cross_channel_filter.cpp File Reference
#include "kis_cross_channel_filter.h"
#include <Qt>
#include <QLayout>
#include <QPixmap>
#include <QPainter>
#include <QDomDocument>
#include <QHBoxLayout>
#include <QRegExp>
#include "KoChannelInfo.h"
#include "KoBasicHistogramProducers.h"
#include "KoColorModelStandardIds.h"
#include "KoColorSpace.h"
#include "KoColorTransformation.h"
#include "KoCompositeColorTransformation.h"
#include "KoCompositeOp.h"
#include "KoID.h"
#include "kis_signals_blocker.h"
#include "kis_bookmarked_configuration_manager.h"
#include "kis_config_widget.h"
#include <filter/kis_filter_configuration.h>
#include <kis_selection.h>
#include <kis_paint_device.h>
#include <kis_processing_information.h>
#include <libs/global/kis_dom_utils.h>
#include "kis_histogram.h"
#include "kis_painter.h"
#include "widgets/kis_curve_widget.h"
#include <KisGlobalResourcesInterface.h>
#include "../../color/colorspaceextensions/kis_hsv_adjustment.h"

Go to the source code of this file.

Functions

int mapChannel (const VirtualChannelInfo &channel)
 

Function Documentation

◆ mapChannel()

int mapChannel ( const VirtualChannelInfo & channel)

Definition at line 342 of file kis_cross_channel_filter.cpp.

342 {
343 switch (channel.type()) {
345 int pixelIndex = channel.pixelIndex();
346 KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE(0 <= pixelIndex && pixelIndex < 4, 0);
347 return pixelIndex;
348 }
352 return KisHSVCurve::Hue;
356 return KisHSVCurve::Value;
357 };
358
360 return 0;
361}
#define KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE(cond, val)
Definition kis_assert.h:129
#define KIS_SAFE_ASSERT_RECOVER_NOOP(cond)
Definition kis_assert.h:130

References VirtualChannelInfo::ALL_COLORS, KisHSVCurve::AllColors, KisHSVCurve::Hue, VirtualChannelInfo::HUE, KIS_SAFE_ASSERT_RECOVER_NOOP, KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, VirtualChannelInfo::LIGHTNESS, VirtualChannelInfo::pixelIndex(), VirtualChannelInfo::REAL, KisHSVCurve::Saturation, VirtualChannelInfo::SATURATION, VirtualChannelInfo::type(), and KisHSVCurve::Value.