fpga_hal.h
Go to the documentation of this file.
1 /*
2 * ECVL - European Computer Vision Library
3 * Version: 0.3.4
4 * copyright (c) 2021, Università degli Studi di Modena e Reggio Emilia (UNIMORE), AImageLab
5 * Authors:
6 * Costantino Grana (costantino.grana@unimore.it)
7 * Federico Bolelli (federico.bolelli@unimore.it)
8 * Michele Cancilla (michele.cancilla@unimore.it)
9 * Laura Canalini (laura.canalini@unimore.it)
10 * Stefano Allegretti (stefano.allegretti@unimore.it)
11 * All rights reserved.
12 */
13 
14 #ifndef ECVL_FPGA_HAL_H_
15 #define ECVL_FPGA_HAL_H_
16 
17 #include "ecvl/core/hal.h"
18 #include "ecvl/core/image.h"
19 
20 namespace ecvl
21 {
22 class FpgaHal : public HardwareAbstractionLayer
23 {
24 public:
25  uint8_t* MemAllocate(size_t nbytes) override
26  {
27  ECVL_ERROR_NOT_IMPLEMENTED_WHAT("FpgaHal::MemAllocate")
28  }
29  void MemDeallocate(uint8_t* data) override
30  {
31  ECVL_ERROR_NOT_IMPLEMENTED_WHAT("FpgaHal::MemDeallocate")
32  }
33  uint8_t* MemCopy(uint8_t* dst, const uint8_t* src, size_t nbytes) override
34  {
35  ECVL_ERROR_NOT_IMPLEMENTED_WHAT("FpgaHal::MemCopy")
36  }
37 
38  static FpgaHal* GetInstance();
39 
40  void FromCpu(Image& src) override
41  {
42  ECVL_ERROR_NOT_IMPLEMENTED_WHAT("FpgaHal::FromCpu")
43  }
44  void ToCpu(Image& src) override
45  {
46  ECVL_ERROR_NOT_IMPLEMENTED_WHAT("FpgaHal::ToCpu")
47  }
48 };
49 } // namespace ecvl
50 #endif // ECVL_FPGA_HAL_H_
Image class.
Definition: image.h:72
#define ECVL_ERROR_NOT_IMPLEMENTED_WHAT(what)
uint8_t * MemCopy(uint8_t *dst, const uint8_t *src, size_t nbytes) override
Definition: fpga_hal.h:33
void FromCpu(Image &src) override
Definition: fpga_hal.h:40
static FpgaHal * GetInstance()
uint8_t * MemAllocate(size_t nbytes) override
Definition: fpga_hal.h:25
void MemDeallocate(uint8_t *data) override
Definition: fpga_hal.h:29
void ToCpu(Image &src) override
Definition: fpga_hal.h:44