⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cvcamplayavi_chdl.c

📁 guide and some example with visualC++
💻 C
字号:
/* Copyright (c) 2001-2002 by SoftIntegration, Inc. All Rights Reserved */#include <windows.h>#include <cvcam.h>#include <ch.h>typedef  void (*callback)(void *);static ChInterp_t interp;static void cvcamPlayAVI_chdl_funarg(void* arg);static void *cvcamPlayAVI_chdl_funptr;EXPORTCH int cvcamPlayAVI_chdl(void *varg) {    va_list ap;    const char* file;    void* window;    int width;    int height;    callback callback_ch, callback_c=NULL;    int retval;    Ch_VaStart(interp, ap, varg);    file = Ch_VaArg(interp, ap, const char*);    window = Ch_VaArg(interp, ap, void*);    width = Ch_VaArg(interp, ap, int);    height = Ch_VaArg(interp, ap, int);    callback_ch = Ch_VaArg(interp, ap, callback);    cvcamPlayAVI_chdl_funptr = (void *)callback_ch;    if (callback_ch != NULL)  {        callback_c = (callback) cvcamPlayAVI_chdl_funarg;    }    retval = cvcamPlayAVI(file, window, width, height, callback_c);    Ch_VaEnd(interp, ap);    return retval;}static void cvcamPlayAVI_chdl_funarg(void* arg)   {  Ch_CallFuncByAddr(interp,cvcamPlayAVI_chdl_funptr,NULL,arg);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -