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