c++ - 使用 avicap.dll 打开设置

标签 c++ video webcam

我正在使用 avicap.dll,我想打开相机的设置。 我的代码是:

mCapHwnd = capCreateCaptureWindowA(
             "WebCap1", 536870912, 0, 0, m_Width, m_Height, 0, 0);
int i = SendMessage(mCapHwnd, 1034, 0, 0);
int j = SendMessage(mCapHwnd, 1066, 0, 1);

但是,高级选项卡打开了。

我希望在加载时打开源设置。 如何做到这一点?

最佳答案

您所知道的 1066 实际上是 WM_CAP_DLG_VIDEOSOURCE。所以你基本上是在做 the following :

The WM_CAP_DLG_VIDEOSOURCE message displays a dialog box in which the user can control the video source. The Video Source dialog box might contain controls that select input sources; alter the hue, contrast, brightness of the image; and modify the video quality before digitizing the images into the frame buffer. You can send this message explicitly or by using the capDlgVideoSource macro.

这将打开与捕获设备关联的四个可能对话框之一,阅读 MSDN 上的其他三个,WM_CAP_DLG_* 消息:Displaying Dialog Boxes to Set Video Characteristics .

关于c++ - 使用 avicap.dll 打开设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8245295/

相关文章:

c++ - 关于模板代码组织 : where to put code that a template uses

c++ - 在 C++ 中通过指针传递比通过引用传递有好处吗?

image - ffmpeg-从不同文件夹中的图像制作视频

sharepoint - Sharepoint 2007 中的 <video> 标签

带有多个网络摄像头的 OpenCV - 如何判断代码中的哪个摄像头?

android - 波长照相机

c++ - 套接字编程学习

c++ - PostQuitMessage() 和 DestroyWindow() 之间的逻辑区别是什么?

HTML5 视频编解码器支持

python - 外部网络摄像头不适用于 Opencv 和 Python