CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
英特尔®游戏设计大赛100美元现金周周送 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  C++ Builder >  Windows SDK/API

c++ builder关于视频采集大家有没有代码呀

楼主catac()2003-11-03 12:25:09 在 C++ Builder / Windows SDK/API 提问

如题,大家对视频采集有没有相关的材料或代码呀, 问题点数:0、回复次数:33Top

1 楼catac()回复于 2003-11-04 13:12:18 得分 0

有什么问题吗,是我问的不对,还是没有人弄过这方面的东西呀,还是有别的什么原因呢。Top

2 楼jbz(虚心求教)回复于 2003-11-07 11:16:01 得分 0

http://www.chinabcb.com/bbs/viewforum.php?f=5Top

3 楼catac1(aaa)回复于 2003-11-14 12:22:21 得分 0

alsdkfjlskdfasdfTop

4 楼chifengwatch(chifengwatch)回复于 2003-11-14 12:34:42 得分 0

帮你顶Top

5 楼catac()回复于 2003-11-14 14:00:26 得分 0

还有没有再多顶几下,有没有了解这方面的人呀,我下在想做个视频采集的东西,可我对这方面一点都不了解,有没有这方面的材料也可以呀,Top

6 楼rdsdh(方人也)回复于 2003-11-14 16:02:18 得分 0

美国飞图公司有视频采集卡,并提供相关的DLL.  
  遗憾的是,这是我在四年前的一个项目(公路收费管理·收费亭视频监控)中接触到,好久不弄了资料也丢了。  
  估计其它视频采集卡供应商都会提供相关资料的。Top

7 楼tiegerium(/*唐秀观*/)回复于 2003-11-14 16:22:56 得分 0

有呀!是VC的。你下载DirectX9.0bSDK就可以了。在\DXSDK\Samples\C++\DirectShow\Capture下!  
  我仿它的代码,好极了。Top

8 楼yaosir(yaosir)回复于 2003-11-14 16:43:40 得分 0

HWND   ghCapWnd;  
          CAPTUREPARMS   CapParms;  
          ghCapWnd   =   capCreateCaptureWindow(   "Capture   Window",  
                                                  WS_CHILD|WS_VISIBLE|WS_EX_CLIENTEDGE|WS_EX_DLGMODALFRAME,   0,   0,   640,   480,   Panel1->Handle,   0);  
          if(ghCapWnd)  
          {  
                          if   (!capDriverConnect   (ghCapWnd,   0))  
                          {  
                                          MessageBox(NULL,   TEXT("连接图像卡失败"),   TEXT("错误提示"),   MB_OK);  
                          }  
                          else  
                          {  
                                            capSetCallbackOnFrame(ghCapWnd,NULL);  
                                            capDriverConnect(ghCapWnd,0);//0为第一块  
                                            /*  
                                            capSetCallbackOnVideoStream(hWndC,NULL);  
                                            CapSetCallbackOnError(hWndC,NULL);  
                                            CapSetCallbackOnStatus(hWndC,NULL);   //*/  
                                            //*  
                                            CapParms.dwRequestMicroSecPerFrame=40000;  
                                            CapParms.fLimitEnabled   =   FALSE;  
                                            CapParms.fCaptureAudio   =   FALSE;   //   NO   Audio  
                                            CapParms.fMCIControl   =   FALSE;  
                                            CapParms.fYield   =   TRUE;  
                                            CapParms.vKeyAbort   =   VK_ESCAPE;  
                                            CapParms.fAbortLeftMouse   =   FALSE;  
                                            CapParms.fAbortRightMouse   =   FALSE;  
                                            capCaptureSetSetup(ghCapWnd,&CapParms,sizeof(CapParms));     //   */  
                                            capPreviewScale(ghCapWnd,1);  
                                            capPreviewRate(ghCapWnd,66);  
                                            capCaptureSequenceNoFile(ghCapWnd);  
                                            capOverlay(ghCapWnd,   1);  
                                            capPreview(ghCapWnd,   1);  
                                            Sleep(100);  
                                            capCaptureAbort(ghCapWnd);  
                          }  
          }  
  Top

9 楼tiegerium(/*唐秀观*/)回复于 2003-11-14 17:59:42 得分 0

楼上的可以用得,加头文件:#include   <vfw.h>Top

10 楼fancy05(浪花)回复于 2003-11-14 23:31:29 得分 0

