jingwood / d2dlib

A .NET library for hardware-accelerated, high performance, immediate mode rendering via Direct2D.
MIT License
234 stars 40 forks source link

Render YUV image #83

Closed digibum closed 1 year ago

digibum commented 2 years ago

I'm new to Direct2D World and don't quite understand how to prepare images to be used in D2DLib. My images come from DVR Recorder and are in YUV format. How would one process images that are not in Bitmap form to be used in D2DLib? The most important thing is speed, since conversion from YUV to RGB is painfully slow on CPU side. Thank you!

jingwood commented 1 year ago

Maybe you have to provide more details to get help. How do you handle your image in memory? What type of image that read from the DVR Recorder? What API or library are you using?

If you are using something like DirectWrite, which is a part of Direct2D. So I think the integrations on some level with this library can be implemented.

As you said converting between Bitmap is expensive. It's better to make the images can be processed only on the GPU side. There should be a plan to make the processing pipeline smoothly.

jingwood commented 1 year ago

Close this issue, if you still have problem please reopen or create a new.