init(pixelBuffer:presentationTime:layout:)
Creates a video frame with one pixelBuffer and specified layout.
Declaration
init(pixelBuffer: CVPixelBuffer, presentationTime: CMTime, layout: ImmersiveVideoFrame.VideoLayout = .sideBySide)Parameters
- pixelBuffer:
pixelBuffer containing the video frame.
- presentationTime:
Presentation time of the video frame.
- layout:
How left and right eye is packed into the pixelBuffer. See Videolayout for the valid options.