头文件定义    
  HWND   hWndC;    
   
  CPP文件中    
  //将采集到的画面放置在Panel1中    
  void   __fastcall   TForm1::BitBtn1Click(TObject   *Sender)    
  {    
  try    
  {    
  hWndC=capCreateCaptureWindowA   (    
                  "视频采集",    
                  WS_CHILD   |   WS_VISIBLE,    
                  Panel1->Left,Panel1->Top,Panel1->Width,Panel1->Height,    
                  this->Handle,0);    
  if   (hWndC)   SendMessage(hWndC,   WM_CAP_DRIVER_CONNECT,   0,   0);    
  capPreviewRate(hWndC,15);    
  capPreview(hWndC,true);    
   
  }    
  catch(Exception   &E)    
  {    
          ShowMessage(E.Message);    
  }    
  }    
   
  要保存成BMP时用下面类似的代码就可以了    
  代码:    
  if   (hWndC)     capFileSaveDIB(hWndC,BmpFileName.c_str());  
  Top

11 楼potlee(一跑就停不下来的兔子)回复于 2003-11-14 23:55:23 得分 0

关注........Top

12 楼goos9005mlgk(木兰高科)回复于 2003-12-22 16:27:17 得分 0

[Linker   Fatal   Error]   Fatal:   Expected   a   file   name:    
  这是我保存后再编程程序的错误信息,如果能运行就是黑屏,不能显示动态图像!!Top

13 楼jeep008()回复于 2004-01-02 15:54:23 得分 0

关注Top

14 楼Chimae(David)回复于 2004-01-02 15:59:28 得分 0

vfw模式已经过时了,现在都用WDM,呵呵!Top

15 楼Chimae(David)回复于 2004-01-02 16:00:19 得分 0

新出的视频采集卡已经不支持了,呵呵!Top

16 楼wenyongjie(我们的目标是:没有蛀牙!!)回复于 2004-01-02 22:55:10 得分 0

关注一下Top

17 楼asimpleman(simple_man)回复于 2004-01-03 21:41:27 得分 0

gzTop

18 楼goos9005mlgk(木兰高科)回复于 2004-01-04 10:22:30 得分 0

关注中,请大侠给出DX源码一看!Top

19 楼wangtao2003new(~冷月映雪~)回复于 2004-01-05 16:25:08 得分 0

MarkTop

20 楼ljlln(阿明)回复于 2004-01-06 09:23:54 得分 0

学习Top

21 楼scottlai(网络一只小虾)回复于 2004-01-10 01:02:36 得分 0

我用过海康威视的视频捕捉卡,他们有自己的驱动程序和SDK,挺不错的。Top

22 楼keiy()回复于 2004-01-10 08:58:13 得分 0

我做过一个类,用directshow的filter实现的,可以参考,部分程序在  
  http://expert.csdn.net/Expert/topic/2597/2597685.xml?temp=5.962551E-03  
  Top

23 楼goldpony(金马)回复于 2004-01-10 09:50:29 得分 0

