/***************************************************************************** | |
* °æ±¾ËùÓÐ (C)2008ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾ | |
* Ä£¿éÃû £º | |
* ʵÏÖ¹¦ÄÜ £º | |
* ×÷Õß £º | |
* °æ±¾ £º | |
* Íê³ÉÈÕÆÚ £º | |
* ÆäËü˵Ã÷ £ºMSPÉãÏñ¶ÔÍâ½Ó¿ÚÍ·Îļþ | |
* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ | |
* --------------------------------------------------------------------- | |
* 2008/08/01 V1.0 XXXX XXXX | |
************************************************************************/ | |
#ifndef ZTE_DV_H | |
#define ZTE_DV_H | |
/************************************************************************** | |
* Í·Îļþ°üº¬ * | |
**************************************************************************/ | |
#include "zte_display.h" | |
/************************************************************************** | |
* ºê * | |
**************************************************************************/ | |
/************************************************************************** | |
* Êý¾ÝÀàÐÍ * | |
**************************************************************************/ | |
typedef enum | |
{ | |
VIDEO_MIC = 1, | |
VIDEO_HEADSET | |
}VIDEO_CODEC_PATH; | |
typedef enum | |
{ | |
FILE_3GP, | |
FILE_MP4 | |
}VIDEO_FILE_TYPE; | |
typedef enum | |
{ | |
DV_TYPE, | |
VIDEO_TYPE, | |
STREAM_TYPE, | |
VT_TYPE | |
}DV_APP_TYPE; | |
typedef struct | |
{ | |
CHAR *savefile_path; | |
VIDEO_CODEC_PATH codec_path; | |
RECT_T rec_rect; | |
MIRROR_PARAM_T mirror; | |
MAN_ROTATE_TYPE rotate; | |
QUALITY_MODE_E quality; | |
UINT32 maxStreamSize; | |
BOOL audioenable; | |
EFFECT_TYPE_E effect; | |
VIDEO_FILE_TYPE filetype; | |
}DV_RECORD_START_PARAM_T; | |
/************************************************************************** | |
* º¯ÊýÔÐÍ * | |
**************************************************************************/ | |
DCAMERA_RETURN_VALUE_E DV_Open(DCAMERA_SENSOR_E param); | |
DCAMERA_RETURN_VALUE_E DV_Close(void); | |
DCAMERA_RETURN_VALUE_E DV_StartRecord(DV_RECORD_START_PARAM_T *param); | |
DCAMERA_RETURN_VALUE_E DV_StopRecord(void); | |
DCAMERA_RETURN_VALUE_E DV_PauseRecord(void); | |
DCAMERA_RETURN_VALUE_E DV_ResumeRecord(void); | |
DCAMERA_RETURN_VALUE_E DV_SetRotate(MAN_ROTATE_TYPE param); | |
DCAMERA_RETURN_VALUE_E DV_SetZoom(ZOOM_LEVEL_E param); | |
DCAMERA_RETURN_VALUE_E DV_SetBright(BRITENESS_E level); | |
DCAMERA_RETURN_VALUE_E DV_SetContrast(CONTRAST_E level); | |
DCAMERA_RETURN_VALUE_E DV_SetEffect(EFFECT_TYPE_E effect); | |
DCAMERA_RETURN_VALUE_E DV_GetFileSize(UINT32 *length); | |
DCAMERA_RETURN_VALUE_E DV_GetCurTime(UINT32 *uitime); | |
#endif |