15 君正IPC库开发总结

概述

        在前面的章节中,我们介绍了君正ISP、视频采集、音频采集、音频播放、云台电机、移动侦测算法、人形侦测算法、移动跟踪算法等的封装。那么,应用层如何使用这些封装好的接口呢?根据设计模式中的依赖倒置原则:高层次的模块不应该依赖于低层次的模块,它们都应该依赖于抽象。因此,应用层应当只能感知到我们封装的接口类,而不应当感知到其对应的具体实现类。

媒体处理平台接口类

        为了方便应用层使用君正IPC库的接口,我们封装了媒体处理平台接口类CHP_MediaProcessPlatform。其头文件如下:

#pragma once

#include "HP_Led.h"
#include "HP_WhiteLight.h"
#include "HP_PTZMotor.h"
#include "HP_SDCard.h"
#include "HP_Keystroke.h"
#include "HP_Flash.h"
#include "HP_Config.h"
#include "HP_WiredNetwork.h"
#include "HP_WifiNetwork.h"
#include "HP_NetworkManager.h"
#include "HP_ISP.h"
#include "HP_VideoCapture.h"
#include "HP_AudioCapture.h"
#include "HP_AudioPlay.h"
#include "HP_MediaStorage.h"
#include "HP_Watchdog.h"
#include "HP_MotionDetect.h"
#incl

猜你喜欢

转载自blog.csdn.net/hope_wisdom/article/details/132006547
15