Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix camera size access. Allows for video on devices that don't have exact matching camera sizes. #8

Conversation

patrickmwatson
Copy link

No description provided.

@shareefalis
Copy link

-1 because it doesn't fix the actual problem. Camera 1 API will be deprecated in the near future

}
int camOrientation = characteristics.get(CameraCharacteristics.SENSOR_ORIENTATION);
StreamConfigurationMap configs = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);
android.util.Size[] supportedSizes = configs.getOutputSizes(ImageFormat.JPEG);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jpeg is not the only supported picture format. We should be able to get all the supported format here. https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputFormats()

@patrickmwatson patrickmwatson deleted the camera_access_fix branch July 19, 2016 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants