Cleanup: unify rotation to be enum based instead of int for degree.

Split from https://webrtc-codereview.appspot.com/37029004/

BUG=4145
R=pthatcher@webrtc.org, stefan@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/37129004

Cr-Commit-Position: refs/heads/master@{#8257}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8257 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
guoweis@webrtc.org
2015-02-05 23:40:19 +00:00
parent 74d27884af
commit 3e733a43f5
11 changed files with 303 additions and 177 deletions

View File

@@ -98,6 +98,10 @@ bool CapturedFrame::GetDataSize(uint32* size) const {
return true;
}
webrtc::VideoFrameRotation CapturedFrame::GetRotation() const {
return webrtc::ClockwiseRotationFromDegree(rotation);
}
/////////////////////////////////////////////////////////////////////
// Implementation of class VideoCapturer
/////////////////////////////////////////////////////////////////////