Delete deprecated and transitional stuff related to video frame refactoring.
BUG=webrtc:5880 Review-Url: https://codereview.webrtc.org/2622263002 Cr-Commit-Position: refs/heads/master@{#17928}
This commit is contained in:
@ -160,7 +160,7 @@ void AVFoundationVideoCapturer::CaptureSampleBuffer(
|
||||
// Applying rotation is only supported for legacy reasons and performance is
|
||||
// not critical here.
|
||||
if (apply_rotation() && rotation != kVideoRotation_0) {
|
||||
buffer = I420Buffer::Rotate(buffer->NativeToI420Buffer(),
|
||||
buffer = I420Buffer::Rotate(*buffer->NativeToI420Buffer(),
|
||||
rotation);
|
||||
if (rotation == kVideoRotation_90 || rotation == kVideoRotation_270) {
|
||||
std::swap(captured_width, captured_height);
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
|
||||
#import "RTCVideoFrame+Private.h"
|
||||
|
||||
#include "webrtc/api/video/i420_buffer.h"
|
||||
#include "webrtc/common_video/include/corevideo_frame_buffer.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -60,7 +61,7 @@ void ObjcVideoTrackSource::OnCapturedFrame(RTCVideoFrame* frame) {
|
||||
// not critical here.
|
||||
webrtc::VideoRotation rotation = static_cast<webrtc::VideoRotation>(frame.rotation);
|
||||
if (apply_rotation() && rotation != kVideoRotation_0) {
|
||||
buffer = I420Buffer::Rotate(buffer->NativeToI420Buffer(), rotation);
|
||||
buffer = I420Buffer::Rotate(*buffer->NativeToI420Buffer(), rotation);
|
||||
rotation = kVideoRotation_0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user