会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cnchengv
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
17
18
19
20
21
22
23
24
25
···
57
下一页
2022年3月9日
cpp未结
摘要: 重要 抽象类和堆对象 2、堆里new 的对象,生命周期到程序结束,除非提前delete. 1、不能直接构建抽象类对象,但可以通过指针访问子对象,指针也可以作为函数返回值等
阅读全文
posted @ 2022-03-09 13:35 cnchengv
阅读(23)
评论(0)
推荐(0)
2022年3月8日
右值和forward
摘要: 看实例 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
阅读(61)
评论(0)
推荐(0)
2022年3月7日
接下来
摘要: https://subingwen.cn/cplusplus/ 1、tcp穿越 2、画质评价 opencv 3、
阅读全文
posted @ 2022-03-07 18:46 cnchengv
阅读(223)
评论(0)
推荐(0)
2022年3月4日
asio 使用 v
摘要: 用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
阅读(607)
评论(0)
推荐(0)
2022年3月3日
接下来要处理
摘要: 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
阅读(23)
评论(0)
推荐(0)
两个进程通过共享内存同步,控制播放器关闭
摘要: 共享内存一致可像普通内存那样访问,读写,第一次同步失败,是因为析构函数走不到,进程已关闭。 1、返修工具端 HANDLE hShareMapFile = NULL; char* pShareBuf = NULL; /*共享内存通讯*/ int initShareMem(){ hShareMapFil
阅读全文
posted @ 2022-03-03 15:36 cnchengv
阅读(80)
评论(0)
推荐(0)
met视频初步
摘要: 目前仅有点花,但是image上也是估计是avframe转piv的时候的问题 看来多喝咖啡--tothi--,先软解音视频ok--,then rtp 直播对讲? 那个视频的还要通过asio优化--,明天做成可在公司优化的-- 音频用 Audio Unit播放PCM数据,传pcm数据 ffmpeg -i
阅读全文
posted @ 2022-03-03 00:03 cnchengv
阅读(129)
评论(0)
推荐(0)
2022年3月2日
iOS要想访问工程里的资源文件
摘要: 1、 ios要想访问工程的资源文件 需要new group 之后可根据 NSURL *url = [[NSBundle mainBundle] URLForResource:@"test" withExtension:@"mov"]; 来访问
阅读全文
posted @ 2022-03-02 22:09 cnchengv
阅读(158)
评论(0)
推荐(0)
2022年2月27日
iOS 真机socket连不上问题
摘要: 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
阅读(890)
评论(0)
推荐(0)
2022年2月22日
long 和 intptr_t const
摘要: 获取当前目录下的所有文件,用 _findfirst 4、 const 修饰其左边的关键字,如果自身在最左边,则修饰旁边的。 有如下定义,则编译时会报错的选项有() WORD32 const constValue = 10;WORD32 * const pPointA;const WORD32 * p
阅读全文
posted @ 2022-02-22 09:24 cnchengv
阅读(213)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
22
23
24
25
···
57
下一页
公告