DescriptionAndroid: Add Size class.
The Camera1 and Camera2 API use different size types. Camera1 uses
android.hardware.Camera.Size while Camera2 uses android.util.Size.
android.util.Size is only available from Lollipop forward so this CL
adds a similar Size class in CaptureFormat.
The purpose of this CL is to have a common size type that can be reused
from both Camera1 and Camera2 helper functions such as
CameraEnumerationAndroid.getClosestSupportedSize().
BUG=webrtc:5519
Committed: https://crrev.com/e6c9e88c18e56d2f3084f551911cbf40a427f7f5
Cr-Commit-Position: refs/heads/master@{#13181}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Changes according to perkj's comments #Patch Set 3 : Fix bug. #
Total comments: 1
Patch Set 4 : Remove Size usage from CaptureFormat for performance and move it to base/java/src/org/webrtc/ #Patch Set 5 : Better hashing function #Patch Set 6 : Remove getArea function since it is no longer used. #
Dependent Patchsets: Messages
Total messages: 23 (11 generated)
|