Log in

View Full Version : Alignment in standard 2.6+ avisynth


jpsdr
15th March 2017, 09:56
I vaguely remember something about alignment maybe not working properly in standard avisynth.
It's blur and old, so i may be totaly mistaken or my memory mix with something different.

Is the following line working properly in avisynth 2.6 ?
PVideoFrame dst = env->NewVideoFrame(vi,64);
Because if not, it may explain a lot of things i've struggle with...:sly:

Groucho2004
15th March 2017, 13:22
Does this (https://forum.doom9.org/showthread.php?p=1628105#post1628105) help?

jpsdr
15th March 2017, 14:58
No, it explains things i allready know.

Groucho2004
15th March 2017, 15:01
No, it explains things i allready know.Well, then you'll have to expand on "not working properly", I suppose.

jpsdr
15th March 2017, 16:31
My question is more : Is there an actual know issue or not with it ?

jpsdr
15th March 2017, 16:39
Being more specific, the following code :

PVideoFrame dst = env->NewVideoFrame(vi,64);

...

for (uint8_t i=0; i<threads_number; i++)
{
for (uint8_t b=0; b<PlaneMax; b++)
{
const int srow = pssInfo[i].sheight[b];

pssInfo[i].field[b] = (srow&1) ? 1-field_n : field_n;
if (vi.IsPlanar())
{
pssInfo[i].dstp[b] = dst->GetWritePtr(plane[b]);
pssInfo[i].dst_pitch[b] = dst->GetPitch(plane[b]);
if ((((size_t)pssInfo[i].dstp[b] & 63)!=0)
|| ((pssInfo[i].dst_pitch[b] & 63)!=0))
env->ThrowError("nnedi3: ALIGNMENT ERROR !");
}
}
MT_Thread[i].f_process=f_proc_1;
}

is throwing me an error !!! :sly:

Finaly, my actual conclusion is that all my issues were caused by dst = env->NewVideoFrame(vi,64); not working properly.

Groucho2004
15th March 2017, 16:42
My question is more : Is there an actual know issue or not with it ?
Something like (https://forum.doom9.org/showthread.php?p=1768132#post1768132) this maybe? Google not working where you live? :sly:

jpsdr
15th March 2017, 16:47
Ahhh.......... that's the one, my memory wasn't wrong. I've totaly forgot about it (so my memory wasn't so good finaly... :().
The issue with Google sometime can be to find the right keyword...:p
Well, everything is "solved", subjet closed.