lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /*****************************************************************************
|
| 2 | * °æ±¾ËùÓÐ (C)2008ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾
|
| 3 | * Ä£¿éÃû £º
|
| 4 | * ʵÏÖ¹¦ÄÜ £º
|
| 5 | * ×÷Õß £º
|
| 6 | * °æ±¾ £º
|
| 7 | * Íê³ÉÈÕÆÚ £º
|
| 8 | * ÆäËü˵Ã÷ £ºMSPÉãÏñ¶ÔÍâ½Ó¿ÚÍ·Îļþ
|
| 9 | * ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
|
| 10 | * ---------------------------------------------------------------------
|
| 11 | * 2008/08/01 V1.0 XXXX XXXX
|
| 12 | ************************************************************************/
|
| 13 | #ifndef ZTE_DV_H
|
| 14 | #define ZTE_DV_H
|
| 15 |
|
| 16 | /**************************************************************************
|
| 17 | * Í·Îļþ°üº¬ *
|
| 18 | **************************************************************************/
|
| 19 | #include "zte_display.h"
|
| 20 | /**************************************************************************
|
| 21 | * ºê *
|
| 22 | **************************************************************************/
|
| 23 |
|
| 24 |
|
| 25 | /**************************************************************************
|
| 26 | * Êý¾ÝÀàÐÍ *
|
| 27 | **************************************************************************/
|
| 28 | typedef enum
|
| 29 | {
|
| 30 | VIDEO_MIC = 1,
|
| 31 | VIDEO_HEADSET
|
| 32 | }VIDEO_CODEC_PATH;
|
| 33 |
|
| 34 | typedef enum
|
| 35 | {
|
| 36 | FILE_3GP,
|
| 37 | FILE_MP4
|
| 38 | }VIDEO_FILE_TYPE;
|
| 39 |
|
| 40 | typedef enum
|
| 41 | {
|
| 42 | DV_TYPE,
|
| 43 | VIDEO_TYPE,
|
| 44 | STREAM_TYPE,
|
| 45 | VT_TYPE
|
| 46 | }DV_APP_TYPE;
|
| 47 |
|
| 48 | typedef struct
|
| 49 | {
|
| 50 | CHAR *savefile_path;
|
| 51 | VIDEO_CODEC_PATH codec_path;
|
| 52 | RECT_T rec_rect;
|
| 53 | MIRROR_PARAM_T mirror;
|
| 54 | MAN_ROTATE_TYPE rotate;
|
| 55 | QUALITY_MODE_E quality;
|
| 56 | UINT32 maxStreamSize;
|
| 57 | BOOL audioenable;
|
| 58 | EFFECT_TYPE_E effect;
|
| 59 | VIDEO_FILE_TYPE filetype;
|
| 60 | }DV_RECORD_START_PARAM_T;
|
| 61 |
|
| 62 | /**************************************************************************
|
| 63 | * º¯ÊýÔÐÍ *
|
| 64 | **************************************************************************/
|
| 65 | DCAMERA_RETURN_VALUE_E DV_Open(DCAMERA_SENSOR_E param);
|
| 66 |
|
| 67 | DCAMERA_RETURN_VALUE_E DV_Close(void);
|
| 68 |
|
| 69 | DCAMERA_RETURN_VALUE_E DV_StartRecord(DV_RECORD_START_PARAM_T *param);
|
| 70 |
|
| 71 | DCAMERA_RETURN_VALUE_E DV_StopRecord(void);
|
| 72 |
|
| 73 | DCAMERA_RETURN_VALUE_E DV_PauseRecord(void);
|
| 74 |
|
| 75 | DCAMERA_RETURN_VALUE_E DV_ResumeRecord(void);
|
| 76 |
|
| 77 | DCAMERA_RETURN_VALUE_E DV_SetRotate(MAN_ROTATE_TYPE param);
|
| 78 |
|
| 79 | DCAMERA_RETURN_VALUE_E DV_SetZoom(ZOOM_LEVEL_E param);
|
| 80 |
|
| 81 | DCAMERA_RETURN_VALUE_E DV_SetBright(BRITENESS_E level);
|
| 82 |
|
| 83 | DCAMERA_RETURN_VALUE_E DV_SetContrast(CONTRAST_E level);
|
| 84 |
|
| 85 | DCAMERA_RETURN_VALUE_E DV_SetEffect(EFFECT_TYPE_E effect);
|
| 86 |
|
| 87 | DCAMERA_RETURN_VALUE_E DV_GetFileSize(UINT32 *length);
|
| 88 |
|
| 89 | DCAMERA_RETURN_VALUE_E DV_GetCurTime(UINT32 *uitime);
|
| 90 |
|
| 91 | #endif
|