blob: 0f08bb573323297ab919bed2b3fda96d69c7d13f [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*****************************************************************************
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 **************************************************************************/
28typedef enum
29{
30 VIDEO_MIC = 1,
31 VIDEO_HEADSET
32}VIDEO_CODEC_PATH;
33
34typedef enum
35{
36 FILE_3GP,
37 FILE_MP4
38}VIDEO_FILE_TYPE;
39
40typedef enum
41{
42 DV_TYPE,
43 VIDEO_TYPE,
44 STREAM_TYPE,
45 VT_TYPE
46}DV_APP_TYPE;
47
48typedef 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 **************************************************************************/
65DCAMERA_RETURN_VALUE_E DV_Open(DCAMERA_SENSOR_E param);
66
67DCAMERA_RETURN_VALUE_E DV_Close(void);
68
69DCAMERA_RETURN_VALUE_E DV_StartRecord(DV_RECORD_START_PARAM_T *param);
70
71DCAMERA_RETURN_VALUE_E DV_StopRecord(void);
72
73DCAMERA_RETURN_VALUE_E DV_PauseRecord(void);
74
75DCAMERA_RETURN_VALUE_E DV_ResumeRecord(void);
76
77DCAMERA_RETURN_VALUE_E DV_SetRotate(MAN_ROTATE_TYPE param);
78
79DCAMERA_RETURN_VALUE_E DV_SetZoom(ZOOM_LEVEL_E param);
80
81DCAMERA_RETURN_VALUE_E DV_SetBright(BRITENESS_E level);
82
83DCAMERA_RETURN_VALUE_E DV_SetContrast(CONTRAST_E level);
84
85DCAMERA_RETURN_VALUE_E DV_SetEffect(EFFECT_TYPE_E effect);
86
87DCAMERA_RETURN_VALUE_E DV_GetFileSize(UINT32 *length);
88
89DCAMERA_RETURN_VALUE_E DV_GetCurTime(UINT32 *uitime);
90
91#endif