Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2014 Dmitry Kazakov <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __KIS_BSPLINE_P_H
#define __KIS_BSPLINE_P_H
#include "einspline/bspline_base.h"
namespace KisBSplines {
inline bc_code convertBorderType(BorderCondition v) {
switch (v) {
case Periodic:
return PERIODIC;
case Deriv1:
return DERIV1;
case Deriv2:
return DERIV2;
case Flat:
return FLAT;
case Natural:
return NATURAL;
case Antiperiodic:
return ANTIPERIODIC;
}
return NATURAL;
}
}
#endif /* __KIS_BSPLINE_P_H */