summaryrefslogtreecommitdiff
path: root/lib/libdv_wrapper.cc
diff options
context:
space:
mode:
authordeva <deva>2006-07-20 15:11:45 +0000
committerdeva <deva>2006-07-20 15:11:45 +0000
commite1af275ed3fc5a3ab2e50be325e44bd2de705bea (patch)
tree304d59a6c336f337c41c86725880364901553e54 /lib/libdv_wrapper.cc
parent7b997e9a988e1ef6fe41680dc90be545a9ed1710 (diff)
Added the transcoder, formalized the video and audio formats in format.h
Diffstat (limited to 'lib/libdv_wrapper.cc')
-rw-r--r--lib/libdv_wrapper.cc5
1 files changed, 3 insertions, 2 deletions
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;