- September 3, 2010
- Home Country
Just to let you know that I use Beta 2 with MP2 10th AE Update 1, and so far so good Lightning303 !
Thanks a lot !
Thanks a lot !
I dont even know what that means , "if it is present". As said before, everything directx and so on is pretty much just me trying everything i can think of until it works. MP1 uses surfaces, so thats what i was looking for in MP2. If you know of a better solution (im sure you do), please, go for it. Implement it and either provide me with a patch, or i can give you the rights on GitHub so you can just push it. But giving me hints on how to make it better is not going to give us any results, as i dont have the background in all this render stuff and currently using my free time for other things .why do you take the video surface if it is present?
I was refering to the existing code parts.I dont even know what that means , "if it is present".
I see, but my comment in the code should then show why i used 2 different approaches. The backbuffer was the first approach i ever did. However using the frame surface is faster, or atleast it was faster when i implemented it, and it has the nice effect that blackbars that are not encoded into the video will not be in the frame, as far as i can remember this also is true for osd and so on.I was refering to the existing code parts.I dont even know what that means , "if it is present".
Here you take the VideoPlayer's frame surface as source: https://github.com/ambilight-4-medi...er/AtmoLight.MediaPortal2/Plugin.cs#L438-L445.
And if no player is active you take the back buffer (full rendered frame): https://github.com/ambilight-4-medi.../master/AtmoLight.MediaPortal2/Plugin.cs#L448
A generic solution in all case (no video, 1 or 2 video players) is the latter one, the finished rendered back buffer frame.