StillCap

所属分类:DirextX编程
开发工具:Visual C++
文件大小:39KB
下载次数:58
上传日期:2008-11-07 15:27:19
上 传 者fangzhl
说明:  directshow demo code for web camera

文件列表:
StillCap\Res\StillCap.ico (25214, 2002-12-03)
StillCap\Res\StillCap.rc2 (400, 2002-11-12)
StillCap\Res (0, 2008-11-07)
StillCap\Resource.h (1238, 2002-11-12)
StillCap\StdAfx.cpp (461, 2002-11-12)
StillCap\StdAfx.h (1118, 2002-11-12)
StillCap\StillCap.cpp (2882, 2002-11-12)
StillCap\StillCap.dsp (7753, 2002-11-12)
StillCap\StillCap.dsw (539, 2002-11-12)
StillCap\StillCap.h (1658, 2002-11-12)
StillCap\stillcap.jpg (14730, 2002-11-12)
StillCap\StillCap.rc (7172, 2002-11-12)
StillCap\StillCap.sln (1338, 2002-11-12)
StillCap\StillCap.vcproj (10014, 2002-11-12)
StillCap\StillCapDlg.cpp (33867, 2002-11-12)
StillCap\StillCapDlg.h (3040, 2002-11-12)
StillCap (0, 2008-11-07)

//----------------------------------------------------------------------------- // Name: DirectShow Editing Sample - Still Frame Capture // // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- Description =========== This C++ app uses the ISampleGrabber interface to capture still images to a .bmp file on disk from a live capture stream. It demonstrates how to put the sample grabber into the graph, and how to get the bits back from it in real time via the callback. StillCap starts in preview mode, displaying input from the system's default video capture device. Normally, this will be an attached video camera, like a USB WebCam. When you click the "Snap Still" button, a bitmap will be captured and written to disk at the location specified in the Capture Directory field. If you enable the "Increment filename" option, then a new file will be written each time with a new name. Otherwise, the same filename will be used for each captured bitmap. You may also capture video files to disk if you select Video Capture on the Capture Type group box. Note that video capture will start automatically when you select this option. Click "Start Playback" to end the capture session. The recorded file will automatically be played back to the screen. NOTE: For simplicity, this sample uses RGB24 format for capturing data and writing bitmaps. If your video driver is at 16-bit depth, you may notice flicker when running this application. To resolve this problem, set your display's bit depth to 24-bit or 32-bit with the Display Properties control panel application. NOTE: This application is designed for use with video cameras and does not support TV tuners or devices which use the DirectShow Video Port. If you need this functionality, you must use the ICaptureGraphBuilder2 interface to properly build the filter graph in InitStillGraph().

近期下载者

相关文件


收藏者