头文件:UnitVideoGrab.h  
   
   
  #ifndef   UnitVideoGrabH  
  #define   UnitVideoGrabH  
  //   ------------------------------------------  
  //   error   codes  
  //   ------------------------------------------  
  #define   IS_NO_SUCCESS                                             -1  
  #define   IS_SUCCESS                                                     0    
  #define   IS_INVALID_FALCON_HANDLE                         1  
  #define   IS_INVALID_HANDLE                                       1  
  #define   IS_IO_REQUEST_FAILED                                 2  
  #define   IS_CANT_OPEN_DEVICE                                   3  
  #define   IS_CANT_CLOSE_DEVICE                                 4  
  #define   IS_CANT_SETUP_MEMORY                                 5  
  #define   IS_NO_HWND_FOR_ERROR_REPORT                   6  
  #define   IS_ERROR_MESSAGE_NOT_CREATED                 7  
  #define   IS_ERROR_STRING_NOT_FOUND                       8  
  #define   IS_HOOK_NOT_CREATED                                   9  
  #define   IS_TIMER_NOT_CREATED                               10  
  #define   IS_CANT_OPEN_REGISTRY                             11  
  #define   IS_CANT_READ_REGISTRY                             12  
  #define   IS_CANT_VALIDATE_BOARD                           13  
  #define   IS_CANT_GIVE_BOARD_ACCESS                     14  
  #define   IS_NO_IMAGE_MEM_ALLOCATED                     15  
  #define   IS_CANT_CLEANUP_MEMORY                           16  
  #define   IS_CANT_COMMUNICATE_WITH_DRIVER         17  
  #define   IS_FUNCTION_NOT_SUPPORTED_YET             18  
  #define   IS_OPERATING_SYSTEM_NOT_SUPPORTED     19  
   
  #define   IS_INVALID_VIDEO_IN                                 20  
  #define   IS_INVALID_IMG_SIZE                                 21  
  #define   IS_INVALID_ADDRESS                                   22  
  #define   IS_INVALID_VIDEO_MODE                             23  
  #define   IS_INVALID_AGC_MODE                                 24  
  #define   IS_INVALID_GAMMA_MODE                             25  
  #define   IS_INVALID_SYNC_LEVEL                             26  
  #define   IS_INVALID_CBARS_MODE                             27  
  #define   IS_INVALID_COLOR_MODE                             28  
  #define   IS_INVALID_SCALE_FACTOR                         29  
  #define   IS_INVALID_IMAGE_SIZE                             30  
  #define   IS_INVALID_IMAGE_POS                               31  
  #define   IS_INVALID_CAPTURE_MODE                         32  
  #define   IS_INVALID_RISC_PROGRAM                         33  
  #define   IS_INVALID_BRIGHTNESS                             34  
  #define   IS_INVALID_CONTRAST                                 35  
  #define   IS_INVALID_SATURATION_U                         36  
  #define   IS_INVALID_SATURATION_V                         37  
  #define   IS_INVALID_HUE                                           38  
  #define   IS_INVALID_HOR_FILTER_STEP                   39  
  #define   IS_INVALID_VERT_FILTER_STEP                 40  
  #define   IS_INVALID_EEPROM_READ_ADDRESS           41  
  #define   IS_INVALID_EEPROM_WRITE_ADDRESS         42  
  #define   IS_INVALID_EEPROM_READ_LENGTH             43  
  #define   IS_INVALID_EEPROM_WRITE_LENGTH           44  
  #define   IS_INVALID_BOARD_INFO_POINTER             45  
  #define   IS_INVALID_DISPLAY_MODE                         46  
  #define   IS_INVALID_ERR_REP_MODE                         47  
  #define   IS_INVALID_BITS_PIXEL                             48  
  #define   IS_INVALID_MEMORY_POINTER                     49  
   
  #define   IS_FILE_WRITE_OPEN_ERROR                       50  
  #define   IS_FILE_READ_OPEN_ERROR                         51  
  #define   IS_FILE_READ_INVALID_BMP_ID                 52  
  #define   IS_FILE_READ_INVALID_BMP_SIZE             53  
  #define   IS_FILE_READ_INVALID_BIT_COUNT           54  
  #define   IS_WRONG_KERNEL_VERSION                         55  
   
  #define   IS_RISC_INVALID_XLENGTH                         60  
  #define   IS_RISC_INVALID_YLENGTH                         61  
  #define   IS_RISC_EXCEED_IMG_SIZE                         62  
   
  #define   IS_DD_MAIN_FAILED                                     70  
  #define   IS_DD_PRIMSURFACE_FAILED                       71  
  #define   IS_DD_SCRN_SIZE_NOT_SUPPORTED             72  
  #define   IS_DD_CLIPPER_FAILED                               73  
  #define   IS_DD_CLIPPER_HWND_FAILED                     74  
  #define   IS_DD_CLIPPER_CONNECT_FAILED               75    
  #define   IS_DD_BACKSURFACE_FAILED                       76  
  #define   IS_DD_BACKSURFACE_IN_SYSMEM                 77  
  #define   IS_DD_MDL_MALLOC_ERR                               78  
  #define   IS_DD_MDL_SIZE_ERR                                   79  
  #define   IS_DD_CLIP_NO_CHANGE                               80  
  #define   IS_DD_PRIMMEM_NULL                                   81  
  #define   IS_DD_BACKMEM_NULL                                   82  
  #define   IS_DD_BACKOVLMEM_NULL                             83  
  #define   IS_DD_OVERLAYSURFACE_FAILED                 84  
  #define   IS_DD_OVERLAYSURFACE_IN_SYSMEM           85  
  #define   IS_DD_OVERLAY_NOT_ALLOWED                     86  
  #define   IS_DD_OVERLAY_COLKEY_ERR                       87  
  #define   IS_DD_OVERLAY_NOT_ENABLED                     88  
  #define   IS_DD_GET_DC_ERROR                                   89  
  #define   IS_DD_DDRAW_DLL_NOT_LOADED                   90  
  #define   IS_DD_THREAD_NOT_CREATED                       91  
  #define   IS_DD_CANT_GET_CAPS                                 92  
  #define   IS_DD_NO_OVERLAYSURFACE                         93  
  #define   IS_DD_NO_OVERLAYSTRETCH                         94  
  #define   IS_DD_CANT_CREATE_OVERLAYSURFACE       95  
  #define   IS_DD_CANT_UPDATE_OVERLAYSURFACE       96  
  #define   IS_DD_INVALID_STRETCH                             97  
   
  #define   IS_EV_INVALID_EVENT_NUMBER                 100  
  #define   IS_INVALID_MODE                                       101  
  #define   IS_CANT_FIND_FALCHOOK                           102  
  #define   IS_CANT_FIND_HOOK                                   102  
  #define   IS_CANT_GET_HOOK_PROC_ADDR                 103  
  #define   IS_CANT_CHAIN_HOOK_PROC                       104  
  #define   IS_CANT_SETUP_WND_PROC                         105  
  #define   IS_HWND_NULL                                             106  
  #define   IS_INVALID_UPDATE_MODE                         107  
  #define   IS_NO_ACTIVE_IMG_MEM                             108  
  #define   IS_CANT_INIT_EVENT                                 109  
  #define   IS_FUNC_NOT_AVAIL_IN_OS                       110  
  #define   IS_CAMERA_NOT_CONNECTED                       111  
  #define   IS_SEQUENCE_LIST_EMPTY                         112  
  #define   IS_CANT_ADD_TO_SEQUENCE                       113  
  #define   IS_LOW_OF_SEQUENCE_RISC_MEM               114  
  #define   IS_IMGMEM2FREE_USED_IN_SEQ                 115  
  #define   IS_IMGMEM_NOT_IN_SEQUENCE_LIST         116  
  #define   IS_SEQUENCE_BUF_ALREADY_LOCKED         117  
  #define   IS_INVALID_DEVICE_ID                             118  
  #define   IS_INVALID_BOARD_ID                               119  
  #define   IS_ALL_DEVICES_BUSY                               120  
  #define   IS_HOOK_BUSY                                             121  
  #define   IS_TIMED_OUT                                             122  
  #define   IS_NULL_POINTER                                       123  
  #define   IS_WRONG_HOOK_VERSION                           124  
  #define   IS_INVALID_PARAMETER                             125  
  #define   IS_NOT_ALLOWED                                         126  
  #define   IS_OUT_OF_MEMORY                                     127  
   
  //   ------------------------------------------  
  //   common   definitions  
  //   ------------------------------------------  
  #define   IS_OFF             0  
  #define   IS_ON               1  
   
   
  //   ------------------------------------------  
  //   get/set   selector  
  //   ------------------------------------------  
  #define   IS_GET_ERR_REP_MODE             0x8000  
  #define   IS_GET_VIDEO_IN                     0x8000  
  #define   IS_GET_LIVE                             0x8000  
  #define   IS_GET_BRIGHTNESS                 0x8000  
  #define   IS_GET_CONTRAST                     0x8000  
  #define   IS_GET_SATURATION_U             0x8000  
  #define   IS_GET_SATURATION_V             0x8001  
  #define   IS_GET_HUE                               0x8000  
  #define   IS_GET_VIDEO_MODE                 0x8000  
  #define   IS_GET_DISPLAY_MODE             0x8000  
  #define   IS_GET_AGC_MODE                     0x8000  
  #define   IS_GET_GAMMA_MODE                 0x8000  
  #define   IS_GET_SYNC_LEVEL                 0x8000  
  #define   IS_GET_CBARS_MODE                 0x8000  
  #define   IS_GET_COLOR_MODE                 0x8000  
  #define   IS_GET_CAPTURE_MODE             0x8000  
  #define   IS_GET_IMAGE_SIZE_X             0x8000  
  #define   IS_GET_IMAGE_SIZE_Y             0x8001  
  #define   IS_GET_IMAGE_POS_X               0x8000  
  #define   IS_GET_IMAGE_POS_Y               0x8001  
  #define   IS_GET_HOR_FILTER_MODE       0x8000  
  #define   IS_GET_HOR_FILTER_STEP       0x8001  
  #define   IS_GET_VERT_FILTER_MODE     0x8000  
  #define   IS_GET_VERT_FILTER_STEP     0x8001  
  #define   IS_GET_SCALER_MODE               (float)   1000  
  #define   IS_GET_KC_RED                         0x8000  
  #define   IS_GET_KC_GREEN                     0x8001  
  #define   IS_GET_KC_BLUE                       0x8002  
  #define   IS_GET_KC_RGB                         0x8003  
  #define   IS_GET_KC_INDEX                     0x8004  
  #define   IS_GET_KEYOFFSET_X               0x8000  
  #define   IS_GET_KEYOFFSET_Y               0x8001  
  #define   IS_GET_UPDATE_MODE               0x8000  
  #define   IS_GET_SYNC_GEN                     0x8000  
  #define   IS_GET_IO                                 0x8000  
  #define   IS_GET_FLASHSTROBE_FIELD   0x8000  
  #define   IS_GET_FLASHSTROBE_LINE     0x8001  
  #define   IS_GET_EXTERNALTRIGGER       0x8000  
  #define   IS_GET_STATUS                         0x8000  
  #define   IS_GET_TOGGLE_INPUT_1         0x8000  
  #define   IS_GET_TOGGLE_INPUT_2         0x8001  
  #define   IS_GET_TOGGLE_INPUT_3         0x8002  
  #define   IS_GET_TOGGLE_INPUT_4         0x8003  
   
  Top

