blob: f3b5e9cbe5355fe13b1cbac5e060c6a55420d720 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/************************************************************************
2* °æÈ¨ËùÓÐ(C)2007,ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
3* Ä£¿éÃû £º ¿ÉÊӵ绰ҵÎñÖжàýÌåÇý¶¯Ä£¿é
4* ÎļþÃû³Æ£º zte_vtdriver.h
5* Îļþ±êʶ£º
6* ÄÚÈÝÕªÒª£º
7*
8* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
9* ----------------------------------------------------------------------
10* 2009/6/3 1.0 ´ú¿µ
11************************************************************************/
12
13#ifndef ZTE_VT_DRIVER_H
14#define ZTE_VT_DRIVER_H
15
16#ifdef __cplusplus
17 extern "C"
18 {
19#endif
20/**************************************************************************
21 * Í·Îļþ°üº¬ *
22 **************************************************************************/
23
24/**************************************************************************
25 * ³£Á¿ *
26 **************************************************************************/
27typedef enum
28{
29 VT_VIDEO_H263 = 1,
30 VT_VIDEO_MP4
31}VT_VIDEO_FORMAT;
32
33/* AMRµÄÖ¡ÂÊ */
34typedef enum {
35 VT_VOICE_FRAME_MR475 = 0,
36 VT_VOICE_FRAME_MR515,
37 VT_VOICE_FRAME_MR59,
38 VT_VOICE_FRAME_MR67,
39 VT_VOICE_FRAME_MR74,
40 VT_VOICE_FRAME_MR795,
41 VT_VOICE_FRAME_MR102,
42 VT_VOICE_FRAME_MR122,
43
44 VT_MAX_VOICE_FRAME_TYPE
45}VT_VOICE_FRAME_TYPE;
46
47/* AMRµÄÖ¡¸ñʽ */
48typedef enum {
49 VT_VOICE_AMR_IF2,
50 VT_VOICE_AMR_IF1,
51
52 VT_MAX_VOICE_AMR_IF
53}VT_VOICE_AMRIF;
54
55/* º¯Êý·µ»ØÖµ */
56typedef enum
57{
58 MM_COM_OP_SUCCESS = 0, /* ²Ù×÷³É¹¦ */
59 MM_COM_OP_ERROR = -1, /* ²Ù×÷ʧ°Ü */
60 MM_OPEN_AUDIO_FAILE = -2, /* ´ò¿ªAudioÉ豸ʧ°Ü */
61 MM_OPEN_VIDEO_FAILE = -3, /* ´ò¿ªVideoÉ豸ʧ°Ü */
62 MM_OPEN_CAM_FAILE = -4, /* ´ò¿ªCAMÉ豸ʧ°Ü */
63 MM_AUDIO_DEV_UNOPENED = -5, /* AudioÉ豸û´ò¿ª */
64 MM_VIDEO_DEV_UNOPENED = -6, /* VideoÉ豸û´ò¿ª */
65 MM_CAM_DEV_UNOPENED = -7, /* CAMÉ豸û´ò¿ª */
66 MM_PARAM_ERROR = -8, /* ²ÎÊýÊäÈë´íÎó */
67}MM_COM_ERRCODE;
68
69/* ÊäÈëÒôÁ¿ */
70typedef enum
71{
72 MM_INPUT_VOLUME_LEVEL_0 = 0,
73 MM_INPUT_VOLUME_LEVEL_1,
74 MM_INPUT_VOLUME_LEVEL_2,
75 MM_INPUT_VOLUME_LEVEL_3,
76 MM_INPUT_VOLUME_LEVEL_4,
77 MM_INPUT_VOLUME_LEVEL_5,
78} T_MM_INPUT_VOLUME_LEVEL;
79
80/* Êä³öÒôÁ¿ */
81typedef enum
82{
83 MM_OUTPUT_VOLUME_LEVEL_0 = 0,
84 MM_OUTPUT_VOLUME_LEVEL_1,
85 MM_OUTPUT_VOLUME_LEVEL_2,
86 MM_OUTPUT_VOLUME_LEVEL_3,
87 MM_OUTPUT_VOLUME_LEVEL_4,
88 MM_OUTPUT_VOLUME_LEVEL_5,
89} T_MM_OUTPUT_VOLUME_LEVEL;
90
91/* ÊäÈëͨµÀ */
92typedef enum
93{
94 MM_CHANNEL_INPUT_MICPHONE = 1, /* Âó¿Ë·ç */
95 MM_CHANNEL_INPUT_HEADSET, /* ¶ú»ú»°Í² */
96
97} T_MM_CHANNEL_INPUT;
98
99/* Êä³öͨµÀ */
100typedef enum
101{
102 MM_CHANNEL_OUTPUT_RECEIVER = 1, /* ÌýͲ */
103 MM_CHANNEL_OUTPUT_SPEAKER, /* ÑïÉùÆ÷ */
104 MM_CHANNEL_OUTPUT_HEADPHONE, /* ¶ú»ú */
105 MM_CHANNEL_OUTPUT_SPEAKER_HEADPHONE, /* ÑïÉùÆ÷ºÍ»°Í² */
106 MM_CHANNEL_OUTPUT_BLUETOOTH, /* À¶ÑÀ */
107}T_MM_CHANNEL_OUTPUT;
108
109/* Ö÷¸±ÉãÏñÍ· */
110typedef enum
111{
112 MM_SENSOR_MAIN = 0,
113 MM_SENSOR_SUB
114} T_MM_CAM_SENSOR;
115
116/* »­ÃæËõ·Å */
117typedef enum
118{
119 MM_ZOOM_LEVEL_1= 0, /* level 1 */
120 MM_ZOOM_LEVEL_2, /* level 2 */
121 MM_ZOOM_LEVEL_3, /* level 3 */
122 MM_ZOOM_LEVEL_4, /* level 4 */
123 MM_ZOOM_LEVEL_5, /* level 5 */
124} T_MM_ZOOM_LEVEL;
125
126
127/* ÉãÏñÍ·ÁÁ¶È */
128typedef enum
129{
130 MM_BRIGHTNESS_LEVEL_0 = 0, /* level 0 */
131 MM_BRIGHTNESS_LEVEL_1, /* level 1 */
132 MM_BRIGHTNESS_LEVEL_2, /* level 2 */
133 MM_BRIGHTNESS_LEVEL_3, /* level 3 */
134 MM_BRIGHTNESS_LEVEL_4, /* level 4 */
135} T_MM_CamBrightness;
136
137/* ÉãÏñÍ·¶Ô±È¶È */
138typedef enum
139{
140 MM_CONTRAST_LEVEL_0 = 0, /* level 0 */
141 MM_CONTRAST_LEVEL_1, /* level 1 */
142 MM_CONTRAST_LEVEL_2, /* level 2 */
143 MM_CONTRAST_LEVEL_3, /* level 3 */
144 MM_CONTRAST_LEVEL_4, /* level 4 */
145} T_MM_CamContrast;
146
147/* ÉãÏñͷЧ¹û */
148typedef enum
149{
150 MM_EFFECT_NORMAL,
151 MM_EFFECT_BLACK_AND_WHITE,
152 MM_EFFECT_NEGATIVE,
153 MM_EFFECT_ANTIQUE,
154 MM_EFFECT_BLUISH,
155 MM_EFFECT_GREENISH,
156 MM_EFFECT_REDISH,
157 MM_EFFECT_BW_NEGATIVE,
158} T_MM_CamEffect;
159
160/* °×ƽºâ */
161typedef enum
162{
163 MM_WHITEBALANCE_AUTO = 0,
164 MM_WHITEBALANCE_DAYLIGHT,
165 MM_WHITEBALANCE_CLOUDY,
166 MM_WHITEBALANCE_INCANDESCENCE,
167 MM_WHITEBALANCE_FLUORESCENCE
168} T_MM_WHITE_BALANCE;
169
170/* ÏÔÊ¾ÇøÓò */
171typedef struct
172{
173 UINT32 x; /* Æðµãºá×ø±ê */
174 UINT32 y; /* Æðµã×Ý×ø±ê */
175 UINT32 width; /* ¿í¶È */
176 UINT32 height; /* ¸ß¶È */
177} T_MM_DISPLAY_RECT;
178
179
180
181/**************************************************************************
182 * ºê¶¨Òå *
183 **************************************************************************/
184
185/**************************************************************************
186 * Êý¾ÝÀàÐÍ *
187 **************************************************************************/
188/* ÓïÒôAMRÖ¡ÀàÐÍÐÅÏ¢ */
189typedef struct _VT_VOICE_AMRINFO_T
190{
191 VT_VOICE_AMRIF amrif; /* AMRµÄÖ¡ÀàÐÍ */
192 VT_VOICE_FRAME_TYPE frametype; /* AMRµÄÖ¡ÂÊ */
193}VT_VOICE_AMRINFO_T;
194
195typedef struct _VT_VOICE_PARAM_T
196{
197 VT_VOICE_AMRINFO_T tVoiceInfo; /* ÓïÒôÅäÖÃÐÅÏ¢ */
198}VT_VOICE_PARAM_T;
199
200typedef struct _VT_VIDEO_DISPARAM_T
201{
202 RECT_T tLocalRect; /* ±¾¶ËͼÏñÏÔÊ¾ÇøÓò */
203 RECT_T tRemoteRect; /* ¶Ô¶ËͼÏñÏÔÊ¾ÇøÓò */
204}VT_VIDEO_DISPARAM_T;
205
206typedef struct _VT_ENCODE_PARAM_T
207{
208 UINT32 uiWidth; /* ±àÂëÊä³öͼÏñ¿í¶È */
209 UINT32 uiHeight; /* ±àÂëÊä³öͼÏñ¸ß¶È */
210 UINT32 uiFramerate; /* ±àÂëÊä³öͼÏñÖ¡ÂÊ */
211 UINT32 uiBitrate; /* ±àÂëÊä³öͼÏñλÂÊ */
212 VT_VIDEO_FORMAT tVideoFormat; /* ±àÂëÊä³öͼÏñ¸ñʽ */
213}VT_ENCPARAM_T;
214
215typedef struct _VT_DECPARAM_T
216{
217 UINT32 uiWidth; /* ½âÂëÊäÈëͼÏñ¿í¶È */
218 UINT32 uiHeight; /* ½âÂëÊäÈëͼÏñ¸ß¶È */
219 VT_VIDEO_FORMAT tVideoFormat; /* ½âÂëÊäÈëͼÏñ¸ñʽ */
220}VT_DECPARAM_T;
221
222typedef struct _VT_CODEC_PARAM_T
223{
224 VT_ENCPARAM_T tEncParam; /* ±¾¶ËͼÏñ±àÂë²ÎÊý */
225 VT_DECPARAM_T tDecParam; /* ¶Ô¶ËͼÏñ½âÂë²ÎÊý */
226 VT_VIDEO_DISPARAM_T tDisParam; /* ±¾¶Ô¶ËͼÏñÏÔÊ¾ÇøÓò */
227}VT_VIDEO_PARAM_T;
228
229/**************************************************************************
230 * ÀàÉùÃ÷ £¨¶ÔÓÚCÓïÑÔµÄÍ·Îļþ£¬¿É²Ã¼ô£© *
231 **************************************************************************/
232
233/**************************************************************************
234 * Ä£°å £¨¶ÔÓÚCÓïÑÔµÄÍ·Îļþ£¬¿É²Ã¼ô£© *
235 **************************************************************************/
236
237/**************************************************************************
238 * È«¾Ö±äÁ¿ÉùÃ÷ *
239 **************************************************************************/
240
241/**************************************************************************
242 * È«¾Öº¯ÊýÔ­ÐÍ *
243 **************************************************************************/
244/**
245 * º¯ÊýÃû³Æ£º VT_Voice_Open
246 * ¹¦ÄÜÃèÊö£º ´ò¿ªVTÓïÒôÇý¶¯Í¨µÀ
247 * ²ÎÊý˵Ã÷£º (IN) iVoiceFd:VoiceÉ豸¾ä±ú
248 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
249 * ÆäËü˵Ã÷£º ÎÞ
250 */
251DCAMERA_RETURN_VALUE_E VT_Voice_Open(SINT32 iVoiceFd);
252
253/**
254 * º¯ÊýÃû³Æ£º VT_Voice_Close
255 * ¹¦ÄÜÃèÊö£º ¹Ø±ÕVTÓïÒôÇý¶¯Í¨µÀ
256 * ²ÎÊý˵Ã÷£º (IN) ÎÞ
257 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
258 * ÆäËü˵Ã÷£º ÎÞ
259 */
260DCAMERA_RETURN_VALUE_E VT_Voice_Close(VOID);
261
262/**
263 * º¯ÊýÃû³Æ£º VT_Voice_Init
264 * ¹¦ÄÜÃèÊö£º ³õʼ»¯VTÓïÒôÇý¶¯Í¨µÀ
265 * ²ÎÊý˵Ã÷£º (IN) pVoiceParam VTÓïÒôÇý¶¯Í¨µÀ³õʼ»¯²ÎÊý
266 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
267 * ÆäËü˵Ã÷£º ÎÞ
268 */
269DCAMERA_RETURN_VALUE_E VT_Voice_Init(VT_VOICE_PARAM_T *pVoiceParam);
270
271/**
272 * º¯ÊýÃû³Æ£º VT_Voice_Release
273 * ¹¦ÄÜÃèÊö£º ÊÍ·ÅVTÓïÒôÇý¶¯Í¨µÀ
274 * ²ÎÊý˵Ã÷£º (IN) ÎÞ
275 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
276 * ÆäËü˵Ã÷£º ÎÞ
277 */
278DCAMERA_RETURN_VALUE_E VT_Voice_Release(VOID);
279
280/**
281 * º¯ÊýÃû³Æ£º VT_Voice_Read
282 * ¹¦ÄÜÃèÊö£º VTÓïÒôÊý¾Ý¶ÁÈ¡£¬Ò»´Î¶Áȡһ֡ÓïÒô
283 * ²ÎÊý˵Ã÷£º (IN/OUT) pVoiceBuf ´æ·Å¶ÁÈ¡µÄÓïÒôÊý¾Ý(AMR)
284 * (IN) uiBufLen pVoiceBufµÄ³¤¶È£¬±ØÐë´óÓÚ32×Ö½Ú
285 * ·µ »Ø Öµ£º ³É¹¦·µ»ØÒѶÁÈ¡µÄ×Ö½ÚÊý£¬Ê§°Ü·µ»ØÐ¡ÓÚ0µÄÖµ
286 * ÆäËü˵Ã÷£º ÎÞ
287 */
288SINT32 VT_Voice_Read(CHAR *pVoiceBuf, UINT32 uiBufLen);
289
290/**
291 * º¯ÊýÃû³Æ£º VT_Voice_Write
292 * ¹¦ÄÜÃèÊö£º VTÓïÒôÊý¾ÝÊä³ö£¬Ò»´ÎÊä³öÒ»Ö¡ÓïÒô
293 * ²ÎÊý˵Ã÷£º (IN) pVoiceBuf ´ýÊä³öµÄÓïÒôÊý¾Ý(AMR)µØÖ·
294 * (IN) uiBufLen ´ýÊä³öµÄÓïÒôÊý¾Ý(AMR)³¤¶È
295 * ·µ »Ø Öµ£º ³É¹¦·µ»ØÊä³öµÄ×Ö½ÚÊý£¬Ê§°Ü·µ»ØÐ¡ÓÚ0µÄÖµ
296 * ÆäËü˵Ã÷£º ÎÞ
297 */
298SINT32 VT_Voice_Write(CHAR *pVoiceBuf, UINT32 uiBufLen);
299
300/**
301 * º¯ÊýÃû³Æ£º VT_Voice_SetCodecParam
302 * ¹¦ÄÜÃèÊö£º ÉèÖÃVTÓïÒô±à½âÂë²ÎÊý
303 * ²ÎÊý˵Ã÷£º (IN)
304 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
305 * ÆäËü˵Ã÷£º ´Ë½Ó¿Ú±£Áô
306 */
307DCAMERA_RETURN_VALUE_E VT_Voice_SetCodecParam(VT_VOICE_AMRINFO_T *pVoiceInfo);
308
309/**
310 * º¯ÊýÃû³Æ£º VT_Video_Open
311 * ¹¦ÄÜÃèÊö£º ´ò¿ªVTÊÓÆµÇý¶¯Í¨µÀ
312 * ²ÎÊý˵Ã÷£º ÎÞ
313 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
314 * ÆäËü˵Ã÷£º ÎÞ
315 */
316DCAMERA_RETURN_VALUE_E VT_Video_Open(VOID);
317
318/**
319 * º¯ÊýÃû³Æ£º VT_Video_Open
320 * ¹¦ÄÜÃèÊö£º ¹Ø±ÕVTÊÓÆµÇý¶¯Í¨µÀ
321 * ²ÎÊý˵Ã÷£º ÎÞ
322 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
323 * ÆäËü˵Ã÷£º ÎÞ
324 */
325DCAMERA_RETURN_VALUE_E VT_Video_Close(VOID);
326
327/**
328 * º¯ÊýÃû³Æ£º VT_Video_Init
329 * ¹¦ÄÜÃèÊö£º ³õʼ»¯VTÊÓÆµÇý¶¯Í¨µÀ
330 * ²ÎÊý˵Ã÷£º (IN) pVodieParam VTÊÓÆµÇý¶¯Í¨µÀ³õʼ»¯²ÎÊý
331 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
332 * ÆäËü˵Ã÷£º Ŀǰ½öÖ§³Ö±à½âÂë¾ùΪH263¸ñʽ£¬±àÂë½öÖ§³ÖQCIF(176 * 144)
333 * ¸ñʽµÄͼÏñ
334 */
335DCAMERA_RETURN_VALUE_E VT_Video_Init(VT_VIDEO_PARAM_T *pCodecParam);
336
337/**
338 * º¯ÊýÃû³Æ£º VT_Video_Release
339 * ¹¦ÄÜÃèÊö£º ÊÍ·ÅVTÊÓÆµÇý¶¯Í¨µÀ
340 * ²ÎÊý˵Ã÷£º (IN) ÎÞ
341 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
342 * ÆäËü˵Ã÷£º ÎÞ
343 */
344DCAMERA_RETURN_VALUE_E VT_Video_Release(VOID);
345
346/**
347 * º¯ÊýÃû³Æ£º VT_Video_LocalOpen
348 * ¹¦ÄÜÃèÊö£º ±¾¶ËÏÔʾ´ò¿ª
349 * ²ÎÊý˵Ã÷£º (IN) ÎÞ
350 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
351 * ÆäËü˵Ã÷£º ÎÞ
352 */
353DCAMERA_RETURN_VALUE_E VT_Video_LocalOpen(VOID);
354
355/**
356 * º¯ÊýÃû³Æ£º VT_Video_LocalClose
357 * ¹¦ÄÜÃèÊö£º ±¾¶ËÏÔʾ¹Ø±Õ
358 * ²ÎÊý˵Ã÷£º (IN) ÎÞ
359 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
360 * ÆäËü˵Ã÷£º ÎÞ
361 */
362DCAMERA_RETURN_VALUE_E VT_Video_LocalClose(VOID);
363
364/**
365 * º¯ÊýÃû³Æ£º VT_Video_Read
366 * ¹¦ÄÜÃèÊö£º VTÊÓÆµÊý¾Ý¶ÁÈ¡
367 * ²ÎÊý˵Ã÷£º (IN/OUT) pFrameBuf ´æ·Å¶ÁÈ¡µÄÊÓÆµÍ¼ÏñÊý¾Ý
368 * (IN) uiBufLen pFrameBufµÄ³¤¶È
369 * ·µ »Ø Öµ£º ³É¹¦·µ»ØÒѶÁÈ¡µÄ×Ö½ÚÊý£¬Ê§°Ü·µ»ØÐ¡ÓÚ0µÄÖµ
370 * ÆäËü˵Ã÷£º ÎÞ
371 */
372SINT32 VT_Video_Read(CHAR *pFrameBuf, UINT32 uiBufLen);
373
374/**
375 * º¯ÊýÃû³Æ£º VT_Video_Write
376 * ¹¦ÄÜÃèÊö£º VTÊÓÆµÊý¾ÝÊä³ö
377 * ²ÎÊý˵Ã÷£º (IN) pFrameBuf ´ýÊä³öµÄÊÓÆµÍ¼ÏñÊý¾ÝµØÖ·
378 * (IN) uiBufLen ´ýÊä³öµÄÊÓÆµÍ¼ÏñÊý¾Ý³¤¶È
379 * ·µ »Ø Öµ£º ³É¹¦·µ»ØÊä³öµÄ×Ö½ÚÊý£¬Ê§°Ü·µ»ØÐ¡ÓÚ0µÄÖµ
380 * ÆäËü˵Ã÷£º ÎÞ
381 */
382SINT32 VT_Video_Write(CHAR *pFrameBuf, UINT32 uiBufLen);
383
384/**
385 * º¯ÊýÃû³Æ£º VT_Video_SetDisplayParam
386 * ¹¦ÄÜÃèÊö£º VTÊÓÆµÏÔÊ¾ÇøÓòÉèÖÃ
387 * ²ÎÊý˵Ã÷£º (IN) pDisplayParam VTÊÓÆµ±¾¶Ô¶ËͼÏñÏÔÊ¾ÇøÓò
388 * ·µ »Ø Öµ£º ³É¹¦·µ»ØDCAMERA_OP_SUCCESS
389 * ÆäËü˵Ã÷£º ½Ó¿Ú±ØÐëÔÚVT_Video_Initºóµ÷Óã¬ÓÉÓÚÊÜÓ²¼þÏÞÖÆ
390 * ×ø±ê¡¢¿í¡¢¸ß²»ÄÜÊÇÈÎÒâµÄ×éºÏ
391 */
392DCAMERA_RETURN_VALUE_E VT_Video_SetDisplayParam(VT_VIDEO_DISPARAM_T *pDisplayParam);
393
394/**************************************************************************
395* º¯ÊýÃû³Æ£º mm_dvm_set_inputvolume
396* ¹¦ÄÜÃèÊö£º ÉèÖÃÉùÒôÊäÈëÒôÁ¿
397* ²ÎÊý˵Ã÷£º (IN)£º InputVol: ÊäÈëÒôÁ¿´óС
398* (OUT)£ºÎÞ
399* ·µ »Ø Öµ£º MM_COM_OP_SUCCESS: ³É¹¦
400* ÆäËü˵Ã÷£º
401**************************************************************************/
402SINT32 mm_dvm_set_inputvolume(T_MM_INPUT_VOLUME_LEVEL InputVol);
403
404
405/**************************************************************************
406* º¯ÊýÃû³Æ£º mm_dvm_set_volume
407* ¹¦ÄÜÃèÊö£º ÉèÖÃÉùÒôÊä³öÒôÁ¿
408* ²ÎÊý˵Ã÷£º (IN)£º OutPutVol: Êä³öÒôÁ¿´óС
409* (OUT)£ºÎÞ
410* ·µ »Ø Öµ£º MM_COM_OP_SUCCESS: ³É¹¦
411* ÆäËü˵Ã÷£º
412**************************************************************************/
413SINT32 mm_dvm_set_volume(T_MM_OUTPUT_VOLUME_LEVEL OutPutVol);
414
415
416/**************************************************************************
417* º¯ÊýÃû³Æ£º mm_dvm_set_inputchannel
418* ¹¦ÄÜÃèÊö£º ÉèÖÃÉùÒôÊäÈëͨµÀ
419* ²ÎÊý˵Ã÷£º (IN)£º InChannel: ÉùÒôÊäÈëͨµÀ
420* (OUT)£ºÎÞ
421* ·µ »Ø Öµ£º MM_COM_OP_SUCCESS: ³É¹¦
422* ÆäËü˵Ã÷£º
423**************************************************************************/
424SINT32 mm_dvm_set_inputchannel(T_MM_CHANNEL_INPUT InChannel);
425
426
427/**************************************************************************
428* º¯ÊýÃû³Æ£º mm_dvm_set_outputchannel
429* ¹¦ÄÜÃèÊö£º ÉèÖÃÉùÒôÊä³öͨµÀ
430* ²ÎÊý˵Ã÷£º (IN)£º OutChannel: ÉùÒôÊä³öͨµÀ
431* (OUT)£ºÎÞ
432* ·µ »Ø Öµ£º MM_COM_OP_SUCCESS: ³É¹¦
433* ÆäËü˵Ã÷£º
434**************************************************************************/
435SINT32 mm_dvm_set_outputchannel(T_MM_CHANNEL_OUTPUT OutChannel);
436
437
438/**************************************************************************
439* º¯ÊýÃû³Æ£º mm_dvm_set_mute
440* ¹¦ÄÜÃèÊö£º ÉèÖþ²Òô
441* ²ÎÊý˵Ã÷£º (IN)£º bFlag: True : ÉèÖþ²Òô
442 False: È¡Ïû¾²Òô
443* (OUT)£ºÎÞ
444* ·µ »Ø Öµ£º MM_COM_OP_SUCCESS: ³É¹¦
445* ÆäËü˵Ã÷£º
446**************************************************************************/
447SINT32 mm_dvm_set_mute(BOOL bFlag);
448
449
450
451
452/**************************************************************************
453* º¯ÊýÃû³Æ£º mm_dvm_set_zoom
454* ¹¦ÄÜÃèÊö£º ÉèÖû­ÃæËõ·Å
455* ²ÎÊý˵Ã÷£º (IN)£º ZoomLevel: »­ÃæËõ·Åˮƽ
456* (OUT)£ºÎÞ
457* ·µ »Ø Öµ£º MM_COM_OP_SUCCESS: ³É¹¦
458* ÆäËü˵Ã÷£º
459**************************************************************************/
460SINT32 mm_dvm_set_zoom(T_MM_ZOOM_LEVEL ZoomLevel);
461
462
463/**************************************************************************
464* º¯ÊýÃû³Æ£º mm_dvm_set_brightness
465* ¹¦ÄÜÃèÊö£º ÉèÖû­ÃæÁÁ¶È
466* ²ÎÊý˵Ã÷£º (IN) Brightness£º»­ÃæÁÁ¶È
467* (OUT) ÎÞ
468* ·µ »Ø Öµ£º MM_COM_OP_SUCCESS: ³É¹¦
469* ÆäËü˵Ã÷£º
470**************************************************************************/
471SINT32 mm_dvm_set_brightness(T_MM_CamBrightness Brightness);
472
473
474/**************************************************************************
475* º¯ÊýÃû³Æ£º mm_dvm_set_contrast
476* ¹¦ÄÜÃèÊö£º ÉèÖû­Ãæ¶Ô±È¶È
477* ²ÎÊý˵Ã÷£º (IN) Contrast£º»­Ãæ¶Ô±È¶È
478* (OUT) ÎÞ
479* ·µ »Ø Öµ£º MM_COM_OP_SUCCESS: ³É¹¦
480* ÆäËü˵Ã÷£º
481**************************************************************************/
482SINT32 mm_dvm_set_contrast(T_MM_CamContrast Contrast);
483
484
485/**************************************************************************
486* º¯ÊýÃû³Æ£º mm_dvm_set_effect
487* ¹¦ÄÜÃèÊö£º ÉèÖû­ÃæÐ§¹û
488* ²ÎÊý˵Ã÷£º (IN) Effect£º»­ÃæÐ§¹û
489* (OUT) ÎÞ
490* ·µ »Ø Öµ£º MM_COM_OP_SUCCESS: ³É¹¦
491* ÆäËü˵Ã÷£º
492**************************************************************************/
493SINT32 mm_dvm_set_effect(T_MM_CamEffect Effect);
494
495
496/**************************************************************************
497* º¯ÊýÃû³Æ£º mm_dvm_set_whitebalance
498* ¹¦ÄÜÃèÊö£º ÉèÖû­ÃæÐ§¹û
499* ²ÎÊý˵Ã÷£º (IN) WhiteBalance£º°×ƽºâÖµ
500* (OUT) ÎÞ
501* ·µ »Ø Öµ£º MM_COM_OP_SUCCESS: ³É¹¦
502* ÆäËü˵Ã÷£º
503**************************************************************************/
504SINT32 mm_dvm_set_whitebalance(T_MM_WHITE_BALANCE WhiteBalance);
505
506/**************************************************************************
507* º¯ÊýÃû³Æ£º mm_dvm_camswitch
508* ¹¦ÄÜÃèÊö£º Ñ¡ÔñÖ÷¸±ÉãÏñÍ·
509* ²ÎÊý˵Ã÷£º (IN)£º Sensor: ÉãÏñÍ·ÀàÐÍ
510* (OUT)£ºÎÞ
511* ·µ »Ø Öµ£º MM_COM_OP_SUCCESS: ³É¹¦
512* ÆäËü˵Ã÷£º ±ØÐëÏȶԵ±Ç°µÄÉãÏñÍ·¹Ø±Õ£¬¶øºóÔÙÇл»
513**************************************************************************/
514SINT32 mm_dvm_camswitch(T_MM_CAM_SENSOR Sensor);
515
516#ifdef __cplusplus
517 }
518#endif
519
520#endif
521