FreeCalypso > hg > leo2moko-debug
comparison g23m/condat/ms/src/mfw/mfw_cam.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /* | |
2 +--------------------------------------------------------------------+ | |
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_cam.h $| | |
4 | $Author:: NDH $Revision:: 1 $| | |
5 | CREATED: 21.05.04 $Modtime:: 21.05.04 14:58 $| | |
6 | STATE : code | | |
7 +--------------------------------------------------------------------+ | |
8 | |
9 MODULE : MFW_CAM | |
10 | |
11 PURPOSE : This module contains the definitions for the Camera Interface. | |
12 /*********************************************************************************************** | |
13 $History: mfw_cam.h | |
14 | |
15 Sep 13, 2005 REF: SPR 33992 xdeepadh | |
16 Description: Image viewer cannot open file when saved in high quality | |
17 Solution: The quality factor has been rearranged to support saving | |
18 the images within 64KBlimit. | |
19 | |
20 Aug 22 2005, xpradipg - LOCOSTO-ENH-31154 | |
21 Description: Application to test camera | |
22 Solution: Implemented the camera application with following functionalities | |
23 preview, snapshot and image saving. | |
24 ************************************************************************************************/ | |
25 | |
26 | |
27 | |
28 #include "rv_swe.h" | |
29 | |
30 //Different Camera States | |
31 #define CAMERA_STATE_IDLE 0 | |
32 #define CAMERA_STATE_VIEWFINDER 1 | |
33 #define CAMERA_STATE_CONFIGURE 2 | |
34 #define CAMERA_STATE_SNAPSHOT 3 | |
35 #define CAMERA_STATE_SAVE 4 | |
36 | |
37 //Sep 13, 2005 REF: SPR 33992 xdeepadh | |
38 //The quality factor has been rearranged. | |
39 //Quality Factor | |
40 #define QUALITY_ECONOMY 40 | |
41 #define QUALITY_STANDARD 55 | |
42 #define QUALITY_HIGH 65 | |
43 | |
44 #define CT_FILE_NAME_LENGTH 15 | |
45 #define CT_FULL_PATH_LENGTH 10 + CT_FILE_NAME_LENGTH | |
46 #define CT_MAX_FILE 10 | |
47 | |
48 #define JPEG_CONTENT_DIR "/mmi/jpeg" | |
49 | |
50 /* Camera Test Return Values */ | |
51 #define MFW_CAM_OK (0) | |
52 #define MFW_CAM_FAILED (-1) | |
53 | |
54 | |
55 /* Camera Test Functions Prototypes */ | |
56 SHORT mfw_cam_take_snapshot(void); | |
57 SHORT mfw_cam_save_snapshot(void); | |
58 void mfw_cam_init(void); | |
59 void mfw_cam_exit(void); | |
60 T_MFW_HND mfw_camera_test_create(T_MFW_HND hWin, T_MFW_EVENT event, T_MFW_CB cbfunc); | |
61 SHORT mfw_cam_disable_sensor(void); | |
62 void mfw_cam_set_quality_factor(UBYTE factor); | |
63 UBYTE mfw_cam_get_quality_factor(); | |
64 void mfw_cam_set_viewfinder_mode(void); | |
65 |