Guiliani  Version 2.6 revision 7293 (documentation build 12)
DAVEHDBuffer.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 __DAVEHD_BUFFER_H__
11#define __DAVEHD_BUFFER_H__
12
13extern "C"
14{
15#include "davehd_driver.h"
16#include "davehd_util.h"
17}
18
19#include "eC_Types.h"
20
24{
25public:
34 dhd_handle_t pkHandle,
35 const dhd_enum_t& eFormat,
36 const eC_UInt& uiWidth,
37 const eC_UInt& uiHeight,
38 const eC_UInt& uiBytesPerPixel);
39
42 virtual ~CDAVEHDBuffer();
43
46 void Activate();
47
51 void SetDestBuffer(eC_UByte* pkBuffer);
52
56 eC_UByte* GetDestBuffer() const;
57
61 void FillBuffer(const eC_UInt& uiColor);
62
66 eC_UInt GetSize() const;
67
71 eC_Bool Download();
72
76 eC_Bool Upload();
77
81 dhd_buffer_t* GetBuffer();
82
83private:
84 dhd_handle_t m_pkHandle;
85 dhd_enum_t m_eScreenFormat;
86 eC_UInt m_uiWidth;
87 eC_UInt m_uiHeight;
88 eC_UInt m_uiBytesPerPixel;
89 dhd_buffer_t m_pkBuffer;
90 eC_UByte* m_pkDestBuffer;
91 eC_Bool m_bAllocated;
92 eC_Bool m_bExternalDestBuffer;
93};
94
95#endif
Definition: DAVEHDBuffer.h:24
CDAVEHDBuffer(dhd_handle_t pkHandle, const dhd_enum_t &eFormat, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBytesPerPixel)
eC_Bool Upload()
eC_Bool Download()
eC_UByte * GetDestBuffer() const
eC_UInt GetSize() const
dhd_buffer_t * GetBuffer()
virtual ~CDAVEHDBuffer()
void SetDestBuffer(eC_UByte *pkBuffer)
void FillBuffer(const eC_UInt &uiColor)