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

Committed: https://code.google.com/p/webrtc/source/detail?r=8257

Committed: https://code.google.com/p/webrtc/source/detail?r=8276

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

Cr-Commit-Position: refs/heads/master@{#8277}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8277 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
guoweis@webrtc.org
2015-02-06 21:01:23 +00:00
parent 110443aaac
commit 0c7ec770ff
12 changed files with 172 additions and 304 deletions

View File

@@ -98,11 +98,6 @@ bool CapturedFrame::GetDataSize(uint32* size) const {
return true;
}
webrtc::kVideoRotation CapturedFrame::GetRotation() const {
ASSERT(rotation == 0 || rotation == 90 || rotation == 180 || rotation == 270);
return static_cast<webrtc::kVideoRotation>(rotation);
}
/////////////////////////////////////////////////////////////////////
// Implementation of class VideoCapturer
/////////////////////////////////////////////////////////////////////