I'm using StretchBlt to draw a resized real-time video.
::SetStretchBltMode(hDC, HALFTONE);
::StretchBlt(hDc, 0, 0, 1225, 689, hwNd, 0, 0, 1364, 768, SRCCOPY);
However, the StretchBlt api is too slow. It's take about 100ms on my computer each time StretchBlt is executed. Is there any other API or any way to improve the speed?
Yes, using HW accelerated video processing: Read more on IDirectXVideoProcessor::VideoProcessBlt
Unfortunately, this is a wide topic but you can read online and find samples on how to use it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With