DecklinkKey

所属分类:对话框与窗口
开发工具:Visual C++
文件大小:372KB
下载次数:5
上传日期:2007-12-25 22:42:17
上 传 者allen.hu
说明:  DecklinkKeyer is a simple dialog based Microsoft Windows video keying and preview application. It can blend either still images, BMPs or AVI movies over the input video of DeckLink cards that support keying.

文件列表:
DecklinkKey\DecklinkKey.cpp (2225, 2006-04-11)
DecklinkKey\DecklinkKey.h (787, 2006-04-11)
DecklinkKey\DecklinkKey.rc (7525, 2007-05-04)
DecklinkKey\DecklinkKey.vcproj (5674, 2007-05-08)
DecklinkKey\DecklinkKey80.vcproj (6786, 2007-05-07)
DecklinkKey\DecklinkKey.dsp (6288, 2007-05-08)
DecklinkKey\DecklinkKeyDlg.cpp (33061, 2007-05-04)
DecklinkKey\DecklinkKeyDlg.h (3001, 2007-03-05)
DecklinkKey\resource.h (1323, 2007-05-04)
DecklinkKey\stdafx.cpp (211, 2005-09-30)
DecklinkKey\stdafx.h (1983, 2006-11-21)
DecklinkKey\res\DecklinkKey.ico (22486, 2006-02-09)
DecklinkKey\res\DecklinkKey.manifest (721, 2006-03-22)
DecklinkKey\res\DecklinkKey.rc2 (402, 2005-09-30)
DecklinkKey\res\alpha test NTSC 4x3 8-bit.avi (126651392, 2005-10-03)
DecklinkKey\res\alpha test PAL 4x3 8-bit.avi (124489216, 2005-10-03)
DecklinkKey\res\Blackmagic Design NTSC.bmp (1399738, 2005-10-03)
DecklinkKey\res\Blackmagic Design PAL.bmp (1658938, 2005-10-03)
DecklinkKey\res (0, 2007-12-25)
DecklinkKey (0, 2007-12-25)

Decklink Keyer Sample The purpose of this sample is to demonstrate a basic keying application using a custom interface on the Decklink video render filter. A DirectShow graph is built using either a file source for avi movies, or a custom source for bitmap stills. The infinite pin tee filter is used to provide streams to both the Decklink video render filter and the default screen renderer. The Decklink video renderer blends the source with the video present on the input of the card and the default screen renderer is used to provide a preview on the desktop. The desktop preview is generated by using a checker pattern from another custom bitmap source and getting the default screen renderer to blend this with the actual keying source. This way the desktop resembles the keying output of the Decklink card. The custom source is based on the PushSource sample from the DirectShow SDK. The IFileSourceFilter interface is supported so the filter can load and stream the bitmap. This method can be called repeatedly even while the filter is streaming to update or change the source image. The transition happens seamlessly which avoids graph rebuilding and disturbance to the output video of the Decklink card. The filter also supports IAMStreamControl interface so that the stream can be controlled. This was added purely to permit looping of avi movies. The checker source will issue an end of stream message at the same time as the avi movie. This event is caught in the application, the stream reset and restarted giving the impression the the avi is looping. Without the stream control of the checker bitmap source this event would never occur and the movie could not be looped. When the application starts the IDecklinkKeyer interface is acquired and the keying ability of the card is determined. The UI is updated to reflect the cards ability. Keying can be enabled or disabled and the level of opacity of the keyed image can be set through the IDecklink keyer interface. There are a few other methods available but it is not the purpose of this sample to demonstrate them. Blackmagic Design.

近期下载者

相关文件


收藏者