I work with camera2API and when i try to get all possible resolutions with this standard method
Size[] sizes = map.getOutputSizes(ImageFormat.JPEG);
for (int i = 0; i < sizes.length; i++){
Size size = sizes[i];
Logger.logGeneral("Sizes " + i + " :" + " Width : " + size.getWidth() + " Height : " + size.getHeight());
}
i get such output
E/GENERAL: [ActivityCamera::setUpCameraOutputs::406]:: Sizes 0 : Width : 3264 Height : 2448
E/GENERAL: [ActivityCamera::setUpCameraOutputs::406]:: Sizes 1 : Width : 3264 Height : 1836
E/GENERAL: [ActivityCamera::setUpCameraOutputs::406]:: Sizes 2 : Width : 2048 Height : 1152
E/GENERAL: [ActivityCamera::setUpCameraOutputs::406]:: Sizes 3 : Width : 1920 Height : 1080
E/GENERAL: [ActivityCamera::setUpCameraOutputs::406]:: Sizes 4 : Width : 1280 Height : 720
E/GENERAL: [ActivityCamera::setUpCameraOutputs::406]:: Sizes 5 : Width : 960 Height : 720
E/GENERAL: [ActivityCamera::setUpCameraOutputs::406]:: Sizes 6 : Width : 640 Height : 480
E/GENERAL: [ActivityCamera::setUpCameraOutputs::406]:: Sizes 7 : Width : 320 Height : 240
E/GENERAL: [ActivityCamera::setUpCameraOutputs::406]:: Sizes 8 : Width : 256 Height : 144
but it is not entire... When i open defoult camera i can chose more hight resolution
But why i can't get it all in my standard method?
Actually i notice this issue with Samsung S6, my Meizu MX5 show me all list of resolution.
What am i doing wrong?