Printable Version of Topic
Click here to view this topic in its original format
Unofficial VirtualDub Support Forums > VirtualDub Filters and Filter Development > Current Frame Num In The Filter Preview


Posted by: Beketata May 2 2008, 03:20 PM
Hello phaeron,

I am the developer of VD Filter called EndCredits.

I need to Get / Set the current frame number in the Filter Preview dialog.
I did it before with undocumented in the filter SDK messages:

frame = SendMessage( hWndTrackBar, PCM_GETPOS, 0, 0 )
SendMessage( hWndTrackBar, PCM_SETPOS, true, frame )

Unfortunately there are no such "official" methods in the latest versions of VD as yet.
And PCM_GETPOS, PCM_SETPOS removes from VD source code.

Please, add some methods for Getting/Setting the current frame number to the IFilterPreview.

Posted by: phaeron May 3 2008, 06:07 AM
You were being naughty. smile.gif

You can get the position of the trackbar by the frames passed to the filter. Ordinarily you have to consider your filter instance as asynchronous, but in a config dialog with preview it's guaranteed that your filter instance executes synchronously with the UI and it's safe to access it from the dialog code.

There isn't a way to set the frame number, but I might try adding something for API V13.

Posted by: Beketata May 3 2008, 01:10 PM
My filter is working absolutely synchronously with the UI.

In the configuration dialog I need to choose the stopping and starting frame for doing something exactly in this frame range in the working stage.
In other words my filter is working only in choosen frame ranges. For all other frames it transmit them without modification.
When I load processing settings from the file, stopping and starting frames, choosing earlier, appears in the list of configuration dialog.
And I need to have the ability, by clicking on the frame number in the list, show this frame in the preview dialog.

P.S.
I am not naughty, I am very patient. smile.gif
You promised me to "add something" at the end of 2006 ...

Powered by Invision Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)