Skip to content

Commit a43429f

Browse files
committed
Add GNU General Public License
1 parent e7dffbf commit a43429f

File tree

10 files changed

+857
-14
lines changed

10 files changed

+857
-14
lines changed

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

include/Gaussian.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Retinex filter - VapourSynth plugin
3+
* Copyright (C) 2014 mawen1250
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
120
#ifndef GAUSSIAN_H_
221
#define GAUSSIAN_H_
322

include/Helper.h

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Retinex filter - VapourSynth plugin
3+
* Copyright (C) 2014 mawen1250
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
120
#ifndef HELPER_H_
221
#define HELPER_H_
322

@@ -63,17 +82,6 @@ int stride_cal(int width)
6382
}
6483

6584

66-
template < typename T >
67-
T * newbuff(const T * src, int xoffset, int yoffset,
68-
int bufheight, int bufwidth, int bufstride, int height, int width, int stride)
69-
{
70-
T * dst = vs_aligned_malloc<T>(sizeof(T)*bufheight*bufstride, Alignment);
71-
72-
data2buff(dst, src, xoffset, yoffset, bufheight, bufwidth, bufstride, height, width, stride);
73-
74-
return dst;
75-
}
76-
7785
template < typename T >
7886
void data2buff(T * dst, const T * src, int xoffset, int yoffset,
7987
int bufheight, int bufwidth, int bufstride, int height, int width, int stride)
@@ -108,6 +116,15 @@ void data2buff(T * dst, const T * src, int xoffset, int yoffset,
108116
}
109117
}
110118

119+
template < typename T >
120+
T * newbuff(const T * src, int xoffset, int yoffset,
121+
int bufheight, int bufwidth, int bufstride, int height, int width, int stride)
122+
{
123+
T * dst = vs_aligned_malloc<T>(sizeof(T)*bufheight*bufstride, Alignment);
124+
data2buff(dst, src, xoffset, yoffset, bufheight, bufwidth, bufstride, height, width, stride);
125+
return dst;
126+
}
127+
111128
template < typename T >
112129
void freebuff(T * buff)
113130
{

include/MSR.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Retinex filter - VapourSynth plugin
3+
* Copyright (C) 2014 mawen1250
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
120
#ifndef MSR_H_
221
#define MSR_H_
322

include/MSRCP.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Retinex filter - VapourSynth plugin
3+
* Copyright (C) 2014 mawen1250
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
120
#ifndef MSRCP_H_
221
#define MSRCP_H_
322

include/Specification.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Retinex filter - VapourSynth plugin
3+
* Copyright (C) 2014 mawen1250
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
120
#ifndef SPECIFICATION_H_
221
#define SPECIFICATION_H_
322

source/Gaussian.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Retinex filter - VapourSynth plugin
3+
* Copyright (C) 2014 mawen1250
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
120
#include "Gaussian.h"
221

322

source/MSR.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Retinex filter - VapourSynth plugin
3+
* Copyright (C) 2014 mawen1250
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
120
#include <cmath>
221
#include "Helper.h"
322
#include "Gaussian.h"

source/MSRCP.cpp

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
1+
/*
2+
* Retinex filter - VapourSynth plugin
3+
* Copyright (C) 2014 mawen1250
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
120
#include "MSRCP.h"
221

322

423
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
524

625

7-
static void VS_CC MSRCPInit(VSMap *in, VSMap *out, void **instanceData, VSNode *node, VSCore *core, const VSAPI *vsapi)
26+
void VS_CC MSRCPInit(VSMap *in, VSMap *out, void **instanceData, VSNode *node, VSCore *core, const VSAPI *vsapi)
827
{
928
MSRCPData *d = reinterpret_cast<MSRCPData *>(*instanceData);
1029

1130
vsapi->setVideoInfo(d->vi, 1, node);
1231
}
1332

14-
static const VSFrameRef *VS_CC MSRCPGetFrame(int n, int activationReason, void **instanceData, void **frameData, VSFrameContext *frameCtx, VSCore *core, const VSAPI *vsapi)
33+
const VSFrameRef *VS_CC MSRCPGetFrame(int n, int activationReason, void **instanceData, void **frameData, VSFrameContext *frameCtx, VSCore *core, const VSAPI *vsapi)
1534
{
1635
const MSRCPData *d = reinterpret_cast<MSRCPData *>(*instanceData);
1736

@@ -47,7 +66,7 @@ static const VSFrameRef *VS_CC MSRCPGetFrame(int n, int activationReason, void *
4766
return nullptr;
4867
}
4968

50-
static void VS_CC MSRCPFree(void *instanceData, VSCore *core, const VSAPI *vsapi)
69+
void VS_CC MSRCPFree(void *instanceData, VSCore *core, const VSAPI *vsapi)
5170
{
5271
MSRCPData *d = reinterpret_cast<MSRCPData *>(instanceData);
5372

source/VSPlugin.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Retinex filter - VapourSynth plugin
3+
* Copyright (C) 2014 mawen1250
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
120
#include "MSRCP.h"
221

322

0 commit comments

Comments
 (0)