Encoding Windows Phone:如何获取摄像头C++/CX支持的分辨率列表?

Encoding Windows Phone:如何获取摄像头C++/CX支持的分辨率列表?,encoding,camera,record,resolution,c++-cx,Encoding,Camera,Record,Resolution,C++ Cx,我有以下功能来初始化相机: LmiBool LmiVideoCapturerWinRTImplementation::Initialize(){ m_bRecording = LMI_FALSE; m_bSuspended = LMI_TRUE; m_bPreviewing = LMI_FALSE; m_pMediaCapture = ref new MediaCapture(); try{ auto task = create_task(m_pMediaCapture->Init

我有以下功能来初始化相机:

LmiBool LmiVideoCapturerWinRTImplementation::Initialize(){
m_bRecording = LMI_FALSE;
m_bSuspended = LMI_TRUE;
m_bPreviewing = LMI_FALSE;
m_pMediaCapture = ref new MediaCapture();
try{
    auto task = create_task(m_pMediaCapture->InitializeAsync(m_settings));
    if (task.wait() == completed){
        m_pMediaCapture->Failed += ref new MediaCaptureFailedEventHandler(this, &LmiVideoCapturerWinRTImplementation::MediaCaptureFailed);
        m_pMediaCapture->RecordLimitationExceeded += ref new Windows::Media::Capture::RecordLimitationExceededEventHandler(this, &LmiVideoCapturerWinRTImplementation::RecordLimitationExceeded);
        // create a video encoding profile with the default settings (Auto uses the current camera settings)
        m_EncodingProfile = MediaEncodingProfile::CreateMp4(VideoEncodingQuality::HD720p);
        m_pMediaCaptureSettings = m_pMediaCapture->MediaCaptureSettings;
        return LMI_TRUE;
    }
    else{
        return LMI_FALSE;
    }
}
catch (Exception ^ex){
    return LMI_FALSE;
}
}
现在,如您所见,我正在使用以下分辨率创建视频文件:HD720p。 我发现enum VideoEncodingQuality包含编码器可以使用的分辨率列表。 我想知道的是,如果有可能获得设备支持的分辨率列表,那么如果我选择HD1080p而我的手机不支持,它就不会崩溃。 在C++/CX中,是否可以从我的设备获取支持的分辨率列表