Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
YomikoR committed Apr 20, 2024
1 parent e3f3bd7 commit 7250b10
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project('ICCConvert', ['c', 'cpp'],
license: 'LGPL2.1+',
default_options: ['buildtype=release', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17', 'optimization=2'],
meson_version: '>=0.51.0',
version: '6.0'
version: '6.1'
)

sources = [
Expand Down
2 changes: 1 addition & 1 deletion src/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <vector>

#define ICCC_PLUGIN_ID "yomiko.collection.iccconvert"
#define ICCC_PLUGIN_VERSION VS_MAKE_VERSION(6, 0)
#define ICCC_PLUGIN_VERSION VS_MAKE_VERSION(6, 1)

#if defined (_WIN32)
# define DETECTION_IMPLEMENTED 1
Expand Down
13 changes: 6 additions & 7 deletions src/iccc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
#include <mutex>
#include <memory>

#ifndef TYPE_RGB_FLT_PLANAR
#define TYPE_RGB_FLT_PLANAR (FLOAT_SH(1)|COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(4)|PLANAR_SH(1))
#endif

constexpr double REC709_ALPHA = 1.09929682680944;
constexpr double REC709_BETA = 0.018053968510807;

Expand Down Expand Up @@ -388,7 +384,7 @@ void VS_CC icccCreate(const VSMap *in, VSMap *out, void *userData, VSCore *core,
}
else if (srcFormat == pfRGBS)
{
d->inputDataType = TYPE_RGB_FLT_PLANAR;
d->inputDataType = TYPE_RGB_FLT | PLANAR_SH(1);
d->outputDataType = d->inputDataType;
}
else
Expand Down Expand Up @@ -453,7 +449,10 @@ void VS_CC icccCreate(const VSMap *in, VSMap *out, void *userData, VSCore *core,

const char *intentString = vsapi->mapGetData(in, "intent", 0, &err);
if (err || !intentString)
if (inputProfile) d->intent = cmsGetHeaderRenderingIntent(inputProfile);
{
if (inputProfile)
d->intent = cmsGetHeaderRenderingIntent(inputProfile);
}
else
{
int itt = getIntent(intentString);
Expand Down Expand Up @@ -577,7 +576,7 @@ void VS_CC iccpCreate(const VSMap *in, VSMap *out, void *userData, VSCore *core,
}
else if (srcFormat == pfRGBS)
{
d->inputDataType = TYPE_RGB_FLT_PLANAR;
d->inputDataType = TYPE_RGB_FLT | PLANAR_SH(1);
d->outputDataType = d->inputDataType;
}
else
Expand Down

0 comments on commit 7250b10

Please sign in to comment.