From f97741ef79bc496cbf0581527e1f54b369d246be Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 10 八月 2017 14:54:06 +0800 Subject: [PATCH] bug fix --- VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h | 88 +++++++++++++++++++++----------------------- 1 files changed, 42 insertions(+), 46 deletions(-) diff --git a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h index 5cf671e..4979693 100644 --- a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h +++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h @@ -1,46 +1,42 @@ -// -// 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 +// +// Created by pansen on 2017/8/4. +// + +#ifndef RTSPNATIVECODEC_REMOTEMETHODSERVER_H +#define RTSPNATIVECODEC_REMOTEMETHODSERVER_H + +#include <string> +#include <capnp/ez-rpc.h> +#include "RemoteMethod.capnp.h" + +class RtspFaceDetectClient : public RtspFaceDetect::Client +{ +public: + RtspFaceDetectClient(); + + ~RtspFaceDetectClient() {}; + + ::kj::WaitScope &getWaitScope(); + +private: + capnp::EzRpcClient rpcClient; +}; + +void startRemoteServer(); + +RtspFaceDetectClient* getRtspFaceDetectClient(); + +class RtspFaceViewImpl final : public RtspFaceView::Server +{ +public: + 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: +}; + + +#endif //RTSPNATIVECODEC_REMOTEMETHODSERVER_H -- Gitblit v1.8.0