#ifndef _SSD1928_CAM_H
#define _SSD1928_CAM_H

#include "MainDemo.h"
#include "Graphics/SSD1926.h"

//Device ID of all three OmniVision camera models is 0x60
#ifndef CAM_DEVICE_ID
	#define CAM_DEVICE_ID	0x60
#endif

typedef struct _PREVIEW_PARAM
{
	BYTE previewHRatio;
	BYTE previewVRatio;
	WORD previewCropHStart;
	WORD previewCropVStart;
	WORD previewCropHSize;
	WORD previewCropVSize;
} PREVIEW_PARAM;

PREVIEW_PARAM _param;

/*
*************************************************************************************
* Function: 	Enable/Disable camera preview function.
*
* PreCondition: Call camInit() prior to calling this function
*
* Arguments:	'DWORD' addr is the starting address for preview image in the display buffer
*				'BOOL' on is the ON/OFF switch for preview. TRUE->ON, FALSE->OFF
*				
* Return:		None
*
* Note:		
*************************************************************************************
*/
void SSD1928CamInit(void);
void SSD1928CamSetPreviewParam(PREVIEW_PARAM param);
void SSD1928CamPreview(DWORD address, BOOL on);
void SSD1928CamStill(DWORD address, BOOL on);
void SSD1928CamHardwareInit(void);

#endif
