Sign in to follow this  

transfer byte[] to effect

This topic is 2076 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[quote name='begemot' timestamp='1335530984' post='4935368']
the function CopyMemory costs 52%
[/quote]

What about Marshal.Copy?

Share this post


Link to post
Share on other sites
I use line per line CopyMemory from kernel32.dll because I don't understand how copy data from IntPtr to IntPtr by Marshal.Copy. It seems to me, It works a little bit faster then primary unsafe code.

Share this post


Link to post
Share on other sites
When you get a video frame from your codec, can you specify a destination address for the decompressed frame? You could decompress directly to a locked surface buffer, if this was the case.

Share this post


Link to post
Share on other sites
Sign in to follow this