From e1af275ed3fc5a3ab2e50be325e44bd2de705bea Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 20 Jul 2006 15:11:45 +0000 Subject: Added the transcoder, formalized the video and audio formats in format.h --- lib/libdv_wrapper.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libdv_wrapper.cc') diff --git a/lib/libdv_wrapper.cc b/lib/libdv_wrapper.cc index 11c641d..a056419 100644 --- a/lib/libdv_wrapper.cc +++ b/lib/libdv_wrapper.cc @@ -26,6 +26,8 @@ */ #include "libdv_wrapper.h" +#include "format.h" + //#define COLORSPACE_YV12 LibDVWrapper::LibDVWrapper(DV::Quality quality, @@ -94,7 +96,7 @@ Frame *LibDVWrapper::decode(Frame *input, DV::ColorSpace c) int size = 0; char* buf = NULL; - int type = VF_NONE; + video_format_t type = VF_NONE; DV::ColorSpace colorspace = c; switch(colorspace) { case DV::YUV: @@ -109,7 +111,6 @@ Frame *LibDVWrapper::decode(Frame *input, DV::ColorSpace c) pitches[1] = width / 2; pitches[2] = width / 2; #else - printf("!\n"); size = width*height*2; buf = new char[size]; type = VF_YUV422; -- cgit v1.2.3