iOS render: Handle frame rotation in OpenGL

This CL handles frame rotation by updating the OpenGL vertex data in
RTCOpenGLVideoRenderer, instead of calling the expensive
libyuv::I420Rotate that will rotate the actual memory. Also, we can
handle rotated native frames instead of falling back to
NativeToI420Buffer.

Review-Url: https://codereview.webrtc.org/2176623002
Cr-Commit-Position: refs/heads/master@{#13715}
This commit is contained in:
magjed
2016-08-10 07:58:29 -07:00
committed by Commit bot
parent 4556b45076
commit fb372f0074
10 changed files with 119 additions and 64 deletions

View File

@ -13,7 +13,7 @@
#import <GLKit/GLKit.h>
#import "RTCOpenGLVideoRenderer.h"
#import "WebRTC//RTCVideoFrame.h"
#import "WebRTC/RTCVideoFrame.h"
// RTCDisplayLinkTimer wraps a CADisplayLink and is set to fire every two screen
// refreshes, which should be 30fps. We wrap the display link in order to avoid