Debian Codegraph @

cvd_src/videosource_dvbuffer.cc

raw symbols SCIP
1 #include <cvd/Linux/dvbuffer3.h>
2 #include <cvd/videosource.h>
3
4 namespace CVD
5 {
6
7 template <>
8 VideoBuffer<byte>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
9 {
10 return new DVBuffer3<byte>(cam, size, fps, offset, v, r, m);
11 }
12
13 template <>
14 VideoBuffer<unsigned short>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
15 {
16 return new DVBuffer3<unsigned short>(cam, size, fps, offset, v, r, m);
17 }
18
19 template <>
20 VideoBuffer<yuv411>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
21 {
22 return new DVBuffer3<yuv411>(cam, size, fps, offset, v, r, m);
23 }
24
25 template <>
26 VideoBuffer<yuv422>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
27 {
28 return new DVBuffer3<yuv422>(cam, size, fps, offset, v, r, m);
29 }
30
31 template <>
32 VideoBuffer<bayer_grbg>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
33 {
34 return new DVBuffer3<bayer_grbg>(cam, size, fps, offset, v, r, m);
35 }
36
37 template <>
38 VideoBuffer<bayer_gbrg>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
39 {
40 return new DVBuffer3<bayer_gbrg>(cam, size, fps, offset, v, r, m);
41 }
42
43 template <>
44 VideoBuffer<bayer_rggb>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
45 {
46 return new DVBuffer3<bayer_rggb>(cam, size, fps, offset, v, r, m);
47 }
48
49 template <>
50 VideoBuffer<bayer_bggr>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
51 {
52 return new DVBuffer3<bayer_bggr>(cam, size, fps, offset, v, r, m);
53 }
54
55 template <>
56 VideoBuffer<bayer_grbg16be>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
57 {
58 return new DVBuffer3<bayer_grbg16be>(cam, size, fps, offset, v, r, m);
59 }
60
61 template <>
62 VideoBuffer<bayer_gbrg16be>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
63 {
64 return new DVBuffer3<bayer_gbrg16be>(cam, size, fps, offset, v, r, m);
65 }
66
67 template <>
68 VideoBuffer<bayer_rggb16be>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
69 {
70 return new DVBuffer3<bayer_rggb16be>(cam, size, fps, offset, v, r, m);
71 }
72
73 template <>
74 VideoBuffer<bayer_bggr16be>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
75 {
76 return new DVBuffer3<bayer_bggr16be>(cam, size, fps, offset, v, r, m);
77 }
78
79 template <>
80 VideoBuffer<Rgb<byte>>* makeDVBuffer2(int cam, ImageRef size, float fps, ImageRef offset, bool v, bool r, int m)
81 {
82 return new DVBuffer3<Rgb<byte>>(cam, size, fps, offset, v, r, m);
83 }
84
85 }