1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef __VMEM_LOCAL_H_INCLUDED__
17#define __VMEM_LOCAL_H_INCLUDED__
18
19#include "type_support.h"
20#include "vmem_global.h"
21
22typedef u16 t_vmem_elem;
23
24#define VMEM_ARRAY(x, s) t_vmem_elem x[s / ISP_NWAY][ISP_NWAY]
25
26void isp_vmem_load(
27 const isp_ID_t ID,
28 const t_vmem_elem *from,
29 t_vmem_elem *to,
30 unsigned int elems);
31
32void isp_vmem_store(
33 const isp_ID_t ID,
34 t_vmem_elem *to,
35 const t_vmem_elem *from,
36 unsigned int elems);
37
38void isp_vmem_2d_load(
39 const isp_ID_t ID,
40 const t_vmem_elem *from,
41 t_vmem_elem *to,
42 unsigned int height,
43 unsigned int width,
44 unsigned int stride_to,
45
46 unsigned stride_from );
47
48void isp_vmem_2d_store(
49 const isp_ID_t ID,
50 t_vmem_elem *to,
51 const t_vmem_elem *from,
52 unsigned int height,
53 unsigned int width,
54 unsigned int stride_to,
55
56 unsigned stride_from );
57
58#endif
59