Debian Codegraph @

cvd_src/videosource_videofilebuffer.cc

raw symbols SCIP
1 #include <cvd/videofilebuffer.h>
2 #include <cvd/videosource.h>
3
4 namespace CVD
5 {
6
7 template <>
8 VideoBuffer<byte>* makeVideoFileBuffer(const std::string& file, VideoBufferFlags::OnEndOfBuffer eob, bool verbose, const std::string& fn, const std::map<std::string, std::string>& opts)
9 {
10 VideoFileBuffer<byte>* vb = new VideoFileBuffer<byte>(file, fn, verbose, opts);
11 vb->on_end_of_buffer(eob);
12 return vb;
13 }
14
15 template <>
16 VideoBuffer<Rgb<byte>>* makeVideoFileBuffer(const std::string& file, VideoBufferFlags::OnEndOfBuffer eob, bool verbose, const std::string& fn, const std::map<std::string, std::string>& opts)
17 {
18 VideoFileBuffer<Rgb<byte>>* vb = new VideoFileBuffer<Rgb<byte>>(file, fn, verbose, opts);
19 vb->on_end_of_buffer(eob);
20 return vb;
21 }
22 }