| | |
| | | #ifndef RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
|
| | | #define RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
|
| | |
|
| | | #include <iostream>
|
| | | #include <capnp/message.h>
|
| | | #include <capnp/serialize-packed.h>
|
| | | #include <capnp/ez-rpc.h>
|
| | | #include "RemoteMethod.proto.h"
|
| | | #include "CameraWrapperServer.h"
|
| | | #include "RemoteMethod.capnp.h"
|
| | |
|
| | | const RtspFaceView::Client getRtspFaceViewClient();
|
| | |
|
| | | class RtspFaceViewClient{
|
| | | //
|
| | | class RtspFaceViewClient
|
| | | {
|
| | | public:
|
| | | RtspFaceViewClient();
|
| | | ~RtspFaceViewClient();
|
| | | RtspFaceViewClient();
|
| | | RtspFaceView::Client& getClient();
|
| | | ~RtspFaceViewClient() {};
|
| | |
|
| | | RtspFaceView::GetFaceListResults::Reader getFaceList(int cameraIndex);
|
| | | RtspFaceView::GetFaceListResults::Reader getFaceImages(int cameraIndex);
|
| | | void setFaceLable(int cameraIndex,int trackId,std::string label);
|
| | | ::kj::WaitScope &getWaitScope();
|
| | |
|
| | | capnp::EzRpcClient* getEzRpcClient();
|
| | | private:
|
| | | capnp::EzRpcClient rpcClient;
|
| | | RtspFaceDetect::Client client;
|
| | | RtspFaceView::Client *client;
|
| | | capnp::EzRpcClient* rpcClient;
|
| | | };
|
| | |
|
| | | class RtspFaceDetectImpl final : public RtspFaceDetect::Server{
|
| | | public:
|
| | | RtspFaceDetectImpl();
|
| | | ~RtspFaceDetectImpl();
|
| | | void startRemoteServer();
|
| | |
|
| | | virtual ::kj::Promise<void> fireFaceCountListener(FireFaceCountListenerContext context) override ;
|
| | | RtspFaceViewClient* getRtspFaceViewClient();
|
| | |
|
| | | class RtspFaceDetectImpl final : public RtspFaceDetect::Server
|
| | | {
|
| | | public:
|
| | | virtual ::kj::Promise<void> fireFaceCountListener(FireFaceCountListenerContext context) override;
|
| | | };
|
| | |
|
| | | #endif //RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
|