⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmidc_win32_simu.c

📁 手机Camera部分上层软件代码
💻 C
📖 第 1 页 / 共 3 页
字号:
//                 bit[31]-----------error flag
// Note:       none
/******************************************************************************/
int DC_QueryStatus(void)
{
	static int i = 0;

	i++;
	if (i >= 5)
	{
		i = 0;
		return DC_STATUS_ENCODE_DONE;
	}
	else
	{
		i++;
		return 0;
	}
}

/******************************************************************************/
// Description: wait an event from DCAM 
// Author:     Zhemin.Lin&Benny.Zhou
// Input:      dw_event    event flag
//                         flag define following:
//                         bit[0] -----------LCD entry bypass mode
//                         bit[1] -----------the first frame has been display on lcd
//                         bit[2] -----------review done
//                         bit[3] -----------capture done
//                         bit[15-4]---------reserved
//                         bit[31-16]--------error event
//             dw_waittime 0 refer to no wait, (-1) refer to wait forever
// Output:     none
// Return:     0           successful
//             others      failed
// Note:       none
/******************************************************************************/
int DC_WaitEvent(uint32 dw_event, uint32 dw_waitime)
{
	return 0;

}

/******************************************************************************
 **  following function is for mjpg demuxer
 ******************************************************************************/

/******************************************************************************/
// Description: set mjpg parameters
// Author:     Zhemin.Lin&Benny.Zhou
// Input:      pst_param   point to the mjpg parameter
// Output:     none
// Return:     0           successful
//             others      failed
// Note:       before start preview, call this function to set parameters
/******************************************************************************/
int DC_SetMjpgParam(const DC_MJPG_PARAM_T *pst_param)
{
		return 0;
}
int DC_SetMjpgRecParam(const DC_MJPG_PARAM_T *pst_param)
{
	return 0;
}
/******************************************************************************/
// Description: start mjpg capture 
// Author:     Zhemin.Lin&Benny.Zhou
// Input:      dw_framenum   total frame number, 0 is forbidden
//                           (-1) refer to record infinite.
// Output:     none
// Return:     0           successful
//             others      failed
// Note:       before call this function, you can call DC_SetSnapshotParam()
//             to config parameters 
/******************************************************************************/
int DC_StartMjpgRec(uint32 dw_framenum, DC_RECORD_CALLBACK_FUNC pf_callback)
{
		return 0;

}

/******************************************************************************/
// Description: stop mjpg capture 
// Author:     Zhemin.Lin&Benny.Zhou
// Input:      none
// Output:     none
// Return:     0           successful
//             others      failed
// Note:       none
/******************************************************************************/
int DC_StopMjpgRec(void)
{
		return 0;

}


/******************************************************************************/
// Description: start mjpg decode 
// Author:     Zhemin.Lin&Benny.Zhou
// Input:      none
// Output:     none
// Return:     0           successful
//             others      failed
// Note:       before this you can call DC_SetReviewParam() to set review 
//             parameters
/******************************************************************************/
int DC_StartMjpgDec(void)
{
		return 0;

}

/******************************************************************************/
// Description: send a frame to decode 
// Author:     Zhemin.Lin&Benny.Zhou
// Input:      p_frame    point to frame structure, please refer to block_t
// Output:     none
// Return:     0           successful
//             others      failed
// Note:       none
/******************************************************************************/
int DC_DecAFrame(void *p_frame)
{
		return 0;

}

/******************************************************************************/
// Description: stop mjpg decoding 
// Author:     Zhemin.Lin&Benny.Zhou
// Input:      none
// Output:     none
// Return:     0           successful
//             others      failed
// Note:       none
/******************************************************************************/
int DC_StopMjpgDec(void)
{
		return 0;

}
/******************************************************************************/
// Description: start mjpg capture 
// Author:     Zhemin.Lin&Benny.Zhou
// Input:      dw_framenum   total frame number, 0 is forbidden
//                           (-1) refer to record infinite.
// Output:     none
// Return:     0           successful
//             others      failed
// Note:       before call this function, you can call DC_SetSnapshotParam()
//             to config parameters 
/******************************************************************************/
int DC_StartMpeg4Rec(uint32 dw_framenum, DC_RECORD_CALLBACK_FUNC pf_callback)
{
	return 0;
}

/******************************************************************************/
// Description: set mjpg parameters
// Author:     Zhemin.Lin&Benny.Zhou
// Input:      pst_param   point to the mjpg parameter
// Output:     none
// Return:     0           successful
//             others      failed
// Note:       before start preview, call this function to set parameters
/******************************************************************************/
int DC_SetMpeg4RecParam(const DC_MJPG_PARAM_T *pst_param)
{
	return 0;
}

/******************************************************************************/
// Description: stop mjpg capture 
// Author:     Zhemin.Lin&Benny.Zhou
// Input:      none
// Output:     none
// Return:     0           successful
//             others      failed
// Note:       none
/******************************************************************************/
int DC_StopMpeg4Rec(void)
{
	return 0;
}


void GPIO_SetFlash(BOOLEAN is_flash)
{

}

int DC_SingleModeAutoFocus(const DC_PREVIEW_PARAM_T *pst_param)
{
	return 0;
}

/*****************************************************************************/
//  Description:    get sensor max mode size
//  Author:         Bruce.Chi
//	Note:           
/*****************************************************************************/
PUBLIC PROD_SENSOR_MAX_MODE_E PRODDC_GetSensorMaxMode(void)
{
	//OV9650
	return SENSOR_MODEMAX_1280_1024;
}

/******************************************************************************/
// Description:	set scale factor & fraction
// Author:		Jing.li
// Input:		pt_scale:	scale parameter pointer
//				op_id:		operation type
// Output:		none
// Return:		0           successful
//				others      failed
// Note:		
/******************************************************************************/
PUBLIC BOOLEAN DC_SetScaleParam(SCALE_T *pt_scale, uint8 op_id)
{
    return TRUE;
}

/******************************************************************************/
// Description:	capture YUV data
// Author:		jing.li
// Input:		none
// Output:		none
// Return:		0       uccessful
//				others      failed
// Note:		none
/*******************************************************************************/
PUBLIC int DC_DoSnapshotYUV(void)
{
	return 0;
}

/******************************************************************************/
// Description:	play back YUV data from buffer
// Author:		jing.li
// Input:		p_buf: yuv data buffer
//				len: yuv data length
//				width: yuv data width
//				height: yuv data height;
//				pf_callback: callback function pointer
// Output:		none
// Return:		0        successful
//				others   failed
/******************************************************************************/
PUBLIC int DC_PlaybackYUVFromBuf(
							uint8 *p_buf, 
							uint32 len,
							uint16 width,
							uint16 height,
							PLAYBACK_SET_FUNC pf_callback
						  )
{
	return 1;
}

/******************************************************************************/
// Description:Get Capture YUV buffer
// Author:     jing.li
// Input:      none
// Output:     yuv_size: yuv data size
// Return:     yuv data buffer address
/******************************************************************************/
PUBLIC uint8* DC_GetYUVBuffer(uint32* yuv_size)
{
	return PNULL;
}

/******************************************************************************/
// Description:encode zoom yuv data
// Author:     jing.li
// Input:      none
// Output:     none
// Return:     0        successful
//             others   failed
/******************************************************************************/
PUBLIC uint32 DC_DoEncodeZoomData(void)
{
	return 0;
}
#ifdef __cplusplus
    }
#endif


#endif  /*#ifndef DIGITALCAMERA_H*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -