serviceWindowGenerationFromREC.h 980 Bytes
#ifndef SERVICEWINDOWGENERATIONFROMREC_H
#define	SERVICEWINDOWGENERATIONFROMREC_H

#include <stdint.h>
#include <stdio.h>
#include "jthread.h"
#include "serviceWindowGeneration.h"
#include "recognize.h"

using namespace std;
using namespace jthread;

class ServiceWindowGenerationFromREC : public ServiceWindowGeneration, public RecognizeListener, public Thread {

private:
    Recognize *rec;
 
public:

    ServiceWindowGenerationFromREC(
		char* path_video, int sublanguage, int position, int size, int transparency, int _serviceType);

     ServiceWindowGenerationFromREC(char* path_video, char* _video_path_file, int transparency, int _serviceType);

    ~ServiceWindowGenerationFromREC();
    void initialize();
    
	virtual void notifyTextRecognized(unsigned char* text, int64_t pts);

    void notifyTranslator(unsigned char *text);
    void notifySynchWithoutTranslator(unsigned char *text, int64_t pts);

	void Run();

};

#endif	/* SERVICEWINDOWGENERATIONFROMREC_H */