directshow 摄像头参数 设置
IAMCameraControl::Set Method
The Set method sets a specified property on the camera.
Syntax
HRESULT Set( [in] long Property, [in] long lValue, [in] long Flags );
Parameters
Property [in]
Specifies the property to set, as a value from the CameraControlProperty enumeration.
lValue [in]
Specifies the new value of the property.
Flags [in]
Specifies the desired control setting, as a member of the CameraControlFlags enumeration.
Return Value
If method succeeds, it returns S_OK. Otherwise it returns an HRESULT error code.
Remarks
If the Flags parameter is CameraControl_Flags_Auto, the method ignores the lValue parameter.
//
CameraControlProperty Enumeration
The CameraControlProperty enumeration specifies a setting on a camera.
Syntax
typedef enum tagCameraControlProperty { CameraControl_Pan, CameraControl_Tilt, CameraControl_Roll, CameraControl_Zoom, CameraControl_Exposure, CameraControl_Iris, CameraControl_Focus } CameraControlProperty;
Constants
CameraControl_Pan
Specifies the camera's pan setting, in degrees. Values range from –180 to +180, with the default set to zero. Positive values are clockwise from the origin (the camera rotates clockwise when viewed from above), and negative values are counterclockwise from the origin.
CameraControl_Tilt
Specifies the camera's tilt setting, in degrees. Values range from –180 to +180, with the default set to zero. Positive values point the imaging plane up, and negative values point the imaging plane down.
CameraControl_Roll
Specifies the camera's roll setting, in degrees. Values range from –180 to +180, with the default set to zero. Positive values cause a clockwise rotation of the camera along the image-viewing axis, and negative values cause a counterclockwise rotation of the camera.
CameraControl_Zoom
Specifies the camera's zoom setting, in millimeters. Values range from 10 to 600, and the default is specific to the device.
CameraControl_Exposure
Specifies the exposure setting, in log base 2 seconds. In other words, for values less than zero, the exposure time is 1/2^n seconds, and for values zero or above, the exposure time is 2^n seconds. For example:
CameraControl_Iris
Specifies the camera's iris setting, in units of fstop* 10.
CameraControl_Focus
Specifies the camera's focus setting, as the distance to the optimally focused target, in millimeters. The range and default value are specific to the device.
Remarks
For a given property, a particular device might implement only a subset of the listed range.
Requirements
Header
Strmif.h (include Dshow.h)
/
The CameraControlFlags enumeration defines whether a camera setting is controlled manually or automatically.
Syntax
typedef enum { CameraControl_Flags_Auto = 0x0001, CameraControl_Flags_Manual = 0x0002 } CameraControlFlags;
Constants
CameraControl_Flags_Auto
The setting is controlled automatically.
CameraControl_Flags_Manual
The setting is controlled manually.
Remarks
相关文章
- SQL server 2005如何设置一个或几个字段唯一约束?
- C#编译器优化那点事 c# 如果一个对象的值为null,那么它调用扩展方法时为甚么不报错 webAPI 控制器(Controller)太多怎么办? .NET MVC项目设置包含Areas中的页面为默认启动页 (五)Net Core使用静态文件 学习ASP.NET Core Razor 编程系列八——并发处理
- 《MySQL系列》 不建议给MySQL设置Null值的原因?
- Allegro如何设置层叠参数操作指导
- ROS机器人程序设计(原书第2版)3.4 设置动态参数
- HotSpot JVM常用参数(选项)设置
- openwrt设置uboot环境变量在flash上的存储地址
- Tomcat配置 设置启动参数,点击startup.bat启动
- Java虚拟机垃圾回收(三) 7种垃圾收集器:主要特点 应用场景 设置参数 基本运行原理
- 《Android游戏开发详解》一2.2 设置开发机器
- android 窗体透明的,黑暗度等的设置技巧
- hdparm - 获取/设置硬盘参数
- nuxt项目如何设置代理接口
- PHP设置环境变量
- IDEA使用笔记(八)——自动生成 serialVersionUID 的设置
- 小知识随手记(九):兄弟选择器(~和+)区别、forEach无法return和break的替换方法、html结构转为markdown语法、离开当前页面提示、利用set及解构数组去重、设置函数必传参数
- SHARED_POOL_RESERVED_SIZE参数的设置及作用 -ZHUANZAI
- php-fpm 如果dm设置为 static,那么其实只有pm.max_children这个参数生效。系统会开启设置数量的php-fpm进程。
- Vim设置colorscheme小技巧
- matplotlib 在画图前应该提前设置好的参数
- 【树莓派】crontab设置Linux设备定时重启
- matlab_simulink笔记01——模块属性的设置以及模块参数的设置
- FlexSlider插件的详细设置参数
- CAD绘图软件中CAD软件打印样式设置