C # How to play an AVI Video and draw some simple lines while playing the video?

Source: Internet
Author: User
C # How to play an AVI Video and draw some simple lines while playing the video?

If you are familiar with C ++, first refer to the AMCap example in DirectX SDK. We used it for real-time character tracking.
If you are not familiar with C ++, read these two CodeProject articles first. They explain what Filter Graph is and how to use C # To play back videos and capture videos.

DirectShow MediaPlayer in C #
DirectX. Capture Class Library

2. In the form of drawing X-Y coordinates how to achieve? It is mainly the arrow at the front, and the scale and X axis represent the time t (how does this t represent the time next to the X axis )?
Arrow, scale, and X axis indicate the time t... they are all drawn by themselves. There are actually only four types: long line, short line (scale), arrow (two short lines), and t (string ).

In C ++, include. h in and then add lib. Is that true?
Yes

C # how to use it? Struct may be defined in function parameters. Do I need to redefine these structures?
Yes

Do the pointer types in C ++ function parameters need to be replaced with IntPtr?
IntPtr can be generic to all pointers. However, if you have redefined the structure, you can use the C # keyword ref. ref MyStruct can be passed by reference (pointer.

Call the C ++ function module in C # as few as possible. You can use a C ++ dll as an intermediary. C ++ dll can easily communicate with function modules, or even perform some additional processing, and then use the most streamlined method, provide necessary functions to your C # interface.

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.