CtBuffer.h 653 Bytes
Newer Older
papillon's avatar
 
papillon committed
1
2
3
4
#ifndef CTBUFFER_H
#define CTBUFFER_H

#include "Constants.h"
papillon's avatar
   
papillon committed
5
6
#include "HwInterface.h"
#include "HwCap.h"
papillon's avatar
 
papillon committed
7
8
9
10
11
12

namespace lima {

class CtBuffer {

    public:
13
        enum Mode {Linear,Circular};
papillon's avatar
 
papillon committed
14
15
16
17
18
19
	struct Parameters {
		Mode	mode;
		long	nbBuffers;
		short	maxMemory;
	};

papillon's avatar
   
papillon committed
20
	CtBuffer(HwInterface *hw);
papillon's avatar
 
papillon committed
21
22
23
24
25
26
27
28
29
30
31
32
	~CtBuffer();

	void setMode(BufferMode mode);
	void getMode(BufferMode& mode) const;

	void setNumber(long nb_buffers);
	void getNumber(long& nb_buffers) const;

	void setMaxMemory(short max_memory);
	void getMaxMemory(short& max_memory) const;

    private:
papillon's avatar
   
papillon committed
33
34
	HwBufferCtrlObj	*m_hw_buffer;
	Parameters	m_pars;
papillon's avatar
 
papillon committed
35

seb's avatar
seb committed
36
};
papillon's avatar
 
papillon committed
37
38
39
} // namespace lima

#endif // CTBUFFER_H