Files
momentry_core/docs_v1.0
Accusys c122913492 docs: add Apple native video performance analysis
性能對比測試:
- Rust (ffmpeg): 0.81s
- Swift (Apple Native): 6.18s
- 差異: ffmpeg 7.65x 更快

原因分析:
1. ffmpeg 高度優化 (C + SIMD)
2. Swift 原型開銷大:
   - CVPixelBuffer 創建
   - Core Image 處理
   - CGImage 創建
   - CPU-GPU 傳輸

優化方向:
1. Phase 1: 快速優化 (3x, 1天)
   - 減少幀處理頻率
   - 直接訪問像素
   - 跳過 Core Image

2. Phase 2: Vision + ANE (5x, 2-3天)
   - 使用 Vision Framework
   - ANE 加速

3. Phase 3: Metal GPU (10x, 1周)
   - Metal shader
   - GPU 並行

建議:
- 短期: 繼續使用 ffmpeg (性能優)
- 中期: 優化 Apple Native
- 長期: 根據需求選擇

結論: 可行但需優化
2026-09-28 15:06:50 +08:00
..