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!)
[Poll] Expose present surface object as in Framegrabber as event?
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="gemx" data-source="post: 560843" data-attributes="member: 26324"><p>I already thought about something like "GetCurrentImage(Rectangle source,Rectangle target)" which would work but the problem with this is that you have to specify the dimensions when in OnFrame(...) which would result in every application that uses the GetCurrentImage(...) would get the same regions or worse different Rect request would be overriden by each other.</p><p></p><p>So the only solution i found was to deliver the source surface untouched in the event handler so that every function that registered to it can make it's own resizing but that would on the other hand mean the might happen several resizes (copies from GPU -> CPU) for the same surface which is also bad.</p><p></p><p>Best intermediate solution would be to always resize the image to something like 300*200 (keeping the AR) and then output it via GetCurrentImage. </p><p></p><p>How about that?</p></blockquote><p></p>
[QUOTE="gemx, post: 560843, member: 26324"] I already thought about something like "GetCurrentImage(Rectangle source,Rectangle target)" which would work but the problem with this is that you have to specify the dimensions when in OnFrame(...) which would result in every application that uses the GetCurrentImage(...) would get the same regions or worse different Rect request would be overriden by each other. So the only solution i found was to deliver the source surface untouched in the event handler so that every function that registered to it can make it's own resizing but that would on the other hand mean the might happen several resizes (copies from GPU -> CPU) for the same surface which is also bad. Best intermediate solution would be to always resize the image to something like 300*200 (keeping the AR) and then output it via GetCurrentImage. How about that? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
[Poll] Expose present surface object as in Framegrabber as event?
Contact us
RSS
Top
Bottom