DecklinkHistogram

所属分类:对话框与窗口
开发工具:Visual C++
文件大小:3783KB
下载次数:21
上传日期:2007-12-25 22:39:59
上 传 者allen.hu
说明:  DecklinkHistogram is a simple dialog based Microsoft Windows video capture and preview application. It uses the Sample Grabber Filter and the ISampleGrabber interface to extract samples from a capture graph and into an application for in order to perform a histogram analysis on the video frames.

文件列表:
DecklinkHistogram\DecklinkHistogram.cpp (2306, 2006-04-11)
DecklinkHistogram\DecklinkHistogram.h (826, 2006-04-11)
DecklinkHistogram\DecklinkHistogram.rc (6900, 2007-05-04)
DecklinkHistogram\DecklinkHistogram.vcproj (5926, 2007-05-08)
DecklinkHistogram\DecklinkHistogram80.vcproj (7114, 2007-05-07)
DecklinkHistogram\DecklinkHistogram.dsp (6570, 2007-05-08)
DecklinkHistogram\DecklinkHistogramDlg.h (2017, 2006-11-21)
DecklinkHistogram\HistogramCtrl.h (1527, 2006-04-11)
DecklinkHistogram\resource.h (961, 2007-05-04)
DecklinkHistogram\SGCallbackHandler.cpp (2418, 2006-04-11)
DecklinkHistogram\SGCallbackHandler.h (974, 2006-04-11)
DecklinkHistogram\stdafx.cpp (217, 2006-02-21)
DecklinkHistogram\res\DecklinkHistogram.ico (22486, 2006-02-21)
DecklinkHistogram\res\DecklinkHistogram.manifest (730, 2006-03-22)
DecklinkHistogram\res\DecklinkHistogram.rc2 (408, 2006-02-21)
DecklinkHistogram\DecklinkHistogram.plg (2315, 2007-12-25)
DecklinkHistogram\stdafx.h (2050, 2007-12-25)
DecklinkHistogram\DecklinkHistogramDlg.cpp (24650, 2007-12-25)
DecklinkHistogram\HistogramCtrl.cpp (8042, 2007-12-25)
DecklinkHistogram\res (0, 2007-12-25)
DecklinkHistogram\Debug (0, 2007-12-25)
DecklinkHistogram\Release (0, 2007-12-25)
DecklinkHistogram (0, 2007-12-25)

Decklink Histogram Sample The purpose of this sample is to demonstrate the retrieval of video samples into an application from a very basic video capture graph. The application then performs, by way of example, a histogram analysis of the video which is then plotted in the application window. When the application starts up a capture graph is constructed which incorporates the sample grabber filter and the default video renderer is used, but is not required, for a video preview. In the application a picture control is used to preview the incoming video and a few hooks are in place to process any windows messages received by the application dialog in order to update this control. The sample grabber filter can be configured in a number of ways, the method chosen for this sample was to use the buffering mode of the filter. A separate thread is used to poll the sample grabber filter for media samples, generate the histogram and update the custom histogram control, a modified version of a static control. The connection media type for the sample grabber must be specified before the filter is connected. This sample has two choices, YUV or RGB. As the DeckLink capture filter only provided YUV frames and conversion is required if the samples received in the sample grabber callback are to be RGB. The histogram control will plot either individual R, G and B histograms or a luminosity histogram depending upon the connection media type. Blackmagic Design.

近期下载者

相关文件


收藏者