os/kernelhwsrv/kernel/eka/include/videodriver.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/include/videodriver.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,78 @@
     1.4 +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +/**
    1.20 + @file
    1.21 + @publishedPartner
    1.22 + @released
    1.23 +*/
    1.24 +
    1.25 +#ifndef __VIDEODRIVER_H__
    1.26 +#define __VIDEODRIVER_H__
    1.27 +
    1.28 +#include <e32cmn.h>
    1.29 +
    1.30 +struct SRectOpInfo
    1.31 +	{
    1.32 +	TInt	iX;
    1.33 +	TInt	iY;
    1.34 +	TInt	iWidth;
    1.35 +	TInt	iHeight;
    1.36 +	TInt	iSrcX;
    1.37 +	TInt	iSrcY;
    1.38 +	TUint32	iColor;
    1.39 +	};
    1.40 +
    1.41 +
    1.42 +/**
    1.43 +Encapsulates information about the screen display mode.
    1.44 +
    1.45 +An object of this type is passed, via a TPckgBuf, to the HAL handler
    1.46 +that deals with the HAL group,function-id pair:
    1.47 +- EHalGroupDisplay, EDisplayHalCurrentModeInfo;
    1.48 +- EHalGroupDisplay, EDisplayHalSpecifiedModeInfo;
    1.49 +
    1.50 +@see EDisplayHalCurrentModeInfo
    1.51 +@see EDisplayHalSpecifiedModeInfo
    1.52 +@see TDisplayHalFunction
    1.53 +@see EHalGroupDisplay
    1.54 +@see TPckgBuf
    1.55 +*/
    1.56 +class TVideoInfoV01
    1.57 +	{
    1.58 +public:
    1.59 +	TSize	iSizeInPixels;				/**< The visible width/height of the display in pixels. */
    1.60 +	TSize	iSizeInTwips;				/**< The visible width/height of the display in twips. */
    1.61 +	TBool	iIsMono;					/**< True if display is monochrome; false otherwise. */
    1.62 +	TBool	iIsPalettized;				/**< True if display is palettized (in current display mode); false otherwise. */
    1.63 +	TInt	iBitsPerPixel;				/**< The number of bits in one pixel. */
    1.64 +	TInt	iVideoAddress;				/**< The virtual address of screen memory. */
    1.65 +	TInt	iOffsetToFirstPixel;		/**< Number of bytes from iVideoAddress for the first displayed pixel. */
    1.66 +	TInt	iOffsetBetweenLines;		/**< Number of bytes between start of one line and start of next. */
    1.67 +	TBool	iIsPixelOrderRGB;			/**< The orientation of sub pixels on the screen; True if RBG, False if BGR. */
    1.68 +	TBool	iIsPixelOrderLandscape;		/**< True if display pixels are landscape. */
    1.69 +	TInt	iDisplayMode;				/**< The current display mode. */
    1.70 +	};
    1.71 +
    1.72 +
    1.73 +/**
    1.74 +Package buffer for a TVideoInfoV01 object.
    1.75 +
    1.76 +@see TVideoInfoV01
    1.77 +*/
    1.78 +typedef TPckgBuf<TVideoInfoV01> TVideoInfoV01Buf;
    1.79 +
    1.80 +
    1.81 +#endif