Real-time playback of cameras in Vega

Source: Internet
Author: User

Some time ago, refer to 86vr and China Virtual RealityCommunityPlay Avi onProgramI made a program for real-time playback by the camera, but it stopped in less than a minute. I checked it for a long time and did not know the reason.

Then we will create a video fusion project. We need to play a large AVI file in Vega and find that it stops playing for several minutes. Check out the reason for the memory leakage:

1. HDD = drawdibopen (); the statement is called in each call to the grabaviframe function. After that, it cannot be released until all programs are finished. Otherwise, the memory will leak, call drawdibclose (HDD) at the end of the grabaviframe function to release resources;

Second, glgentextures (1, & texture [0]); creates a texture. After using this texture, you need to call gldeletetextures (1, & texture [0]); to release resources.

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.