最近开始面试,有些面试中问到的问题感觉自己答得不好,在这里记录下。
记ffmpeg在iOS10下硬编码视频崩溃问题
最近使用ffmpeg调用videotoolbox进行硬编码,在iOS10系统下测试时,发现运行一两分钟就会崩溃。
GPUImage3源码研究 研究视频滤镜过程
GPUImage是使用OpenGL进行滤镜处理的框架,作者后续开发了使用swift+OpenGL的GPUImage2,后续又有基于Metal的GPUImage3,之前学习了下Metal的一些基本使用,这次来学习下GPUImage3的源码。
Metal学习笔记03 渲染视频原始数据
Metal学习笔记02 渲染图片纹理
Metal学习笔记01 渲染一个三角形
Metal是苹果于2014年WWDC中发布的图像处理、通用计算的框架,而在今年的ios12中,OpenGL ES的API也被标记为废弃了,所以作为一个iOS开发者,有必要了解下这个框架。
记一次静态库导致的审核被拒
前几天一个使用我们公司iOS sdk的用户跟我说他们app审核被拒了,原因是包含了dlopen(),dlsym()的函数。 审核的理由原文:
This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it has the potential to load private frameworks, private methods, and enable future feature changes. This includes any code which passes arbitrary parameters to dynamic methods such as dlopen(), dlsym(), respondsToSelector:, performSelector:, method_exchangeImplementations(), and running remote scripts in order to change app behavior and/or call SPI, based on the contents of the downloaded script. Even if the remote resource is not intentionally malicious, it could easily be hijacked via a Man In The Middle (MiTM) attack, which can pose a serious security vulnerability to users of your app.
GPUImage源码研究02 研究采集视频滤镜
GPUImage源码研究01 研究图片滤镜过程
之前在一家短视频应用的小创业公司待过,当时领导丢给我几个shader文件和图片,然后叫我用GPUImage把这几个滤镜弄出来,当时看那些shader和GPUImage是一脸懵逼,硬着头皮弄,后来也弄出来了,现在想想当时也没有顺便研究下OpenGL和GPUImage,感觉有点浪费,现在想起来了,之前对OpenGL也有些了解了,就来看看GPUImage的源码吧。