capGetStatus 的使用問題 |
尚未結案
|
arnotsay
一般會員 發表:23 回覆:79 積分:20 註冊:2003-02-03 發送簡訊給我 |
|
cmf
尊榮會員 發表:84 回覆:918 積分:1032 註冊:2002-06-26 發送簡訊給我 |
|
arnotsay
一般會員 發表:23 回覆:79 積分:20 註冊:2003-02-03 發送簡訊給我 |
|
cmf
尊榮會員 發表:84 回覆:918 積分:1032 註冊:2002-06-26 發送簡訊給我 |
struct CapStatus
{
UINT uiImageWidth ; // Width of the image
UINT uiImageHeight ; // Height of the image
BOOL fLiveWindow ; // Now Previewing video?
BOOL fOverlayWindow ; // Now Overlaying video?
BOOL fScale ; // Scale image to client?
TPOINT ptScroll ; // Scroll position
BOOL fUsingDefaultPalette ; // Using default driver palette?
BOOL fAudioHardware ; // Audio hardware present?
BOOL fCapFileExists ; // Does capture file exist?
DWORD dwCurrentVideoFrame ; // # of video frames cap'td
DWORD dwCurrentVideoFramesDropped ; // # of video frames dropped
DWORD dwCurrentWaveSamples ; // # of wave samples cap'td
DWORD dwCurrentTimeElapsedMS ; // Elapsed capture duration
HPALETTE hPalCurrent ; // Current palette in use
BOOL fCapturingNow ; // Capture in progress?
DWORD dwReturn ; // Error value after any operation
UINT wNumVideoAllocated ; // Actual number of video buffers
UINT wNumAudioAllocated ; // Actual number of audio buffers
); CapStatus* s;
s= new CapStatus;
capGetStatus(hwnd,s,sizeof(CapStatus));
------
︿︿ |
arnotsay
一般會員 發表:23 回覆:79 積分:20 註冊:2003-02-03 發送簡訊給我 |
引言: struct CapStatus { UINT uiImageWidth ; // Width of the image UINT uiImageHeight ; // Height of the image BOOL fLiveWindow ; // Now Previewing video? BOOL fOverlayWindow ; // Now Overlaying video? BOOL fScale ; // Scale image to client? TPOINT ptScroll ; // Scroll position BOOL fUsingDefaultPalette ; // Using default driver palette? BOOL fAudioHardware ; // Audio hardware present? BOOL fCapFileExists ; // Does capture file exist? DWORD dwCurrentVideoFrame ; // # of video frames cap'td DWORD dwCurrentVideoFramesDropped ; // # of video frames dropped DWORD dwCurrentWaveSamples ; // # of wave samples cap'td DWORD dwCurrentTimeElapsedMS ; // Elapsed capture duration HPALETTE hPalCurrent ; // Current palette in use BOOL fCapturingNow ; // Capture in progress? DWORD dwReturn ; // Error value after any operation UINT wNumVideoAllocated ; // Actual number of video buffers UINT wNumAudioAllocated ; // Actual number of audio buffers ); CapStatus* s; s= new CapStatus; capGetStatus(hwnd,s,sizeof(CapStatus));謝謝你...我摸懂了... |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |