From 9e5babf9db52e64bdae60137be7696e56241fca6 Mon Sep 17 00:00:00 2001 From: xingzilong <xingzilong@454eff88-639b-444f-9e54-f578c98de674> Date: 星期五, 18 八月 2017 18:12:17 +0800 Subject: [PATCH] H264 NALU解析 并在RTSPServer判断 --- VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h | 93 +++++++++++++++++++++++----------------------- 1 files changed, 47 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..0c59928 100644 --- a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h +++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncServer.h @@ -1,46 +1,47 @@ -// -// 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 <capnp/message.h> +#include <capnp/serialize-packed.h> +#include <capnp/ez-rpc.h> +#include "RemoteMethod.capnp.h" + +//C++妯″潡涓殑client锛岀敤浜庡彂鐜颁汉鑴告椂閫氱煡java妯″潡 +class RtspFaceDetectClient +{ +public: + RtspFaceDetectClient(); + RtspFaceDetect::Client* getClient(); + ~RtspFaceDetectClient() {}; + + ::kj::WaitScope &getWaitScope(); + + capnp::EzRpcClient* getEzRpcClient(); +private: + RtspFaceDetect::Client* client; + capnp::EzRpcClient* rpcClient; +}; + +void startRemoteServer(); + +RtspFaceDetectClient* getRtspFaceDetectClient(); + +//C++妯″潡涓殑鏈嶅姟绔紝鐢ㄤ簬鍝嶅簲java绔殑璋冪敤鍙婁紶鍊� +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