24 楼goldpony(金马)回复于 2004-01-10 09:50:57 得分 0

//   ------------------------------------------  
  //   horizontal   filter   defines  
  //   ------------------------------------------  
  #define   IS_DISABLE_HOR_FILTER         0  
  #define   IS_ENABLE_HOR_FILTER           1  
  #define   IS_HOR_FILTER_STEP(_s_)     ((_s_   +   1)   <<   1)  
  #define   IS_HOR_FILTER_STEP1             2  
  #define   IS_HOR_FILTER_STEP2             4  
  #define   IS_HOR_FILTER_STEP3             6  
   
  //   ------------------------------------------  
  //   vertical   filter   defines  
  //   ------------------------------------------  
  #define   IS_DISABLE_VERT_FILTER         0  
  #define   IS_ENABLE_VERT_FILTER           1  
  #define   IS_VERT_FILTER_STEP(_s_)     ((_s_   +   1)   <<   1)  
  #define   IS_VERT_FILTER_STEP1             2  
  #define   IS_VERT_FILTER_STEP2             4  
  #define   IS_VERT_FILTER_STEP3             6  
   
  //   ------------------------------------------  
  //   image   parameters  
  //   ------------------------------------------  
  #define   IS_DEFAULT_BRIGHTNESS           100  
  #define   IS_DEFAULT_CONTRAST               216  
  #define   IS_DEFAULT_SATURATION_U       254  
  #define   IS_DEFAULT_SATURATION_V       180  
  #define   IS_DEFAULT_HUE                         128  
  #define   IS_MIN_BRIGHTNESS                       0  
  #define   IS_MIN_CONTRAST                           0  
  #define   IS_MIN_SATURATION_U                   0  
  #define   IS_MIN_SATURATION_V                   0  
  #define   IS_MIN_HUE                                     0  
  #define   IS_MAX_BRIGHTNESS                   255  
  #define   IS_MAX_CONTRAST                       511  
  #define   IS_MAX_SATURATION_U               511  
  #define   IS_MAX_SATURATION_V               511  
  #define   IS_MAX_HUE                                 255  
   
  //   ------------------------------------------  
  //   error   report   modes  
  //   ------------------------------------------  
  #define   IS_ENABLE_ERR_REP           1  
  #define   IS_DISABLE_ERR_REP         0  
   
  //   ------------------------------------------  
  //   video   source   selectors  
  //   ------------------------------------------  
  #define   IS_SET_VIDEO_IN_1               0x00  
  #define   IS_SET_VIDEO_IN_2               0x01  
  #define   IS_SET_VIDEO_IN_S               0x02  
  #define   IS_SET_VIDEO_IN_3               0x03  
  #define   IS_SET_VIDEO_IN_4               0x04  
  #define   IS_SET_VIDEO_IN_1S             0x10  
  #define   IS_SET_VIDEO_IN_2S             0x11  
  #define   IS_SET_VIDEO_IN_3S             0x13  
  #define   IS_SET_VIDEO_IN_4S             0x14  
  #define   IS_SET_TOGGLE_OFF               0xFF  
  #define   IS_SET_VIDEO_IN_SYNC     0x4000  
   
  //   ------------------------------------------  
  //   video   format   selectors  
  //   ------------------------------------------  
  #define   IS_SET_VM_PAL               0  
  #define   IS_SET_VM_NTSC             1  
  #define   IS_SET_VM_SECAM           2  
  #define   IS_SET_VM_AUTO             3  
   
  //   ------------------------------------------  
  //   display   mode   selectors  
  //   ------------------------------------------  
  #define   IS_SET_DM_DIB                             1  
  #define   IS_SET_DM_DIRECTDRAW               2  
  #define   IS_SET_DM_ALLOW_SYSMEM           0x40  
  #define   IS_SET_DM_ALLOW_PRIMARY         0x80  
   
  //   --   overlay   display   mode   ---  
  #define   IS_SET_DM_ALLOW_OVERLAY         0x100      
  #define   IS_SET_DM_ALLOW_SCALING         0x200  
  #define   IS_SET_DM_ALLOW_FIELDSKIP     0x400  
   
  //   ------------------------------------------  
  //   AGC   modes  
  //   ------------------------------------------  
  #define   IS_SET_AGC_OFF             0  
  #define   IS_SET_AGC_ON               1  
   
  //   ------------------------------------------  
  //   Gamma   modes  
  //   ------------------------------------------  
  #define   IS_SET_GAMMA_OFF         0  
  #define   IS_SET_GAMMA_ON           1  
   
  //   ------------------------------------------  
  //   sync   levels  
  //   ------------------------------------------  
  #define   IS_SET_SYNC_75             0  
  #define   IS_SET_SYNC_125           1  
   
  //   ------------------------------------------  
  //   color   bar   modes  
  //   ------------------------------------------  
  #define   IS_SET_CBARS_OFF         0  
  #define   IS_SET_CBARS_ON           1  
   
  //   ------------------------------------------  
  //   scaler   modes  
  //   ------------------------------------------  
  #define   IS_SET_SCALER_OFF       (float)   0  
  #define   IS_SET_SCALER_ON         (float)   1  
   
  #define   IS_MIN_SCALE_X             (float)       6.25  
  #define   IS_MAX_SCALE_X             (float)   100.00  
  #define   IS_MIN_SCALE_Y             (float)       6.25  
  #define   IS_MAX_SCALE_Y             (float)   100.00  
   
  //   ------------------------------------------  
  //   color   modes  
  //   ------------------------------------------  
  #define   IS_SET_CM_RGB32             0  
  #define   IS_SET_CM_RGB24             1  
  #define   IS_SET_CM_RGB16             2  
  #define   IS_SET_CM_RGB15             3  
  #define   IS_SET_CM_YUV422           4  
  #define   IS_SET_CM_YUV411           5  
  #define   IS_SET_CM_Y8                   6  
  #define   IS_SET_CM_RGB8               7  
   
  //   ------------------------------------------  
  //   capture   modes  
  //   ------------------------------------------  
  #define   IS_SET_CM_ODD                           0x0001  
  #define   IS_SET_CM_EVEN                         0x0002  
  #define   IS_SET_CM_FRAME                       0x0004  
  #define   IS_SET_CM_NONINTERLACED       0x0008  
  #define   IS_SET_CM_BOTHFIELDS             (IS_SET_CM_ODD   |   IS_SET_CM_EVEN   |   IS_SET_CM_NONINTERLACED)  
  #define   IS_SET_CM_FRAME_STEREO         0x2004  
   
  //   ------------------------------------------  
  //   live/freeze   parameters  
  //   ------------------------------------------  
  #define   IS_WAIT                               0x0001  
  #define   IS_DONT_WAIT                     0x0000  
  #define   IS_FORCE_VIDEO_STOP       0x4000  
  #define   IS_FORCE_VIDEO_START     0x4000  
   
  //   ------------------------------------------  
  //   video   finish   constants  
  //   ------------------------------------------  
  #define   IS_VIDEO_NOT_FINISH         0  
  #define   IS_VIDEO_FINISH                 1  
   
  //   ------------------------------------------  
  //   event   constants  
  //   ------------------------------------------  
  #define   IS_SET_EVENT_ODD             0  
  #define   IS_SET_EVENT_EVEN           1  
  #define   IS_SET_EVENT_FRAME         2  
  #define   IS_SET_EVENT_EXTTRIG     3  
  #define   IS_SET_EVENT_VSYNC         4  
  #define   IS_SET_EVENT_SEQ             5  
  #define   IS_SET_EVENT_STEAL         6  
  #define   IS_SET_EVENT_VPRES         7  
   
  //   ------------------------------------------  
  //   steal   video   constants  
  //   ------------------------------------------  
  #define   IS_INIT_STEAL_VIDEO       1  
  #define   IS_EXIT_STEAL_VIDEO       2  
   
  //   ------------------------------------------  
  //   display   update   mode   constants  
  //   ------------------------------------------  
  #define   IS_SET_UPDATE_TIMER         1  
  #define   IS_SET_UPDATE_EVENT         2  
   
  //   ------------------------------------------  
  //   keying   color   constants  
  //   ------------------------------------------  
  //   RGB-triple   for   default   key-color   in   15,16,24,32   bit   mode  
  #define   IS_SET_KC_DEFAULT         0xFF00FF         //   0xbbggrr  
  //   colorindex   for   default   key-color   in   8bit   palette   mode  
  #define   IS_SET_KC_DEFAULT_8               253  
   
  //   ------------------------------------------  
  //   sync   generator   mode   constants  
  //   ------------------------------------------  
  #define   IS_SET_SYNC_GEN_OFF             0  
  #define   IS_SET_SYNC_GEN_ON               1  
   
  Top

