微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > Symbian 摄像头编程预研

Symbian 摄像头编程预研

时间:10-08 来源:互联网 点击:

ing flag */

EContrastSupported = 0x0020,

/** Brightness setting flag */

EBrightnessSupported = 0x0040,

/** View finder clipping flag */

EViewFinderClippingSupported = 0x0080,

/** Still image capture clipping flag */

EImageClippingSupported = 0x0100,

/** Video capture clipping flag */

EVideoClippingSupported = 0x0200

};

我的英文比较差,就不一一翻译了,毕竟有些EviewFinderMirrorSupported、EviewFinderClippingSupported、EimageClippingSupported、EvideoClippingSupported我也不知道是啥具体用的。我们只需要关心这个手机的摄像头支持何种模式的取景器,支不支持拍照(EImageCaptureSupported)、支不支持录像(EVideoCaptureSupported)、支不支持对比度设置(EcontrastSupported)和亮度设置(EBrightnessSupported)就可以了。

因为N81主摄像头的iOptionsSupporte值是14(即1110)所以该主摄像头只支持位图模式的取景器设置,同时支持图像和视频的拍摄,不支持对比度亮度等设置。

iFlashModesSupported

闪光灯支持模式,具体的模式可以参见如下枚举值

enum TFlash

{

/** No flash, always supported. */

EFlashNone = 0x0000,

/** Flash will automatically fire when required. */

EFlashAuto = 0x0001,

/** Flash will always fire. */

EFlashForced = 0x0002,

/** Reduced flash for general lighting */

EFlashFillIn = 0x0004,

/** Red-eye reduction mode. */

EFlashRedEyeReduce = 0x0008,

/** Flash at the moment when shutter opens.快门开时闪 */

EFlashSlowFrontSync = 0x0010,

/** Flash at the moment when shutter closes. 快门关事闪*/

EFlashSlowRearSync = 0x0020,

/** User configurable setting */

EFlashManual = 0x0040

};

这里就不做赘述了,N81的值11(即1011),支持自动、总是打开和红眼消除,当然总是关闭肯定是支持的。

知道了支持何种类型,我们就可以对摄像头的闪光灯类型通过CCamera::Flash和CCamera::SetFlashL两个函数获取和设置。

iExposureModesSupported

曝光支持模式,具体的模式详见如下枚举值

/** Specifies the type of exposure. - EExposureAuto is the default value. */

enum TExposure

{

/** Set exposure automatically. Default, always supported. */

EExposureAuto = 0x0000,

/** Night-time setting for long exposures. */

EExposureNight = 0x0001,

/** Backlight setting for bright backgrounds. */

EExposureBacklight = 0x0002,

/** Centered mode for ignoring surroundings. */

EExposureCenter = 0x0004,

/** Sport setting for very short exposures. */

EExposureSport = 0x0008,

/** Generalised setting for very long exposures. */

EExposureVeryLong = 0x0010,

/** Snow setting for daylight exposure. */

EExposureSnow = 0x0020,

/** Beach setting for daylight exposure with reflective glare. */

EExposureBeach = 0x0040,

/** Programmed exposure setting. */

EExposureProgram = 0x0080,

/** Aperture setting is given priority. */

EExposureAperturePriority = 0x0100,

/** Shutter speed setting is given priority. */

EExposureShutterPriority = 0x0200,

/** User selectable exposure value setting. */

EExposureManual = 0x0400,

/** Exposure night setting with colour removed to get rid of colour noise. */

EExposureSuperNight = 0x0800,

/** Exposure for infra-red sensor on the camera */

EExposureInfra = 0x1000

};

获取N81的相机曝光支持模式为7(即0111),所以只支持自动、夜晚、背光和中间四种模式。

我们可以通过CCamera::Exposure()和CCamera::SetExposureL两个函数对摄像头的曝光模式进行获取和设置。

iWhiteBalanceModesSupported

白平衡支持模式,白平衡具体的模式如下

/** Specifies how the white balance is set. */

enum TWhiteBalance

{

/** Set white balance automatically. Default, always supported. */

EWBAuto = 0x0000,

/** Normal daylight. */

EWBDaylight = 0x0001,

/** Overcast daylight. */

EWBCloudy = 0x0002,

/** Tungsten filament lighting. */

EWBTungsten = 0x0004,

/** Fluorescent tube lighting */

EWBFluorescent = 0x0008,

/** Flash lighting. */

EWBFlash = 0x0010,

/** High contrast daylight primarily snowy */

EWBSnow = 0x0020,

/** High contrast daylight primarily near the sea */

EWBBea

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top