会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lianhuaren
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
50
下一页
2020年7月9日
第46月第9天 mermaid ffmpeg转码
摘要: 1.mermaid https://mermaid-js.github.io/mermaid/#/sequenceDiagram?id=syntax 2. 转码 最简单命令如下: ffmpeg -i out.ogv -vcodec h264 out.mp4 ffmpeg -i out.ogv -vc
阅读全文
posted @ 2020-07-09 10:10 lianhuaren
阅读(303)
评论(0)
推荐(0)
2020年6月28日
第45月第28天 加载so库 iOS打包framework
摘要: 1. - (void)runtimePlay{ // 获取音乐资源路径 NSString *path = [[NSBundle mainBundle] pathForResource:@"rain" ofType:@"mp3"]; // 加载库到当前运行程序 void *lib = dlopen("
阅读全文
posted @ 2020-06-28 15:23 lianhuaren
阅读(596)
评论(0)
推荐(0)
2020年6月25日
第45月第25天 「WebRTC」iOS运行AppRTCMobile
摘要: 1. https://www.sohu.com/a/322131366_120122487 gn gen out/ios --args='target_os="ios" target_cpu="arm64" ios_enable_code_signing=true ios_code_signing_
阅读全文
posted @ 2020-06-25 21:18 lianhuaren
阅读(362)
评论(0)
推荐(0)
2020年6月24日
第45月第24天 clang fatal error: 'stdio.h' file not found
摘要: 1. 所以如果使用源码编译出来的clang去编译c程序,应该怎么解决头文件问题? 加上选项:-isysroot `xcrun --show-sdk-path` 如:/path/to/your/clang -isysroot `xcrun --show-sdk-path` hello.c -o hel
阅读全文
posted @ 2020-06-24 10:45 lianhuaren
阅读(916)
评论(0)
推荐(0)
2020年6月14日
第45月第14天 iOS 以scheduledTimerWithTimeInterval的方式触发的timer,在滑动页面上的列表时,timer会暂停,为什么?该如何解决?
摘要: 1. iOS 以scheduledTimerWithTimeInterval的方式触发的timer,在滑动页面上的列表时,timer会暂停,为什么?该如何解决? 原因在于滑动时当前线程的runloop切换了mode用于列表滑动,导致timer暂停。 runloop中的mode主要用来指定事件在run
阅读全文
posted @ 2020-06-14 17:05 lianhuaren
阅读(174)
评论(0)
推荐(0)
2020年6月13日
第45月第13天 C++多线程同步之临界区(CriticalSection)
摘要: 1. 在Linux环境下,没有Windows下的临界区的概念,但是也可以利用互斥量实现该功能。Linux下的API如下,在前面的博文里也有讲到过,可以参考http://blog.csdn.net/olansefengye1/article/details/53086141。 #include <pt
阅读全文
posted @ 2020-06-13 10:34 lianhuaren
阅读(198)
评论(0)
推荐(0)
2020年6月12日
第45月第12天 音视频同步
摘要: 1. 音视频同步有三种,视频同步音频,音频同步视频,音视频同步到其他时钟,本文介绍视频同步音频,其他方式不适用。项目采用openal做音频渲染,sdl同理,opengl做视频渲染。 //得到当前音频从包里拿出的pts减去第一帧pts所得时间再减去openal缓存的时间。//解决网络抖动问题 long
阅读全文
posted @ 2020-06-12 16:46 lianhuaren
阅读(161)
评论(0)
推荐(0)
2020年6月8日
第45月第8天 CFBridgingRetain __bridge_retained
摘要: 1. 如果只想单纯的转换,不涉及变量持有关系,可以这样 id obj = [[NSObject alloc] init]; void *p = (__bridge void*)obj; id o = (__bridge id)p;这样void*和id类型就能够互相转换。 _bridge转换中还有两种
阅读全文
posted @ 2020-06-08 09:08 lianhuaren
阅读(163)
评论(0)
推荐(0)
2020年6月6日
第45月第6天 KxLogger.h
摘要: 1. // // KxLogger.h // kxmovie // // Created by Mathieu Godart on 01/05/2014. // // #ifndef kxmovie_KxLogger_h #define kxmovie_KxLogger_h //#define DU
阅读全文
posted @ 2020-06-06 16:24 lianhuaren
阅读(127)
评论(0)
推荐(0)
2020年6月5日
第45月第5天 代理模式与适配器模式
摘要: 1. 代理模式 我们将创建一个 Image 接口和实现了 Image 接口的实体类。ProxyImage 是一个代理类,减少 RealImage 对象加载的内存占用。 ProxyPatternDemo,我们的演示类使用 ProxyImage 来获取要加载的 Image 对象,并按照需求进行显示。 h
阅读全文
posted @ 2020-06-05 16:31 lianhuaren
阅读(152)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
50
下一页
公告