serviceWindowGenerationFromREC.h
980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#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 */