Comparison of the effects of using GDI, direct, and DirectDraw in tcpmp

Source: Internet
Author: User

I discussed with ZL earlier about using tcpmp to play videos in wince6.0. He believes that direct video writing should make video playing smoother. Today, I tested it on our platform and made benchmark using the following methods: GDI, direct, and DirectDraw. Direct is what he calls Direct Writing and video storage.

To enable tcpmp to support direct mode, you need to modify the relatedCodeTo directly access the video memory of the CE device. The specific method will not be described here. Please refer to the previous article. As mentioned in the previous article, the methods provided here can only be used for special purposes, and some optimizations are made for their own platforms. After implementing the direct method, you can see several methods supported by the system in Options> video settings, as shown in.

 

The video file used for testing is miniplayer.mp4, an advertisement in M8. The comparison of the test reports in three modes is as follows.

The above is a comparison between direct and GDI. We can see that direct is faster than GDI, and the average speed of the former is 10% higher than that of the latter.

The comparison between direct and DirectDraw is shown below. We can see that the two of them are basically equal to each other.

In addition, when tcpmp is started in wince6.0, some abnormal printing information is displayed. If it looks uncomfortable, you can modify the 78th line code of CPU. C and change it to "# If! Defined (target_palmos )&&! Defined (target_symbian )&&! Defined (target_wince) ", that is, do not call functions such as checkarm5e.

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.