DirectShow interface actual articles (1)

zhaozj2021-02-16  52

DirectShow interface actual articles (1)

Nowadays, I have a multimedia play tool, which is a very happy and pleasant thing, but if you use MediaPlay control, it will be a lot of restrictions, and you have a lot of good creative ideas that you can't achieve, if you use Microsoft DirectX. Interface development can fully put the author's unique idea into realization, why not! ! However, the development instructions of the DirectShow interface is really small, only some of them are some of the theoretical, truly on interface actual programming and use Delphi development tools to achieve a phoenix, making many people It is still a step. Here, I applied the experience of DirectShow development and I collected some information to reiniterate editing, I hope that all the interested colleagues will help, even if I reach my purpose. Less nonsense, enter the body.

Since it is an interface, it will first list some common interfaces, so that everyone has some basic understanding, what we need to do, when we need to use this interface.

IFilterGraph filter channel interface IFilterGraph2 enhanced IFilterGraphIGraphBuilder most reuse COM interface for manually or automatically configured channel filter Filter Graph ManagerIMediaControl for controlling streaming media, such as start and stop the flow of pause, playback control interface IMediaEvent play event interface that When some events occur in Filter Graph, the flag information used to create an event is used to transmit it to the application IMEDIAEVENTEX extension Play Event interface IMEDIAPOSITION playback location and speed control interface (control play position can only be set to set time control) iMediaseEKing another playback location And playback speed control interface, in the location selection function. Set the playback format, multiple control playback mode. Commonly used: (1) Time_format_media_time unit 100 nanosecond. (2) TIME_FORMAT_FRAME Press frame to play the IBasicaudio sound control interface IBASICVIDEO image control interface (baud rate, width, length and other information) iVideoWindow Display window control interface (all controls for playing window, including CAPTION display, window location control, etc.) Isamplegrabber capture Image interface (can be used to capture control) iVideoFramestep interface interface

Ok, I am familiar with the application of DirectShow application development, we are familiar with these interfaces through an instance media player. Although the code of the instance is simple, but the five organs are full, the function is powerful, and it also understands the application of DirectShow development. A step of.

Last continued

转载请注明原文地址:https://www.9cbs.com/read-24954.html

New Post(0)