5

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?

LeDuc
  • 245
  • 2
  • 9

1 Answers1

2

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.

Community
  • 1
  • 1
egur
  • 7,830
  • 2
  • 27
  • 47