diff options
author | deva <deva> | 2006-07-20 17:53:17 +0000 |
---|---|---|
committer | deva <deva> | 2006-07-20 17:53:17 +0000 |
commit | 7d39c063ea84b9b30dbe669ac4ae641a49506836 (patch) | |
tree | ef1ead10d1736e9ad7ffe139872c86fd2ee00901 /server/libfame_wrapper.cc | |
parent | c8df40b62cf30029a4acd1a57c8c54add54dda9b (diff) |
Utilized the global info object.
Utilized the global info object.
Utilized the global info object.
Diffstat (limited to 'server/libfame_wrapper.cc')
-rw-r--r-- | server/libfame_wrapper.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/libfame_wrapper.cc b/server/libfame_wrapper.cc index e1d3660..c5df05c 100644 --- a/server/libfame_wrapper.cc +++ b/server/libfame_wrapper.cc @@ -30,12 +30,12 @@ #include <errno.h> #include "miav_config.h" +#include "info.h" + #include "frame.h" -LibFAMEWrapper::LibFAMEWrapper(Info *i) +LibFAMEWrapper::LibFAMEWrapper() { - info = i; - // FIXME: Hmmm... should this be detected somewhere?! int w = 720; int h = 576; @@ -65,7 +65,7 @@ LibFAMEWrapper::LibFAMEWrapper(Info *i) // can then be used for subsequent library calls.) fame_context = fame_open(); if(!fame_context) { - info->error("Unable to open FAME context, due to the following error: %s", strerror(errno)); + MIaV::info->error("Unable to open FAME context, due to the following error: %s", strerror(errno)); return; } @@ -135,7 +135,7 @@ LibFAMEWrapper::LibFAMEWrapper(Info *i) if(strcmp(MIaV::config->readString("encoding_codec")->c_str(), "mpeg4") == 0) { - info->info("Using mpeg4 compression."); + MIaV::info->info("Using mpeg4 compression."); fame_object_t *object; object = fame_get_object(fame_context, "profile/mpeg4/simple"); @@ -143,7 +143,7 @@ LibFAMEWrapper::LibFAMEWrapper(Info *i) } else if(strcmp(MIaV::config->readString("encoding_codec")->c_str(), "mpeg1") == 0) { - info->info("Using mpeg1 compression."); + MIaV::info->info("Using mpeg1 compression."); fame_object_t *object; object = fame_get_object(fame_context, "profile/mpeg1"); @@ -151,7 +151,7 @@ LibFAMEWrapper::LibFAMEWrapper(Info *i) } else if(strcmp(MIaV::config->readString("encoding_codec")->c_str(), "mpeg1") == 0) { } else { - info->info("Using default (mpeg1) compression."); + MIaV::info->info("Using default (mpeg1) compression."); } fame_init(fame_context, &fame_par, fame_buffer, FAME_BUFFER_SIZE); @@ -246,7 +246,7 @@ Frame *LibFAMEWrapper::encode(Frame *dvframe) // fame_end_frame(fame_context, &stats); /* - info->info("frame_number: %d, coding: %c, target_bits: %d, actual_bits: %d, spatial_activity: %d, quant_scale: %f", + MIaV::info->info("frame_number: %d, coding: %c, target_bits: %d, actual_bits: %d, spatial_activity: %d, quant_scale: %f", stats.frame_number, stats.coding, stats.target_bits, |