Hi,
I have no Idea anymore. Please help.
filterRecord-%26gt;advanceState() failed with errorcode filterBadParameters == -30100.
inData is set, but outData is still 0 after calling advanceState().
If I ignore this error message an proceed I'll see something like a high magnified version of the original pixels. filterRecord-%26gt;advanceState() is called for creating the preview image.
All I could debug is that it must have to be an issue with the size of inRect or/and outRect.
So my quesion is:
In which case do advanceState() return with this error code?
What could be gone wrong?
What can I check?
In which range should the image rects (in, out, mask) be?
advanc...
Perhaps you are requesting a Rect that's larger than what Photoshop will give you.
gFilter-%26gt;inputRate will reduce the size of what Photoshop will give you. To figure out what Photoshop can give you, you might want a function like:
VRect getScaledFilterRect()
{
//This is an accessory function that calls GetFilterRect
//---but also scales it--- to account for gFilterRecord-%26gt;inputRate
//This is typically less dangerous than GetFilterRect()
VRect returnRect = GetFilterRect();
ScaleRect(returnRect, 1, gFilterRecord-%26gt;inputRate); //I can't remember if you call gFilterRecord-%26gt;inputRate or something %26lt;%26lt; 16
return returnRect;
}
Make sure that your inRect() isn't larger than GetFilterRect *after* it's been scaled.
Your problem might be something entirely different of course...
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment