- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Metal入门一 旋转的六面体
上代码自己悟吧 这是metal 着色器语言如下 #include <metal_stdlib> using namespace metal; struct Vertex { float4 position [[position]]; float4 color; }; vertex Vertex vertex_shader(constant Vertex *vertices [[buffer(0)]],uint vid [[vertex_id]]){ retur
2021-06-10 15:16:17 238
原创 Metal入门一 三角形
判断设备是否支持metal guard let device = MTLCreateSystemDefaultDevice() else { label.text = "Your GPU does not support Metal!" return } label.text = "Your system has the following GPU(s):\n" + "\(device.name)\n" 创建 MTKView 的子类MetalView Story
2021-06-07 18:57:23 115
原创 iOS AVPlayer 音乐播放器使用注意事项
AVPlayer关于音乐播放总时长的获取 关于音乐播放总时长的获取 官方解说如下 /** @property duration @abstract Indicates the duration of the item, not considering either its forwardPlaybackEndTime or reversePlaybackEndTime. @discussion This property is observable.
2021-06-05 12:47:00 319
原创 FFmpeg iOS
FFmpeg iOS https://github.com/tanersener/mobile-ffmpeg/releases/tag/v4.4 项目集成 pod 'mobile-ffmpeg-full-gpl', '~> 4.4' 简单使用 import mobileffmpeg 多图合成视频例子 func outVideo(path1:String,outPath:String) { try? FileManager.default.removeItem(atPath: o
2021-06-04 18:54:33 255 1
原创 2021-06-04
FFmepg 去除.mp3 的人声 ffmpeg -i file.mp3 -af pan="stereo|c0=c0|c1=-1*c1" -ac 1 karaoke.mp3
2021-06-04 10:14:53 117
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人