Ddraw RGB display

Source: Internet
Author: User

I can see that YUV video data is displayed with direcdraw, which does not consume CPU at all. I just want to try the RGB display in ddraw. I found that my computer graphics card does not support 24-bit off-screen surface creation, we had to create a 32-bit surface, and then copy the 24-bit RGB data to the 32-bit off-screen surface. The bgra format is now on the BLT to the main surface, it is found that the CPU usage is higher than the display speed directly using GDI (setstretchbltmode, stretchdibits), because the copy data consumes a lot of CPU. I don't know what the performance will be if the video card supports a 24-bit RGB surface!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.