From 7d39c063ea84b9b30dbe669ac4ae641a49506836 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 20 Jul 2006 17:53:17 +0000 Subject: Utilized the global info object. Utilized the global info object. Utilized the global info object. --- server/libfame_wrapper.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'server/libfame_wrapper.cc') 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 #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, -- cgit v1.2.3