diff --git a/extrator/src/extratorFactory.cpp b/extrator/src/extratorFactory.cpp index 298ba4b..9bb8a2e 100644 --- a/extrator/src/extratorFactory.cpp +++ b/extrator/src/extratorFactory.cpp @@ -4,8 +4,10 @@ Extrator* ExtratorFactory::getExtrator(Extrator::ExtratorType extrator_type) { extrator = extrator_type; switch(extrator){ case Extrator::SRT: + PRINTL(util::_DEBUG, "ExtratorSRT selected!\n"); return new ExtratorSRT(); case Extrator::TXT: + PRINTL(util::_DEBUG, "ExtratorTXT selected!\n"); return new ExtratorTXT(); } } \ No newline at end of file diff --git a/extrator/src/extratorSRT.cpp b/extrator/src/extratorSRT.cpp index 9bfafcf..cc878bd 100644 --- a/extrator/src/extratorSRT.cpp +++ b/extrator/src/extratorSRT.cpp @@ -5,7 +5,7 @@ ExtratorSRT::ExtratorSRT(){ finish = false; seek_pos = 0; hasNextSub = true; - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "ExtratorSTR Done!\n"); } ExtratorSRT::~ExtratorSRT(){ diff --git a/extrator/src/extratorTXT.cpp b/extrator/src/extratorTXT.cpp index 87e1cfa..be00f7a 100644 --- a/extrator/src/extratorTXT.cpp +++ b/extrator/src/extratorTXT.cpp @@ -14,7 +14,7 @@ ExtratorTXT::ExtratorTXT(){ listeners = new list(); finish = false; - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "ExtratorTXT Done!\n"); } ExtratorTXT::~ExtratorTXT(){ @@ -84,8 +84,7 @@ void ExtratorTXT::Run(){ try{ line = bff_reader->readLine(); if (line.length() > 0){ - notifyListeners((unsigned char*) line.c_str()); - //cout << " . "; + notifyListeners((unsigned char*) line.c_str()); line_index++; } }catch (EOFException &ex){ diff --git a/mixer/src/Mixer.cpp b/mixer/src/Mixer.cpp index 887e323..b16c1a5 100644 --- a/mixer/src/Mixer.cpp +++ b/mixer/src/Mixer.cpp @@ -9,7 +9,7 @@ /* Construtores e destrutores...*/ Mixer::Mixer() { this->setNumThreads("1"); - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "Mixer Done!\n"); } Mixer::Mixer(string mainVideo, string secondaryVideo) { this->setMainVideo(mainVideo); diff --git a/recognize/src/recognize.cpp b/recognize/src/recognize.cpp index 62be8df..857a296 100644 --- a/recognize/src/recognize.cpp +++ b/recognize/src/recognize.cpp @@ -11,7 +11,7 @@ Recognize::Recognize(char* _pathVideo, char* _id) { ss << _id; ss >> id; confidenceRate=CONFIDENCE_RATE; - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "Recognize Done!\n"); } Recognize::Recognize(char* _pathVideo, char* _id, char* rate) { @@ -27,7 +27,7 @@ Recognize::Recognize(char* _pathVideo, char* _id, char* rate) { istringstream(rate) >> confidenceRate; if (confidenceRate == 0) confidenceRate=CONFIDENCE_RATE; - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "Recognize Done!\n"); } Recognize::Recognize(char* _pathVideo, int _inputType, char* _id) { @@ -38,7 +38,7 @@ Recognize::Recognize(char* _pathVideo, int _inputType, char* _id) { frequency = FREQUENCY_PATTERN; sizeBlocs = BLOCS_PATTERN; id = _id; - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "Recognize Done!\n"); } Recognize::~Recognize() { diff --git a/renderer/src/renderer.cpp b/renderer/src/renderer.cpp index 72258d1..8f3577d 100644 --- a/renderer/src/renderer.cpp +++ b/renderer/src/renderer.cpp @@ -9,7 +9,7 @@ Renderer::Renderer(char* videoPath, char* user_id) { core_socket = new StreamSocket(); listeners = new list(); serverInitialize(); - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "Renderer Done!\n"); } Renderer::~Renderer() { @@ -79,6 +79,7 @@ void Renderer::connectToUnity() { try{ static InetAddress* addr = InetAddress::createByName(HOST); while(!core_socket->isConnected()){ + PRINTL(util::_DEBUG, "Conectando ao Unity...\n"); core_socket->connect(addr, PORTNO); sleep(1); } @@ -108,6 +109,7 @@ void Renderer::addListener(ListenerRenderer* listener) { } void Renderer::notifyListeners() { + PRINTL(util::_DEBUG, "Renderização finalizada!\n"); for (list::iterator i = listeners->begin(); i != listeners->end(); i++) { (*i)->notifyEndOfRenderization(); } diff --git a/servico/src/serviceTester.cpp b/servico/src/serviceTester.cpp index 20b4729..a6bb94f 100644 --- a/servico/src/serviceTester.cpp +++ b/servico/src/serviceTester.cpp @@ -15,7 +15,7 @@ ServiceTester::ServiceTester(int _position, int _size, int _background) { msgErr = ""; finish = false; fail = false; - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "ServiceTester Done!\n"); } ServiceTester::~ServiceTester() { @@ -23,7 +23,7 @@ ServiceTester::~ServiceTester() { } void ServiceTester::checkServiceSRT() { - + PRINTL(util::_DEBUG, "Checando extração de legenda...\n"); setPathContents(); service_srt = new ServiceWindowGenerationFromSRT((char*)VID_FILE, (char*)SRT_FILE, 1, position, @@ -50,7 +50,7 @@ void ServiceTester::checkServiceSRT() { } void ServiceTester::checkServiceRec() { - + PRINTL(util::_DEBUG, "Checando reconhecimento...\n"); setPathContents(); service_rec = new ServiceWindowGenerationFromRec((char*)REC_FILE, 0, 0, @@ -75,7 +75,7 @@ void ServiceTester::checkServiceRec() { deleteFiles(); } void ServiceTester::checkServiceText() { - + PRINTL(util::_DEBUG, "Checando extração de texto...\n"); setPathContents(); service_text = new ServiceWindowGenerationFromText((char*)TXT_FILE, 1, background, diff --git a/servico/src/serviceWindowGenerationFromRec.cpp b/servico/src/serviceWindowGenerationFromRec.cpp index b34de1d..b94203e 100644 --- a/servico/src/serviceWindowGenerationFromRec.cpp +++ b/servico/src/serviceWindowGenerationFromRec.cpp @@ -17,7 +17,7 @@ ServiceWindowGenerationFromRec::ServiceWindowGenerationFromRec( tradutor = new TradutorPortGlosa(); running = true; finish = false; - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "Service Rec Done!\n"); } ServiceWindowGenerationFromRec::ServiceWindowGenerationFromRec( @@ -42,7 +42,7 @@ ServiceWindowGenerationFromRec::ServiceWindowGenerationFromRec( } running = true; finish = false; - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "Service Rec Done!\n"); } ServiceWindowGenerationFromRec::~ServiceWindowGenerationFromRec(){ diff --git a/servico/src/serviceWindowGenerationFromSRT.cpp b/servico/src/serviceWindowGenerationFromSRT.cpp index 3099eba..4e61ea2 100644 --- a/servico/src/serviceWindowGenerationFromSRT.cpp +++ b/servico/src/serviceWindowGenerationFromSRT.cpp @@ -23,7 +23,7 @@ ServiceWindowGenerationFromSRT::ServiceWindowGenerationFromSRT(char* pathVideo, } running = true; finish = false; - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "Service SRT Done!\n"); } ServiceWindowGenerationFromSRT::ServiceWindowGenerationFromSRT(char* pathSRT, int sublanguage, int transp, char* id, int mode, int serviceType) { @@ -44,7 +44,7 @@ ServiceWindowGenerationFromSRT::ServiceWindowGenerationFromSRT(char* pathSRT, in } running = true; finish = false; - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "Service SRT Done!\n"); } ServiceWindowGenerationFromSRT::~ServiceWindowGenerationFromSRT() { diff --git a/servico/src/serviceWindowGenerationFromText.cpp b/servico/src/serviceWindowGenerationFromText.cpp index ab20ec2..4eca40b 100644 --- a/servico/src/serviceWindowGenerationFromText.cpp +++ b/servico/src/serviceWindowGenerationFromText.cpp @@ -18,7 +18,7 @@ ServiceWindowGenerationFromText::ServiceWindowGenerationFromText(char* pathFile, } running = true; finish = false; - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "Service Text Done!\n"); } ServiceWindowGenerationFromText::~ServiceWindowGenerationFromText() { diff --git a/tradutor/src/tradutorPortGlosa.cpp b/tradutor/src/tradutorPortGlosa.cpp index f95a25f..97d5111 100644 --- a/tradutor/src/tradutorPortGlosa.cpp +++ b/tradutor/src/tradutorPortGlosa.cpp @@ -21,7 +21,7 @@ namespace Tradutor { // Inicia o mutex mutex = (pthread_mutex_t *) malloc( sizeof(pthread_mutex_t) ); pthread_mutex_init(mutex, NULL); - PRINTL(util::_DEBUG, "Done!\n"); + PRINTL(util::_DEBUG, "Translator Done!\n"); } -- libgit2 0.21.2