25 楼goldpony(金马)回复于 2004-01-10 09:51:19 得分 0

//   ------------------------------------------  
  //   flash   strobe   constants  
  //   ------------------------------------------  
  #define   IS_SET_FLASH_OFF               0x0000  
  #define   IS_SET_FLASH_ODD               0x1000  
  #define   IS_SET_FLASH_EVEN             0x2000  
  #define   IS_SET_FLASH_HI_ACTIVE   0x4000  
   
  //   ------------------------------------------  
  //   external   trigger   mode   constants  
  //   ------------------------------------------  
  #define   IS_SET_TRIG_OFF                     0x00  
  #define   IS_SET_TRIG_HI_LO                 0x01  
  #define   IS_SET_TRIG_LO_HI                 0x02  
  #define   IS_SET_TRIG_EVENT_ONLY       0x04  
   
  //   ------------------------------------------  
  //   board   info   constants  
  //   ------------------------------------------  
  #define   IS_EXT_TRIGGER_EVENT_CNT         0  
  #define   IS_FIFO_OVR_CNT                           1  
  #define   IS_SEQUENCE_CNT                           2  
  #define   IS_LAST_FRAME_FIFO_OVR             3  
  #define   IS_SEQUENCE_SIZE                         4  
  #define   IS_VIDEO_PRESENT                         5  
   
  //   ------------------------------------------  
  //   board   type   defines  
  //   ------------------------------------------  
  #define   IS_BOARD_TYPE_FALCON               1  
  #define   IS_BOARD_TYPE_EAGLE                 2  
  #define   IS_BOARD_TYPE_FALCON2             3  
  #define   IS_BOARD_TYPE_FALCON_PLUS     7  
   
  //   ------------------------------------------  
  //   readable   operation   system   defines  
  //   ------------------------------------------  
  #define   IS_OS_WIN95         1             //   VER_PLATFORM_WIN32_WINDOWS  
  #define   IS_OS_WINNT40     2             //   VER_PLATFORM_WIN32_NT  
  #define   IS_OS_WIN98         3  
  #define   IS_OS_WIN2000     4  
   
   
  //   ------------------------------------------  
  //   info   struct  
  //   ------------------------------------------  
  #define   FALCINFO       BOARDINFO  
  #define   PFALCINFO     PBOARDINFO  
   
  typedef   struct  
  {  
      char                     SerNo[12];         //   e.g.   "12345-1234"     (11   char)  
      char                     ID[20];               //   e.g.   "ProVision   Multimedia   Co."  
      char                     Version[10];     //   e.g.   "V1.00"     (9   char)  
      char                     Date[12];           //   e.g   "11.11.1999"   (11   char)  
      unsigned   char   Select;               //   0   (contains   board   select   number   for   multi   board   support)  
      unsigned   char   Type;                   //   1   (contains   board   type)  
      char                     Reserved[8];     //   (7   char)  
  }   BOARDINFO,   *PBOARDINFO;  
   
  //   ------------------------------------------  
  //   EEPROM   defines  
  //   ------------------------------------------  
  #define   IS_EEPROM_MIN_USER_ADDRESS           0  
  #define   IS_EEPROM_MAX_USER_ADDRESS         63  
  #define   IS_EEPROM_MAX_USER_SPACE             64  
   
   
  //   ------------------------------------------  
  //   typedefs  
  //   ------------------------------------------  
   
  typedef   HANDLE   HIDS;  
  typedef   HANDLE   HFALC;  
   
  /*  
  typedef   int         INT;  
   
  #if   defined   (_MSC_VER)   ||   defined   (__BORLANDC__)  
      #if   defined   (_PURE_C)   &&   !defined   (_IDS_EXPORT)   &&   !defined   (_FALC_EXPORT)  
          #define   IDSEXP           extern     __declspec(dllimport)   INT   __cdecl  
          #define   IDSEXPUL       extern     __declspec(dllimport)   ULONG   __cdecl  
      #elif   defined   (__STDC__)   &&   !defined   (_IDS_EXPORT)   &&   !defined   (_FALC_EXPORT)  
          #define   IDSEXP       extern     __declspec(dllimport)   INT   __cdecl  
          #define   IDSEXPUL   extern     __declspec(dllimport)   ULONG   __cdecl  
      #elif   !defined   (_IDS_EXPORT)   &&   !defined   (_FALC_EXPORT)       //   using   the   DLL,   not   creating   one  
          #define   IDSEXP       extern   "C"   __declspec(dllimport)   INT   __cdecl  
          #define   IDSEXPUL   extern   "C"   __declspec(dllimport)   ULONG   __cdecl  
      #elif   defined   (_IDS_VBSTD)   ||   defined   (_FALC_VBSTD)           //   for   creating   stdcall   dll  
          #define   IDSEXP         extern   __declspec(dllexport)   INT   __stdcall  
          #define   IDSEXPUL     extern   __declspec(dllexport)   ULONG   __stdcall  
      #else                         //   for   creating   cdecl   dll  
          #define   IDSEXP         extern     __declspec(dllexport)   INT   __cdecl  
          #define   IDSEXPUL     extern     __declspec(dllexport)   ULONG   __cdecl  
      #endif  
  #elif   !defined   (_IDS_EXPORT)   &&   !defined   (_FALC_EXPORT)     //   using   the   DLL,   not   creating   one  
      #define   IDSEXP         extern     __declspec(dllimport)   INT   __cdecl  
      #define   IDSEXPUL     extern     __declspec(dllimport)   ULONG   __cdecl  
  #endif  
  */  
   
  Top

