home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
AutoCropper plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ziphnor" data-source="post: 70349" data-attributes="member: 14215"><p>Thats interesting, where did you find it?</p><p></p><p></p><p></p><p>From my quick google it seems that frame grabbing in C# is not that simple after all. Anyway if the most likely implementation is as an in-place transform filter(its probably not actually going to transform anything, but just scan a frame and then call somewhere else in MP for the cropping), i might as well start there. It seems that there is an interface called ISampleGrabber in C++, which basicly gives you a call back with the frame data. Its covered here:</p><p></p><p><a href="http://www.codeproject.com/audio/VideoAnaFramework.asp" target="_blank">http://www.codeproject.com/audio/VideoAnaFramework.asp</a></p><p></p><p>It might be sensible enough to do it in C++ in this manner(i dont mind,especially if a wrapper takes care of all the WinAPI/COM crap).</p><p></p><p>Alternative i can just extend this filter base class:</p><p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directshow/htm/ctransinplacefilterclass.asp" target="_blank">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directshow/htm/ctransinplacefilterclass.asp</a></p><p></p><p>In that way i can test the filter using GraphEdit on video files, and it can then plug straight into MP afterwards.</p><p></p><p>Im open to suggestions, but i think im going to try one of the above if nothing better shows up(they also have the extra benefit that they might help me implement the DS graph thread priority i was looking to implement a while ago).</p></blockquote><p></p>
[QUOTE="ziphnor, post: 70349, member: 14215"] Thats interesting, where did you find it? From my quick google it seems that frame grabbing in C# is not that simple after all. Anyway if the most likely implementation is as an in-place transform filter(its probably not actually going to transform anything, but just scan a frame and then call somewhere else in MP for the cropping), i might as well start there. It seems that there is an interface called ISampleGrabber in C++, which basicly gives you a call back with the frame data. Its covered here: [url]http://www.codeproject.com/audio/VideoAnaFramework.asp[/url] It might be sensible enough to do it in C++ in this manner(i dont mind,especially if a wrapper takes care of all the WinAPI/COM crap). Alternative i can just extend this filter base class: [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directshow/htm/ctransinplacefilterclass.asp[/url] In that way i can test the filter using GraphEdit on video files, and it can then plug straight into MP afterwards. Im open to suggestions, but i think im going to try one of the above if nothing better shows up(they also have the extra benefit that they might help me implement the DS graph thread priority i was looking to implement a while ago). [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
AutoCropper plugin
Contact us
RSS
Top
Bottom