| | |
| | | #ifndef RTSPNATIVECODEC_REMOTEMETHODSERVER_H |
| | | #define RTSPNATIVECODEC_REMOTEMETHODSERVER_H |
| | | |
| | | #include <string> |
| | | #include <iostream>
|
| | | #include <capnp/ez-rpc.h> |
| | | #include "RemoteMethod.proto.h" |
| | | #include "CameraWrapperServer.h"
|
| | | |
| | | class RtspFaceDetectClient :public RtspFaceDetect::Client{ |
| | | const RtspFaceDetectClient& getRtspFaceDetectClient();
|
| | |
|
| | | class RtspFaceDetectClient{
|
| | | public: |
| | | RtspFaceDetectClient(); |
| | | ~RtspFaceDetectClient(){}; |
| | | ::kj::WaitScope& getWaitScope(); |
| | | ~RtspFaceDetectClient();
|
| | |
|
| | | void fireFaceCountListener(int cameraIndex, int faceCount);
|
| | |
|
| | | private: |
| | | capnp::EzRpcClient rpcClient; |
| | | RtspFaceDetect::Client client;
|
| | | }; |
| | | |
| | | void startRemoteServer(); |
| | | RtspFaceDetectClient& getRtspFaceDetectClient(); |
| | | |
| | | 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;
|
| | | }; |
| | | |
| | | |