【发布时间】:2013-02-27 19:53:18
【问题描述】:
我正在开发一个应用程序,该应用程序从前置摄像头捕获实时视频流并将其发送到远程端(使用 RTP)。 本质上数据流是: AVCaptureSession -> AVCaptureVideoDataOutput -> 回调 -> RTP -> 在远程端显示
当我使用横向模式时,远程端的图像是颠倒的。在纵向模式下,它会向左旋转。
如何在以下回调中旋转像素缓冲区,以使远端的图像具有正确的方向?感谢任何指针。
void)captureOutput:(AVCaptureOutput *)captureOutput
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
fromConnection:(AVCaptureConnection *)connection
【问题讨论】:
-
我也遇到了同样的问题,你还没有找到解决办法吗?
标签: iphone ios ios5 ios6 avfoundation