00001 #include <vcl_cassert.h> 00002 00003 #include "oxp_vidl_mpeg_codec.h" 00004 00005 vidl_vil1_codec_sptr 00006 oxp_vidl_mpeg_codec::load(vcl_string const& fname, char mode) 00007 { 00008 if (!p.load(fname, mode)) 00009 return 0; 00010 00011 // random vidl stuff 00012 set_format('L'); 00013 set_image_class('C'); 00014 set_name(fname); 00015 set_description(fname); 00016 00017 set_bits_pixel(24); 00018 set_size_z(1); 00019 set_size_t(1); 00020 set_height(p.get_height()); 00021 set_width(p.get_width()); 00022 set_number_frames(299999); 00023 00024 return this; 00025 } 00026 00027 bool 00028 oxp_vidl_mpeg_codec::save(vidl_vil1_movie* movie, vcl_string const& fname) 00029 { 00030 assert (false); 00031 return false; 00032 }
1.4.4