Skip to content

Commit

Permalink
Remove deprecated parameters Y, U, and V
Browse files Browse the repository at this point in the history
  • Loading branch information
cantabile committed Aug 23, 2016
1 parent 072521e commit 7871960
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
4 changes: 1 addition & 3 deletions readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The file ``nnedi3_weights.bin`` is required. In Windows, it must be located in t

::

nnedi3.nnedi3(clip clip, int field[, bint dh=False, int[] planes=[0, 1, 2], bint Y=True, bint U=True, bint V=True, int nsize=6, int nns=1, int qual=1, int etype=0, int pscrn=2, bint opt=True, bint int16_prescreener=True, bint int16_predictor=True, int exp=0])
nnedi3.nnedi3(clip clip, int field[, bint dh=False, int[] planes=[0, 1, 2], int nsize=6, int nns=1, int qual=1, int etype=0, int pscrn=2, bint opt=True, bint int16_prescreener=True, bint int16_predictor=True, int exp=0])

Allowed values (ranges are inclusive):

Expand All @@ -33,8 +33,6 @@ If *dh* is True, the ``_Field`` frame property is used to determine each frame's

If *dh* is False, the ``_FieldBased`` frame property is used to determine each frame's field dominance. The *field* parameter is only a fallback for frames that don't have the ``_FieldBased`` property, or where said property indicates that the frame is progressive.

The *Y*, *U*, and *V* parameters are deprecated. Use the *planes* parameter instead.

This plugin no longer provides the nnedi3_rpow2 filter. A replacement can be found here: http://forum.doom9.org/showthread.php?t=172652


Expand Down
31 changes: 0 additions & 31 deletions src/nnedi3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1389,34 +1389,6 @@ static void VS_CC nnedi3Create(const VSMap *in, VSMap *out, void *userData, VSCo
d.process[o] = 1;
}

int Y = int64ToIntS(vsapi->propGetInt(in, "Y", 0, &err));
if (!err) {
if (m > -1) {
vsapi->setError(out, "nnedi3: can't use 'Y' and 'planes' at the same time");
vsapi->freeNode(d.node);
return;
}
d.process[0] = Y;
}
int U = int64ToIntS(vsapi->propGetInt(in, "U", 0, &err));
if (!err) {
if (m > -1) {
vsapi->setError(out, "nnedi3: can't use 'U' and 'planes' at the same time");
vsapi->freeNode(d.node);
return;
}
d.process[1] = U;
}
int V = int64ToIntS(vsapi->propGetInt(in, "V", 0, &err));
if (!err) {
if (m > -1) {
vsapi->setError(out, "nnedi3: can't use 'V' and 'planes' at the same time");
vsapi->freeNode(d.node);
return;
}
d.process[2] = V;
}

d.nsize = int64ToIntS(vsapi->propGetInt(in, "nsize", 0, &err));
if (err)
d.nsize = 6;
Expand Down Expand Up @@ -1550,9 +1522,6 @@ VS_EXTERNAL_API(void) VapourSynthPluginInit(VSConfigPlugin configFunc, VSRegiste
"field:int;"
"dh:int:opt;"
"planes:int[]:opt;"
"Y:int:opt;"
"U:int:opt;"
"V:int:opt;"
"nsize:int:opt;"
"nns:int:opt;"
"qual:int:opt;"
Expand Down

0 comments on commit 7871960

Please sign in to comment.