1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 *This file contains needed UID's and reference paramenter for CCamCamera class |
|
20 * @Refer CamCamera.h |
|
21 */ |
|
22 |
|
23 #ifndef CAMCAMERA_HRH |
|
24 #define CAMCAMERA_HRH |
|
25 |
|
26 #include "CamCamera.h" |
|
27 #include <ecam.h> |
|
28 const TInt KCameraHandle = 2007; |
|
29 |
|
30 const TUint32 KFlashModeSupport = ( CCamCamera::EFlashNone |
|
31 | CCamCamera::EFlashAuto |
|
32 | CCamCamera::EFlashForced |
|
33 | CCamCamera::EFlashFillIn |
|
34 | CCamCamera::EFlashRedEyeReduce |
|
35 | CCamCamera::EFlashSlowFrontSync // Flash at the moment when shutter opens. |
|
36 | CCamCamera::EFlashSlowRearSync // Flash at the moment when shutter closes. |
|
37 | CCamCamera::EFlashManual |
|
38 ); |
|
39 |
|
40 const TUint32 KExposureSupport = ( CCamCamera::EExposureAuto // Set exposure automatically. Default, always supported. |
|
41 | CCamCamera::EExposureNight // Night-time setting for long exposures. |
|
42 | CCamCamera::EExposureBacklight // Backlight setting for bright backgrounds. |
|
43 | CCamCamera::EExposureCenter // Centered mode for ignoring surroundings. |
|
44 | CCamCamera::EExposureSport // Sport setting for very short exposures. |
|
45 | CCamCamera::EExposureVeryLong // Generalised setting for very long exposures. |
|
46 | CCamCamera::EExposureSnow // Snow setting for daylight exposure. |
|
47 | CCamCamera::EExposureBeach // Beach setting for daylight exposure with reflective glare. |
|
48 | CCamCamera::EExposureProgram // Programmed exposure setting. |
|
49 | CCamCamera::EExposureAperturePriority // Aperture setting is given priority. |
|
50 | CCamCamera::EExposureShutterPriority // Shutter speed setting is given priority. |
|
51 | CCamCamera::EExposureManual // User selectable exposure value setting. |
|
52 | CCamCamera::EExposureSuperNight // Exposure night setting with colour removed to get rid of colour noise. |
|
53 | CCamCamera::EExposureInfra //Exposure for infra-red sensor on the camera |
|
54 ); |
|
55 |
|
56 const TUint32 KOptionsSupport = ( ~TCameraInfo::EViewFinderDirectSupported |
|
57 | TCameraInfo::EViewFinderBitmapsSupported |
|
58 | TCameraInfo::EImageCaptureSupported |
|
59 | TCameraInfo::EVideoCaptureSupported |
|
60 | TCameraInfo::EViewFinderMirrorSupported |
|
61 | TCameraInfo::EContrastSupported |
|
62 | TCameraInfo::EBrightnessSupported |
|
63 | TCameraInfo::EViewFinderClippingSupported |
|
64 | TCameraInfo::EImageClippingSupported |
|
65 | ~TCameraInfo::EVideoClippingSupported |
|
66 ); |
|
67 |
|
68 const TUint32 KWBSupport = ( CCamCamera::EWBAuto // Set white balance automatically. Default, always supported. |
|
69 | CCamCamera::EWBDaylight // Normal daylight. |
|
70 | CCamCamera::EWBCloudy // Overcast daylight. |
|
71 | CCamCamera::EWBTungsten // Tungsten filament lighting. |
|
72 | CCamCamera::EWBFluorescent // Fluorescent tube lighting |
|
73 | CCamCamera::EWBFlash // Flash lighting. |
|
74 | CCamCamera::EWBSnow // High contrast daylight primarily snowy |
|
75 | CCamCamera::EWBBeach // High contrast daylight primarily near the sea |
|
76 | CCamCamera::EWBManual // User configurable mode |
|
77 | CCamCamera::EWBShade // Shade |
|
78 ); |
|
79 |
|
80 const TUint32 KImageFormatSupportCAM1 = |
|
81 ( 0 |
|
82 // | EFormatMonochrome // 8 bit greyscale values, 0=black, 255=white. |
|
83 // | EFormat16bitRGB444 // Packed RGB triplets, 4 bits per pixel with red in the least significant bits and the 4 most significant bits unused. |
|
84 // | EFormat16BitRGB565 // Packed RGB triplets, 5 bits per pixel for red and blue and 6 bits for green, with red in the least significant bits. |
|
85 // | EFormat32BitRGB888 // Packed RGB triplets, 8 bits per pixel with red in the least significant bits and the 8 most significant bits unused. |
|
86 | CCamCamera::EFormatJpeg // JFIF JPEG. |
|
87 | CCamCamera::EFormatExif // EXIF JPEG |
|
88 // | EFormatFbsBitmapColor4K // CFbsBitmap object with display mode EColor4K. |
|
89 // | EFormatFbsBitmapColor64K // CFbsBitmap object with display mode EColor64K. |
|
90 // | EFormatFbsBitmapColor16M // CFbsBitmap object with display mode EColor16M. |
|
91 // | EFormatUserDefined // Implementation dependent. |
|
92 // | EFormatYUV420Interleaved // 4:2:0 format, 8 bits per sample, Y00Y01Y10Y11UV. |
|
93 // | EFormatYUV420Planar // 4:2:0 format, 8 bits per sample, Y00Y01Y02Y03...U0...V0... |
|
94 // | EFormatYUV422 // 4:2:2 format, 8 bits per sample, UY0VY1. |
|
95 // | EFormatYUV422Reversed // 4:2:2 format, 8 bits per sample, Y1VY0U. |
|
96 // | EFormatYUV444 // 4:4:4 format, 8 bits per sample, Y00U00V00 Y01U01V01... |
|
97 // | EFormatYUV420SemiPlanar // 4:2:0 format, 8 bits per sample, Y00Y01Y02Y03...U0V0... |
|
98 // | EFormatFbsBitmapColor16MU // CFbsBitmap object with display mode EColor16MU. |
|
99 ); |
|
100 |
|
101 const TUint32 KImageFormatSupportCAM2 = |
|
102 ( 0 |
|
103 | CCamCamera::EFormatJpeg |
|
104 ); |
|
105 |
|
106 const TUint32 KVideoFormatSupportCAM1 = |
|
107 ( 0 |
|
108 | CCamCamera::EFormatFbsBitmapColor4K |
|
109 | CCamCamera::EFormatFbsBitmapColor64K |
|
110 | CCamCamera::EFormatFbsBitmapColor16M |
|
111 | CCamCamera::EFormatFbsBitmapColor16MU |
|
112 ); |
|
113 |
|
114 const TUint32 KVideoFormatSupportCAM2 = |
|
115 ( 0 |
|
116 | CCamCamera::EFormatFbsBitmapColor4K |
|
117 | CCamCamera::EFormatFbsBitmapColor64K |
|
118 | CCamCamera::EFormatFbsBitmapColor16M |
|
119 | CCamCamera::EFormatFbsBitmapColor16MU |
|
120 ); |
|
121 |
|
122 // const TSize KImageSizeJpegCam1 = TSize( 2592, 1944 ); // 5Mpix |
|
123 const TSize KImageSizeJpegCam1 = TSize( 1600, 1200 ); // 5Mpix |
|
124 // const TSize KImageSizeExifCam1 = TSize( 2592, 1944 ); // 5Mpix |
|
125 const TSize KImageSizeExifCam1 = TSize( 1600, 1200 ); |
|
126 |
|
127 const TSize KVideoFrameSizeCam1 = TSize( 640, 480 ); // VGA |
|
128 |
|
129 const TSize KImageSizeJpegCam2 = TSize( 2048, 1536 ); // |
|
130 const TSize KImageSizeExifCam2 = TSize( 2048, 1536 ); // |
|
131 const TSize KVideoFrameSizeCam2 = TSize( 320, 240 ); // VGA |
|
132 |
|
133 |
|
134 |
|
135 const TTimeIntervalMicroSeconds32 KDelayReserve = 500 * 1000; // async |
|
136 const TTimeIntervalMicroSeconds32 KDelayPowerOn = 500 * 1000; // async |
|
137 const TTimeIntervalMicroSeconds32 KDelayPowerOff = 500 * 1000; // synch |
|
138 const TTimeIntervalMicroSeconds32 KDelayRelease = 500 * 1000; // synch |
|
139 |
|
140 const TTimeIntervalMicroSeconds32 KDelayImageCapture = 500 * 1000; // synch |
|
141 const TTimeIntervalMicroSeconds32 KDelayImageCaptureComplete = 500 * 1000; // async from capture start |
|
142 const TTimeIntervalMicroSeconds32 KVfFrameInterval = 1000*1000 / 5; // 5 fps |
|
143 // =========================================================================== |
|
144 |
|
145 #endif //CAMCAMERA_H |
|