pans
2017-08-04 b4edb9b542a8399484b892cddb72ef79975f1a8e
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
38
39
40
41
42
43
44
45
46
//
// Created by pansen on 2017/8/4.
//
 
#ifndef RTSPNATIVECODEC_REMOTEMETHODSERVER_H
#define RTSPNATIVECODEC_REMOTEMETHODSERVER_H
 
#include <iostream>
#include <capnp/ez-rpc.h>
#include "RemoteMethod.proto.h"
#include "CameraWrapperServer.h"
 
const RtspFaceDetectClient& getRtspFaceDetectClient();
 
class RtspFaceDetectClient{
public:
    RtspFaceDetectClient();
    ~RtspFaceDetectClient();
 
    void fireFaceCountListener(int cameraIndex, int faceCount);
 
private:
    capnp::EzRpcClient rpcClient;
    RtspFaceDetect::Client client;
};
 
class RtspFaceViewImpl final : public RtspFaceView::Server {
public:
    RtspFaceViewImpl();
 
    ~RtspFaceViewImpl();
 
    virtual ::kj::Promise<void> getFaceList(GetFaceListContext context) override;
 
 
    virtual ::kj::Promise<void> getFaceImages(GetFaceImagesContext context) override;
 
    virtual ::kj::Promise<void> setFaceLabel(SetFaceLabelContext context) override ;
 
private:
    CameraWrapper cameraWrapper;
};
 
 
 
#endif //RTSPNATIVECODEC_REMOTEMETHODSERVER_H