Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StretchBlt is too slow, anyway faster?

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?

like image 384
LeDuc Avatar asked Oct 31 '22 10:10

LeDuc


1 Answers

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.

like image 68
egur Avatar answered Nov 02 '22 23:11

egur