Skip to content

Commit

Permalink
Fix lolzy bug in yuv422->RGB conversion.
Browse files Browse the repository at this point in the history
I have a strong suspicion it was never tested!
  • Loading branch information
Edward Rosten committed Jun 25, 2015
1 parent c7652fa commit 631b93e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cvd_src/noarch/yuv422.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "cvd/colourspaces.h"
#include "cvd/image_convert.h"


#include <iostream>
namespace CVD {

namespace{
Expand All @@ -14,7 +16,7 @@ namespace CVD {
else if(i>255)
return 255;
else
return 0;
return i;
}

struct yuv422_ind{
Expand Down Expand Up @@ -84,6 +86,7 @@ namespace CVD {

template<> void convert_image(const BasicImage<yuv422>& from, BasicImage<Rgb<byte> >& to)
{
std::cout << "lawlz\n";
convert_422<yuv422, yuv422_ind>(from, to);
}

Expand Down

0 comments on commit 631b93e

Please sign in to comment.