[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libcvd-members] convert_image mess
From: |
Georg Klein |
Subject: |
[libcvd-members] convert_image mess |
Date: |
Sun, 11 Jan 2009 15:50:14 +0000 (GMT) |
Hi,
I'm absolutely lost in what the deal is with
convert_image vs ConvertImage vs convert, and also there seem to be
different version of convert_image for SubImage and BasicImage?
Whatever the plan, ColourspaceBuffer<Rgb<byte>, yuv411> no longer seems to
work - it's not getting the conversions from colourspace_convert.h any
more. It wants pixel traits for yuv411 which aren't defined.
-----------
#include <cvd/colourspacebuffer.h>
#include <cvd/Linux/dvbuffer3.h>
using namespace CVD;
int main()
{
DVBuffer3<yuv411> foo(0);
ColourspaceBuffer<Rgb<byte>, yuv411> bar(foo);
}
-----------
include/cvd/internal/pixel_traits.h: In instantiation of const bool
CVD::Pixel::traits<CVD::yuv411, 0>::integral:
include/cvd/internal/scalar_convert.h:183: instantiated from To
CVD::Pixel::scalar_convert(const D&) [with To = unsigned char, From =
CVD::yuv411, D = CVD::yuv411]
include/cvd/internal/convert_pixel_types.h:177: instantiated from static
void CVD::Pixel::Replicate<Scalar, Vec>::convert(const Scalar&, Vec&)
[with Scalar = CVD::yuv411, Vec = CVD::Rgb<unsigned char>]
include/cvd/internal/convert_pixel_types.h:254: instantiated from static
void CVD::Pixel::ConvertPixels<From, To, Conv, both_pod>::convert(const
From*, To*, size_t) [with From = CVD::yuv411, To = CVD::Rgb<unsigned
char>, Conv = CVD::Pixel::Replicate<CVD::yuv411, CVD::Rgb<unsigned char>
, bool both_pod = true]
include/cvd/image_convert.h:37: instantiated from static void
CVD::ConvertImage<From, To, Conv, both_pod>::convert(const
CVD::SubImage<T>&, CVD::SubImage<To>&) [with From = CVD::yuv411, To =
CVD::Rgb<unsigned char>, Conv = CVD::Pixel::Replicate<CVD::yuv411,
CVD::Rgb<unsigned char> >, int both_pod = 1]
include/cvd/image_convert.h:70: instantiated from void
CVD::convert_image(const CVD::SubImage<T>&, CVD::SubImage<To>&) [with C =
CVD::yuv411, D = CVD::Rgb<unsigned char>]
include/cvd/image_convert.h:108: instantiated from CVD::Image<T>
CVD::convert_image(const CVD::SubImage<To>&) [with D = CVD::Rgb<unsigned
char>, C = CVD::yuv411]
include/cvd/colourspacebuffer.h:86: instantiated from
CVD::ColourspaceFrame<T>* CVD::ColourspaceBuffer<T, From>::get_frame()
[with T = CVD::Rgb<unsigned char>, From = CVD::yuv411]
foo.cc:9: instantiated from here
include/cvd/internal/pixel_traits.h:44: error:
Error_trait_not_defined_for_this_class is not a member of
CVD::Pixel::traits_error<CVD::yuv411>
include/cvd/internal/scalar_convert.h: In function To
CVD::Pixel::scalar_convert(const D&) [with To = unsigned char, From =
CVD::yuv411, D = CVD::yuv411]:
include/cvd/internal/convert_pixel_types.h:177: instantiated from static
void CVD::Pixel::Replicate<Scalar, Vec>::convert(const Scalar&, Vec&)
[with Scalar = CVD::yuv411, Vec = CVD::Rgb<unsigned char>]
include/cvd/internal/convert_pixel_types.h:254: instantiated from static
void CVD::Pixel::ConvertPixels<From, To, Conv, both_pod>::convert(const
From*, To*, size_t) [with From = CVD::yuv411, To = CVD::Rgb<unsigned
char>, Conv = CVD::Pixel::Replicate<CVD::yuv411, CVD::Rgb<unsigned char>
, bool both_pod = true]
include/cvd/image_convert.h:37: instantiated from static void
CVD::ConvertImage<From, To, Conv, both_pod>::convert(const
CVD::SubImage<T>&, CVD::SubImage<To>&) [with From = CVD::yuv411, To =
CVD::Rgb<unsigned char>, Conv = CVD::Pixel::Replicate<CVD::yuv411,
CVD::Rgb<unsigned char> >, int both_pod = 1]
include/cvd/image_convert.h:70: instantiated from void
CVD::convert_image(const CVD::SubImage<T>&, CVD::SubImage<To>&) [with C =
CVD::yuv411, D = CVD::Rgb<unsigned char>]
include/cvd/image_convert.h:108: instantiated from CVD::Image<T>
CVD::convert_image(const CVD::SubImage<To>&) [with D = CVD::Rgb<unsigned
char>, C = CVD::yuv411]
include/cvd/colourspacebuffer.h:86: instantiated from
CVD::ColourspaceFrame<T>* CVD::ColourspaceBuffer<T, From>::get_frame()
[with T = CVD::Rgb<unsigned char>, From = CVD::yuv411]
foo.cc:9: instantiated from here
include/cvd/internal/scalar_convert.h:183: error:
(bool)CVD::Pixel::traits<CVD::yuv411, 0>::integral is not a valid template
argument for type bool because it is a non-constant expression
include/cvd/internal/convert_pixel_types.h:177: instantiated from static
void CVD::Pixel::Replicate<Scalar, Vec>::convert(const Scalar&, Vec&)
[with Scalar = CVD::yuv411, Vec = CVD::Rgb<unsigned char>]
include/cvd/internal/convert_pixel_types.h:254: instantiated from static
void CVD::Pixel::ConvertPixels<From, To, Conv, both_pod>::convert(const
From*, To*, size_t) [with From = CVD::yuv411, To = CVD::Rgb<unsigned
char>, Conv = CVD::Pixel::Replicate<CVD::yuv411, CVD::Rgb<unsigned char>
, bool both_pod = true]
include/cvd/image_convert.h:37: instantiated from static void
CVD::ConvertImage<From, To, Conv, both_pod>::convert(const
CVD::SubImage<T>&, CVD::SubImage<To>&) [with From = CVD::yuv411, To =
CVD::Rgb<unsigned char>, Conv = CVD::Pixel::Replicate<CVD::yuv411,
CVD::Rgb<unsigned char> >, int both_pod = 1]
include/cvd/image_convert.h:70: instantiated from void
CVD::convert_image(const CVD::SubImage<T>&, CVD::SubImage<To>&) [with C =
CVD::yuv411, D = CVD::Rgb<unsigned char>]
include/cvd/image_convert.h:108: instantiated from CVD::Image<T>
CVD::convert_image(const CVD::SubImage<To>&) [with D = CVD::Rgb<unsigned
char>, C = CVD::yuv411]
include/cvd/colourspacebuffer.h:86: instantiated from
CVD::ColourspaceFrame<T>* CVD::ColourspaceBuffer<T, From>::get_frame()
[with T = CVD::Rgb<unsigned char>, From = CVD::yuv411]
foo.cc:9: instantiated from here
include/cvd/internal/scalar_convert.h:183: error:
CVD::Pixel::traits<CVD::yuv411, 0>::integral is not a valid template
argument for type bool because it is a non-constant expression
- [libcvd-members] convert_image mess,
Georg Klein <=