Skip to content

Commit

Permalink
Reinstate 420p fully (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Rosten committed May 26, 2016
1 parent 75adb3d commit c3ae489
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions cvd/videosource.h
Expand Up @@ -254,6 +254,7 @@ namespace CVD {
template <> VideoBuffer<bayer_grbg>* makeV4LBuffer(const std::string& dev, const ImageRef& size, int input, bool interlaced, bool verbose);
template <> VideoBuffer<yuv422>* makeV4LBuffer(const std::string& dev, const ImageRef& size, int input, bool interlaced, bool verbose);
template <> VideoBuffer<vuy422>* makeV4LBuffer(const std::string& dev, const ImageRef& size, int input, bool interlaced, bool verbose);
template <> VideoBuffer<yuv420p>* makeV4LBuffer(const std::string& dev, const ImageRef& size, int input, bool interlaced, bool verbose);
template <> VideoBuffer<Rgb<byte> >* makeV4LBuffer(const std::string& dev, const ImageRef& size, int input, bool interlaced, bool verbose);
template <> VideoBuffer<Rgb8>* makeV4LBuffer(const std::string& dev, const ImageRef& size, int input, bool interlaced, bool verbose);

Expand Down
6 changes: 6 additions & 0 deletions cvd_src/Linux/videosource_nov4lbuffer.cc
Expand Up @@ -32,4 +32,10 @@ namespace CVD{
throw VideoSourceException("V4LBuffer is not compiled in to libcvd.");
}


template <> VideoBuffer<yuv420p>* makeV4LBuffer(const std::string&, const ImageRef&, int, bool, bool)
{
throw VideoSourceException("V4LBuffer is not compiled in to libcvd.");
}

}
4 changes: 4 additions & 0 deletions cvd_src/Linux/videosource_v4lbuffer.cc
Expand Up @@ -34,4 +34,8 @@ namespace CVD{
return new V4LBuffer<Rgb8>(dev, size, input, interlaced, 0, verbose);
}

template <> VideoBuffer<yuv420p>* makeV4LBuffer(const std::string& dev, const ImageRef& size, int input, bool interlaced, bool verbose)
{
return new V4LBuffer<yuv420p>(dev, size, input, interlaced, 0, verbose);
}
}

0 comments on commit c3ae489

Please sign in to comment.