How to implement StreamConfigurationMap while using the Camera2 API?

I am having trouble translating this line of code into the Xamarin.Android C#

StreamConfigurationMap configs = characteristics.CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);
I've try this
StreamConfigurationMap map = CameraCharacteristics.ScalerStreamConfigurationMap;
and it gives the error
Cannot Implicity Convert Type "Android.Hardware.Camera2.CameraCharacteristics.Key" to "Android.Hardware.Camera2.Params.StreamConfigurationMap"
Any thoughts?

Answers

  • MarioRoblesMarioRobles USMember
    edited July 2016

    Do a cast
    StreamConfigurationMap map = (StreamConfigurationMap) cameraCharacteristics.Get(CameraCharacteristics.ScalerStreamConfigurationMap)
    Gives no errors

Sign In or Register to comment.