Guiliani  Version 2.5 revision 7293 (documentation build 13)
DAVEHDScreen.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef __DAVEHDSCREEN_H__
11#define __DAVEHDSCREEN_H__
12
13#include "GUIRect.h"
14
15extern "C"
16{
17#include "davehd_driver.h"
18#include "davehd_util.h"
19}
20
21#include "eC_Types.h"
22
23#include "DAVEHDBuffer.h"
24
28{
29public:
40 dhd_handle_t pkHandle,
41 const dhd_enum_t& eScreenForamt,
42 const eC_UInt& uiWidth,
43 const eC_UInt& uiHeight,
44 const eC_UInt& uiBytesPerPixel,
45 const eC_UInt& uiBufferCount,
46 void** ppBuffers);
47
49 virtual ~CDAVEHDScreen();
50
53 void Activate();
54
58 void Clear();
59
62 void Flip();
63
69 void Merge(
70 const CGUIRect& kInvalidatedRect,
71 const eC_Bool& bCopyContents = true);
72
76 void* GetRenderBuffer() const;
77
81 void* GetDisplayBuffer() const;
82
86 eC_UInt GetBufferCount() const;
87
91 eC_UInt GetWidth() const;
92
96 eC_UInt GetHeight() const;
97
100 eC_UInt GetPitch() const;
101
105 eC_UInt GetBitsPerPixel() const;
106
110 dhd_enum_t GetScreenFormat() const;
111
114 void Download() const;
115
118 void Upload();
119
120private:
121 CDAVEHDBuffer** m_pkBuffers;
122 dhd_enum_t m_eScreenFormat;
123 eC_UInt m_uiWidth;
124 eC_UInt m_uiHeight;
125 eC_UInt m_uiBytesPerPixel;
126 eC_UInt m_uiBufferCount;
127 eC_UInt m_uiRenderBuffer;
128 eC_UInt m_uiDisplayBuffer;
129};
130
131#endif
Definition: DAVEHDBuffer.h:24
Definition: DAVEHDScreen.h:28
void * GetDisplayBuffer() const
void Merge(const CGUIRect &kInvalidatedRect, const eC_Bool &bCopyContents=true)
eC_UInt GetHeight() const
CDAVEHDScreen(dhd_handle_t pkHandle, const dhd_enum_t &eScreenForamt, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBytesPerPixel, const eC_UInt &uiBufferCount, void **ppBuffers)
void Download() const
void * GetRenderBuffer() const
eC_UInt GetBufferCount() const
eC_UInt GetBitsPerPixel() const
eC_UInt GetPitch() const
eC_UInt GetWidth() const
dhd_enum_t GetScreenFormat() const
virtual ~CDAVEHDScreen()
Destructor.
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63