Add GetDeviceSupportedFormats to Android VideoCapture.java.
The |formats| Java Array is sent to native where is pushed into the C++ |formats| array. This is easier than to pass data types to and from Java. VideoCapture.CaptureCapability modified to match C++ equivalent VideoCaptureFormat [1]. Added mPixelFormat to it. Internal logic adapted to keep capture format in that class too. Some internal allocate() logic is passed from iterator to Java foreach loop. [1] https://code.google.com/p/chromium/codesearch#chromium/src/media/video/capture/video_capture_types.h&sq=package:chromium&l=37&type=cs BUG=309554 Review URL: https://codereview.chromium.org/135213005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251857 0039d316-1c4b-4281-b951-d872f2087c98
Showing
This diff is collapsed.
Please register or sign in to comment