thedeemon.com forum
November 21, 2009, 02:18:14 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Last
GraphEditPlus
version: 1.3.4 Last
Video Enhancer
version: 1.9.3
Home
Help
Search
Login
Register
thedeemon.com forum
>
DirectShow programming
>
GraphEditPlus
>
Compiled code and Property Windows
Pages: [
1
]
« previous
next »
Print
Author
Topic: Compiled code and Property Windows (Read 635 times)
moatdd
Newbie
Karma: +0/-0
Posts: 3
Compiled code and Property Windows
«
on:
April 13, 2009, 03:29:35 AM »
I noticed that GraphEditPlus is capable of remembering the settings I chose in the Property Window of a filter (after saving a graph) - and that's a good thing.
Is there a way to get these same settings to be propagated into the compiled code? When I compile code and run it, the filter operates at default settings.
Logged
Dee Mon
Administrator
Full Member
Karma: +5/-0
Posts: 207
Re: Compiled code and Property Windows
«
Reply #1 on:
April 13, 2009, 07:49:26 PM »
Not at this moment.
When a filter is saved to a graph file, it's being asked whether it supports IPersistStream, and if it does, then IPersistStream::Save is called. When graph file is loaded, IPersistStream::Load is called to restore filter state from the data stream. Technically we can teach GEP to save filter state to a string and in generated code load from it, but I'm not sure it's the right thing to do because it may cause different problems with other filters, complicate user interface and bloat generated code.
Logged
moatdd
Newbie
Karma: +0/-0
Posts: 3
Re: Compiled code and Property Windows
«
Reply #2 on:
April 13, 2009, 11:50:13 PM »
I'm OK with not being able to adjust the properties afterwards if the filter state is saved to a string
Alternatively, is there a way to autorun a saved graph just by double-clicking it or via command-line? Just trying to automate this part of the process.
Thanks!
Logged
Dee Mon
Administrator
Full Member
Karma: +5/-0
Posts: 207
Re: Compiled code and Property Windows
«
Reply #3 on:
April 14, 2009, 08:14:22 AM »
Writing a little app which loads given graph file and runs it is pretty easy.
Just change BuildGraph to LoadGraphFile:
http://msdn.microsoft.com/en-us/library/dd390649(VS.85).aspx
Logged
moatdd
Newbie
Karma: +0/-0
Posts: 3
Re: Compiled code and Property Windows
«
Reply #4 on:
April 15, 2009, 12:25:18 AM »
Fantastic, that's exactly what I needed! It works great! Thanks!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Video Processing
-----------------------------
=> Video Enhancer
=> Filters and codecs
=> Screen Capture
=> General Discussion
-----------------------------
DirectShow programming
-----------------------------
=> GraphEditPlus
=> General Discussion
Loading...