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