view src/aci2/mfw/mfw_fv.h @ 673:62a5285e014a

Lorekeeping: allow tpudrv-leonardo.lib on Leonardo/Tango Back in 2015 the Mother's idea was to produce a FreeCalypso development board that would be a clone of TI Leonardo, including the original quadband RFFE; one major additional stipulation was that this board needed to be able to run original unmodified TCS211-20070608 firmware with all blobs intact, with only minimal binary patches to main.lib and tpudrv.lib. The necessary patched libs were produced at that time in the tcs211-patches repository. That plan was changed and we produced FCDEV3B instead, with Openmoko's triband RFFE instead of Leonardo quadband, but when FC Magnetite started in 2016, a TPUDRV_blob= provision was still made, allowing the possibility of patching OM's tpudrv.lib for a restored Leonardo RFFE. Now in 2020 we have FC Tango which is essentially a verbatim clone of Leonardo core, including the original quadband RFFE. We have also deblobbed our firmware so much that we have absolutely no real need for a blob version of tpudrv.lib - but I thought it would be neat to put the ancient TPUDRV_blob= mechanism (classic config) to its originally intended use, just for the heck of it.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 29 May 2020 03:55:36 +0000
parents 93999a60b835
children
line wrap: on
line source

/*
+--------------------------------------------------------------------+
| PROJECT:	MMI-Framework (8417)		$Workfile::	mfw_fv.h	    $|
| $Author::	NDH							$Revision::	1			    $|
| CREATED:	21.05.04		     		$Modtime::	21.05.04	 14:58	$|
| STATE  :	code														 |
+--------------------------------------------------------------------+

   MODULE  : MFW_FV

   PURPOSE :This module contains File Viewer Interface functions.

   HISTORY  :

    Aug 22, 2005    REF: ENH 31154 xdeepadh
   	Description: Application to Test Camera
   	Solution: Implemeted the Fileviewer to view the jpeg images.Camera Application to 
   	preview,capture and save image has been implemented.
	

*/
#ifndef DEF_MFW_FV
#define DEF_MFW_FV

//Defines 

#define SCREEN_SIZE_X 				176	
#define SCREEN_SIZE_Y 				220	
#define  SK_HEIGHT_LATIN				24

#define FV_DSPL_WIDTH 				 SCREEN_SIZE_X
#define FV_DSPL_HEIGHT 				 (SCREEN_SIZE_Y - SK_HEIGHT_LATIN)
#define FV_DSPL_VOLUME 				FV_DSPL_WIDTH * FV_DSPL_HEIGHT

#define  FV_SCALE_VOLUME  			 FV_DSPL_VOLUME / 4

#define MFW_ZOOM_WIDTH_DELTA  	32
#define MFW_ZOOM_HEIGHT_DELTA  	35 


//Defines for zooming
#define FV_NO_ZOOM 		0
#define FV_ZOOM_IN 		1
#define FV_ZOOM_OUT 	2

//Defines for rotation
#define FV_ROTATE_90	 0
#define FV_ROTATE_180 	 1
#define FV_ROTATE_270 	 2
#define FV_ROTATE_360 	 3

int mfw_fv_decode_image(UBYTE * inputbuffer, int size);
SHORT  mfw_fv_zoom_image();
SHORT  mfw_fv_rotate_image();

#endif  //DEF_MFW_FV