baseport/syborg/svpframebuffer/svpframebuffer.h
changeset 46 b6935a90ca64
parent 38 33dfab4ab0fc
equal deleted inserted replaced
45:01c1ffcc4fca 46:b6935a90ca64
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
       
    14 * Accenture Ltd - Syborg framebuffer improvements, now auto determines frame size from board model, performance and memory improvements
       
    15 *
    14 * Description: Minimalistic frame buffer driver
    16 * Description: Minimalistic frame buffer driver
    15 *
    17 *
    16 */
    18 */
    17 
    19 
    18 #ifndef _SVPFRAMEBUFFER_H
    20 #ifndef _SVPFRAMEBUFFER_H
    41 // aBpp is the number of bits-per-pixel, aPpl is the number of pixels per line and aLpp number of lines per panel
    43 // aBpp is the number of bits-per-pixel, aPpl is the number of pixels per line and aLpp number of lines per panel
    42 #define FRAME_BUFFER_SIZE(aBpp,aPpl,aLpp)	((aBpp/8)*aPpl*aLpp)	
    44 #define FRAME_BUFFER_SIZE(aBpp,aPpl,aLpp)	((aBpp/8)*aPpl*aLpp)	
    43 
    45 
    44 _LIT(KLitLcd,"SYBORG_FB");
    46 _LIT(KLitLcd,"SYBORG_FB");
    45 
    47 
    46 const TUint KConfigLcdWidth            = 640;
    48 
    47 const TUint	KConfigLcdHeight	       = 480;
    49 const TInt	KConfigLcdWidthInTwips     = 1996;
    48 const TInt	KConfigLcdWidthInTwips     = 9638;
    50 const TInt	KConfigLcdHeightInTwips    = 3550;
    49 const TInt	KConfigLcdHeightInTwips    = 7370;
    51 
    50 const TBool KConfigIsMono              = 0;
    52 const TBool KConfigIsMono              = 0;
    51 const TBool KConfigIsPalettized        = 0;
    53 const TBool KConfigIsPalettized        = 0;
    52 const TInt  KCOnfigOffsetToFirstPixel  = 0;
    54 const TInt  KCOnfigOffsetToFirstPixel  = 0;
    53 const TBool KConfigPixelOrderRGB       = 0;
    55 const TBool KConfigPixelOrderRGB       = 0;
    54 const TBool KConfigPixelOrderLandscape = 1;
    56 const TBool KConfigPixelOrderLandscape = 1;
    55 const TInt  KConfigLcdDisplayMode       = 2;
    57 const TInt  KConfigLcdDisplayMode       = 2;
    56 //const TInt  KConfigLcdDisplayMode       = 1;
    58 
       
    59 const TInt KConfigOffsetToFirstPixel =0;
       
    60 
    57 const TInt  KConfigLcdNumberOfDisplayModes = 3;
    61 const TInt  KConfigLcdNumberOfDisplayModes = 3;
    58 
    62 
    59 
    63 
    60 const TInt  KConfigBitsPerPixel        = 24;
    64 const TInt  KConfigBitsPerPixel        = 32;
    61 const TInt  KCOnfigOffsetBetweenLines  = 2560;
    65 
    62 
    66 
    63 const TInt   KVSyncDfcPriority							= 7 ;   //priority of DFC within the queue (0 to 7, where 7 is highest)
    67 const TInt   KVSyncDfcPriority							= 7 ;   //priority of DFC within the queue (0 to 7, where 7 is highest)
    64 
    68 
    65 /********************************************************************/
    69 /********************************************************************/
    66 /* Class Definition                                                 */
    70 /* Class Definition                                                 */
   200      /**
   204      /**
   201      Called by the LDD to handle the device specific part of setting the rotation.
   205      Called by the LDD to handle the device specific part of setting the rotation.
   202      
   206      
   203      @return KErrNone if successful; or one of the other system wide error codes.
   207      @return KErrNone if successful; or one of the other system wide error codes.
   204      */       
   208      */       
   205     virtual TInt  SetRotation(TInt aRotation);
   209 	virtual TInt  SetRotation(RDisplayChannel::TDisplayRotation aRotation);
   206 
   210 
   207      /**
   211      /**
   208      Called by the LDD to handle the device specific part of posting a User Buffer.
   212      Called by the LDD to handle the device specific part of posting a User Buffer.
   209      
   213      
   210      @return KErrNone if successful; or one of the other system wide error codes.
   214      @return KErrNone if successful; or one of the other system wide error codes.