symport/e32/include/videodriver.h
changeset 1 0a7b44b10206
child 2 806186ab5e14
equal deleted inserted replaced
0:c55016431358 1:0a7b44b10206
       
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @publishedPartner
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef __VIDEODRIVER_H__
       
    23 #define __VIDEODRIVER_H__
       
    24 
       
    25 #include <e32cmn.h>
       
    26 
       
    27 struct SRectOpInfo
       
    28 	{
       
    29 	TInt	iX;
       
    30 	TInt	iY;
       
    31 	TInt	iWidth;
       
    32 	TInt	iHeight;
       
    33 	TInt	iSrcX;
       
    34 	TInt	iSrcY;
       
    35 	TUint32	iColor;
       
    36 	};
       
    37 
       
    38 
       
    39 /**
       
    40 Encapsulates information about the screen display mode.
       
    41 
       
    42 An object of this type is passed, via a TPckgBuf, to the HAL handler
       
    43 that deals with the HAL group,function-id pair:
       
    44 - EHalGroupDisplay, EDisplayHalCurrentModeInfo;
       
    45 - EHalGroupDisplay, EDisplayHalSpecifiedModeInfo;
       
    46 
       
    47 @see EDisplayHalCurrentModeInfo
       
    48 @see EDisplayHalSpecifiedModeInfo
       
    49 @see TDisplayHalFunction
       
    50 @see EHalGroupDisplay
       
    51 @see TPckgBuf
       
    52 */
       
    53 class TVideoInfoV01
       
    54 	{
       
    55 public:
       
    56 	TSize	iSizeInPixels;				/**< The visible width/height of the display in pixels. */
       
    57 	TSize	iSizeInTwips;				/**< The visible width/height of the display in twips. */
       
    58 	TBool	iIsMono;					/**< True if display is monochrome; false otherwise. */
       
    59 	TBool	iIsPalettized;				/**< True if display is palettized (in current display mode); false otherwise. */
       
    60 	TInt	iBitsPerPixel;				/**< The number of bits in one pixel. */
       
    61 	TInt	iVideoAddress;				/**< The virtual address of screen memory. */
       
    62 	TInt	iOffsetToFirstPixel;		/**< Number of bytes from iVideoAddress for the first displayed pixel. */
       
    63 	TInt	iOffsetBetweenLines;		/**< Number of bytes between start of one line and start of next. */
       
    64 	TBool	iIsPixelOrderRGB;			/**< The orientation of sub pixels on the screen; True if RBG, False if BGR. */
       
    65 	TBool	iIsPixelOrderLandscape;		/**< True if display pixels are landscape. */
       
    66 	TInt	iDisplayMode;				/**< The current display mode. */
       
    67 	};
       
    68 
       
    69 
       
    70 /**
       
    71 Package buffer for a TVideoInfoV01 object.
       
    72 
       
    73 @see TVideoInfoV01
       
    74 */
       
    75 typedef TPckgBuf<TVideoInfoV01> TVideoInfoV01Buf;
       
    76 
       
    77 
       
    78 #endif