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: 94165" data-attributes="member: 14215"><p>Thanks, while it was a bit of a downer to have to give up on the filter approach, this will result in much less code that is also much easier to maintain(and i did learn alot). I do need a slight amount of C++ code though, cant escape the native part completely, but its only:</p><p></p><p></p><p></p><p>Anyway, the idea is that when the video surface is passed to managed MP in PlaneScene.PresentSurface as a native pointer, i can create a managed ARGB surface, pass both to the above method, and get my managed ARGB surface filled with the video. This is then easily translated into a Bitmap object which can be used by the cropper for determining bounds. Now that i can do this its only a matter of tying loose ends together, such that the frame is only grabbed when needed (it would have a nasty impact on performance otherwise <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" />, something i hope to have time for in the weekend.</p><p></p><p>Something which came as a positive surprise is that the video surface given by VMR is actually not upscaled yet(the application is responsible for that in VMR9 Renderless), so i am in fact working just on the deinterlaced frame exactly like in my filter!</p><p></p><p>As for potential problems, i can only imagine that some drivers might not support the necessary color space conversion in StretchRect, but i dont think that this would occur with any DX9 cards (have no idea though). See <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/IDirect3DDevice9__StretchRect.asp" target="_blank">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/IDirect3DDevice9__StretchRect.asp</a> for reference.</p></blockquote><p></p>
[QUOTE="ziphnor, post: 94165, member: 14215"] Thanks, while it was a bit of a downer to have to give up on the filter approach, this will result in much less code that is also much easier to maintain(and i did learn alot). I do need a slight amount of C++ code though, cant escape the native part completely, but its only: Anyway, the idea is that when the video surface is passed to managed MP in PlaneScene.PresentSurface as a native pointer, i can create a managed ARGB surface, pass both to the above method, and get my managed ARGB surface filled with the video. This is then easily translated into a Bitmap object which can be used by the cropper for determining bounds. Now that i can do this its only a matter of tying loose ends together, such that the frame is only grabbed when needed (it would have a nasty impact on performance otherwise ;), something i hope to have time for in the weekend. Something which came as a positive surprise is that the video surface given by VMR is actually not upscaled yet(the application is responsible for that in VMR9 Renderless), so i am in fact working just on the deinterlaced frame exactly like in my filter! As for potential problems, i can only imagine that some drivers might not support the necessary color space conversion in StretchRect, but i dont think that this would occur with any DX9 cards (have no idea though). See [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/IDirect3DDevice9__StretchRect.asp[/url] for reference. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
AutoCropper plugin
Contact us
RSS
Top
Bottom