26 楼tiegerium(/*唐秀观*/)回复于 2004-01-16 12:45:04 得分 0

我刚买了一本书,<<DirectShow开发指南>>!是DX高手陆其明写的,我为了你同样的问题就买了这本书!陆其明写的太好了!Top

27 楼wangfei0309(夏之雨)回复于 2004-01-16 15:57:02 得分 0

我一直做这方面的程序  
  路桥收费和停车场  
  都有图像抓拍什么的  
   
  视频卡用了三种:  
  天敏卡  
  维真卡  
  FlyVideo卡  
   
  都有自己的二次开发包  
  很好用  
   
  有问题找我:  
  wangfei0529@hotmail.comTop

28 楼foxinw(阿王)回复于 2004-02-10 01:49:29 得分 0

<<DirectShow开发指南>>!  
  这本书这里有卖么?我非常需要。Top

29 楼kataboy(老公)回复于 2004-02-13 22:57:46 得分 0

我也要。那有?要是有电子版能不能共享一下给小弟!  
  谢谢!Top

30 楼tiegerium(/*唐秀观*/)回复于 2004-02-13 23:28:16 得分 0

《DIRECTSHOW开发指南》12月12日上市,定价38元,ISBN:7-302-07650-2,16开,364页,陆其明编著。如您需要,请致电邮购部:010-62630320,或到当地新华书店和计算机专业书店咨询。如需要技术支持,请致电:010-82896445、82896446、82896447、82896448转编辑部。Top

31 楼netying()回复于 2004-02-14 09:44:17 得分 0

mark.Top

32 楼wenyongjie(我们的目标是:没有蛀牙!!)回复于 2004-02-14 22:00:39 得分 0

mark.  
  Top

33 楼goos9005mlgk(木兰高科)回复于 2004-03-23 20:10:37 得分 0

需要!!!!Top

相关问题

  • 一段C++ builder代码 看不明白 关于工控数据采集方面的
  • 如何优化C++Builder 的代码?
  • ◆◆◆◆如何将这段Delphi代码转化为C++Builder代码◆◆◆◆
  • 谁能把下面的C++Builder代码转化为C#代码?在线等。。。。
  • C#源代码
  • c++原代码
  • C原代码?
  • C++代码?
  • 求c++代码!
  • 请各位帮我把这几个Delphi代码改成C++Builder代码

关键词

  • 代码
  • ws
  • directshow
  • 文件
  • null
  • ghcapwnd
  • capparms
  • hwndc
  • cant
  • 视频采集

得分解答快速导航

  • 帖主:catac

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo