生成的视频颜色有偏差 sRGB / RGB
huanglins opened this issue · 0 comments
huanglins commented
将 VideoCompositor
中最后渲染的代码修改就可以解决
VideoCompositor.ciContext.render(image, to: outputPixels)
改为:
let colorSpace = CGColorSpace.init(name: CGColorSpace.sRGB) ?? CGColorSpaceCreateDeviceRGB()
VideoCompositor.ciContext.render(image, to: outputPixels, bounds: image.extent, colorSpace: colorSpace)