上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 54 下一页
摘要: 重要 抽象类和堆对象 2、堆里new 的对象,生命周期到程序结束,除非提前delete. 1、不能直接构建抽象类对象,但可以通过指针访问子对象,指针也可以作为函数返回值等 阅读全文
posted @ 2022-03-09 13:35 cnchengv 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 看实例 http://www.wjhsh.net/KillerAery-p-12802771.html 主要处理深拷贝问题。。 一、右值 1、 int&& b = 6; //这个时候只能右值引用 2、 template<typename T> void printValue( T&& t) { co 阅读全文
posted @ 2022-03-08 15:12 cnchengv 阅读(51) 评论(0) 推荐(0) 编辑
摘要: https://subingwen.cn/cplusplus/ 1、tcp穿越 2、画质评价 opencv 3、 阅读全文
posted @ 2022-03-07 18:46 cnchengv 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 用vs2019 1、下载 https://sourceforge.net/projects/asio/files/asio/1.12.2%20%28Stable%29/ 独立版本的 asio 放到工程里的的一个目录下 2、工程中把include 目录包含进去 3、因为默认是cpp14的 所以到cpp 阅读全文
posted @ 2022-03-04 11:01 cnchengv 阅读(269) 评论(0) 推荐(0) 编辑
摘要: asio https://blog.csdn.net/wzw18610647847/article/details/80053866 vc版 https://blog.csdn.net/qq_21961385/article/details/92427856 ios rtmp https://www 阅读全文
posted @ 2022-03-03 18:52 cnchengv 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 共享内存一致可像普通内存那样访问,读写,第一次同步失败,是因为析构函数走不到,进程已关闭。 1、返修工具端 HANDLE hShareMapFile = NULL; char* pShareBuf = NULL; /*共享内存通讯*/ int initShareMem(){ hShareMapFil 阅读全文
posted @ 2022-03-03 15:36 cnchengv 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 目前仅有点花,但是image上也是估计是avframe转piv的时候的问题 看来多喝咖啡--tothi--,先软解音视频ok--,then rtp 直播对讲? 那个视频的还要通过asio优化--,明天做成可在公司优化的-- 音频用 Audio Unit播放PCM数据,传pcm数据 ffmpeg -i 阅读全文
posted @ 2022-03-03 00:03 cnchengv 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1、 ios要想访问工程的资源文件 需要new group 之后可根据 NSURL *url = [[NSBundle mainBundle] URLForResource:@"test" withExtension:@"mov"]; 来访问 阅读全文
posted @ 2022-03-02 22:09 cnchengv 阅读(142) 评论(0) 推荐(0) 编辑
摘要: https://cloud.tencent.com/developer/article/1597680 需要先提示权限 #define SOCKET_PORT htons(8040) #define IP_ADRR "192.168.1.3" char receive_msg[1024]; char 阅读全文
posted @ 2022-02-27 00:21 cnchengv 阅读(732) 评论(0) 推荐(0) 编辑
摘要: 获取当前目录下的所有文件,用 _findfirst 4、 const 修饰其左边的关键字,如果自身在最左边,则修饰旁边的。 有如下定义,则编译时会报错的选项有() WORD32 const constValue = 10;WORD32 * const pPointA;const WORD32 * p 阅读全文
posted @ 2022-02-22 09:24 cnchengv 阅读(191) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 54 下一页