core/vidl/vidl_ffmpeg_ostream_stub.txx
Go to the documentation of this file.
00001 // This is core/vidl/vidl_ffmpeg_ostream_stub.txx
00002 #ifndef vidl_ffmpeg_ostream_stub_txx_
00003 #define vidl_ffmpeg_ostream_stub_txx_
00004 #include "vidl_ffmpeg_ostream.h"
00005 //:
00006 // \file
00007 // \brief A stub implementation when ffmpeg is not available.
00008 //
00009 // \author Amitha Perera
00010 // \date 26 Dec 2007
00011 
00012 #include <vcl_iostream.h>
00013 
00014 struct vidl_ffmpeg_ostream::pimpl
00015 {
00016 };
00017 
00018 
00019 vidl_ffmpeg_ostream
00020 ::vidl_ffmpeg_ostream()
00021   : os_( 0 )
00022 {
00023 }
00024 
00025 vidl_ffmpeg_ostream
00026 ::vidl_ffmpeg_ostream(const vcl_string&,
00027                       const vidl_ffmpeg_ostream_params&)
00028   : os_( 0 )
00029 {
00030   vcl_cerr << "vidl_ffmpeg_ostream: warning: ffmpeg support is not compiled in\n";
00031 }
00032 
00033 
00034 vidl_ffmpeg_ostream
00035 ::~vidl_ffmpeg_ostream()
00036 {
00037 }
00038 
00039 
00040 bool
00041 vidl_ffmpeg_ostream
00042 ::open()
00043 {
00044   vcl_cerr << "vidl_ffmpeg_ostream: warning: ffmpeg support is not compiled in\n";
00045   return false;
00046 }
00047 
00048 
00049 void
00050 vidl_ffmpeg_ostream
00051 ::close()
00052 {
00053 }
00054 
00055 
00056 bool
00057 vidl_ffmpeg_ostream
00058 ::is_open() const
00059 {
00060   return false;
00061 }
00062 
00063 
00064 bool
00065 vidl_ffmpeg_ostream
00066 ::write_frame(const vidl_frame_sptr& )
00067 {
00068   return false;
00069 }
00070 
00071 #endif // vidl_ffmpeg_ostream_stub_txx_