/*************************************************************************
Copyright(c) 2004-2006 Analog Devices, Inc. All Rights Reserved.

This software is proprietary and confidential.  By using this software you agree
to the terms of the associated Analog Devices License Agreement.

File Name: adi_graph_driver.h 

Description - Part of 'adi_graph' library.  See readme file for details.

*********************************************************************************/


#ifndef __ADI_GRAPH_DRIVER__
#define __ADI_GRAPH_DRIVER__


/*
 * Function prototypes for generic services provided by a hardware
 * driver.  To port ADI_GRAPH to any particular hardware platform, these
 * functions must be implemented.
 */
 
void         ADI_GRAPH_DRV_Init ();
 
void 	SetVideoBufferBaseAddress ( void *); 
void	*GetVideoBufferBaseAddress (void); 

int          ADI_GRAPH_DRV_InitScreenBuffer ( unsigned char *base_address );
int          ADI_GRAPH_DRV_DriveScreenBuffer ( unsigned char *base_address );

void         ADI_GRAPH_DRV_WriteToCanvas ( unsigned short X, unsigned short Y, unsigned int val, void *buffer );
unsigned int ADI_GRAPH_DRV_ReadFromCanvas ( unsigned short X, unsigned short Y, void *buffer );
void*        ADI_GRAPH_DRV_GetScreenCanvas (void);

unsigned int ADI_GRAPH_DRV_ConvertRGBtoNative ( unsigned short B, unsigned short G, unsigned short R);

#endif


