Lines Matching refs:MediaCapture
19 using namespace SDKSample::MediaCapture;
116 void AdvancedCapture::Failed(Windows::Media::Capture::MediaCapture ^currentCaptureObject, Windows::Media::Capture::MediaCaptureFailedEventArgs^ currentFailure)
132 auto mediaCapture = ref new Windows::Media::Capture::MediaCapture();
133 m_mediaCaptureMgr = mediaCapture;
152 create_task(mediaCapture->InitializeAsync(settings)).then([this](task<void> initTask)
158 auto mediaCapture = m_mediaCaptureMgr.Get();
167 mediaCapture->Failed += ref new Windows::Media::Capture::MediaCaptureFailedEventHandler(this, &AdvancedCapture::Failed);
189 auto mediaCapture = m_mediaCaptureMgr.Get();
191 previewElement2->Source = mediaCapture;
192 create_task(mediaCapture->StartPreviewAsync()).then([this](task<void> previewTask)
288 auto mediaCapture = m_mediaCaptureMgr.Get();
289 Windows::Media::Capture::VideoDeviceCharacteristic charecteristic = mediaCapture->MediaCaptureSettings->VideoDeviceCharacteristic;
295 Windows::Media::MediaProperties::IMediaEncodingProperties ^props = mediaCapture->VideoDeviceController->GetMediaStreamProperties(Windows::Media::Capture::MediaStreamType::Photo);
299 Windows::Foundation::Collections::IVectorView<Windows::Media::MediaProperties::IMediaEncodingProperties^>^ supportedPropsList = mediaCapture->VideoDeviceController->GetAvailableMediaStreamProperties(Windows::Media::Capture::MediaStreamType::Photo);
309 task<void>(mediaCapture->VideoDeviceController->SetMediaStreamPropertiesAsync(Windows::Media::Capture::MediaStreamType::Photo,props)).then([this](task<void> changeTypeTask)
351 task<void>(mediaCapture->AddEffectAsync(Windows::Media::Capture::MediaStreamType::Photo,"OcvTransform.OcvImageManipulations", nullptr)).then([this](task<void> effectTask3)
455 Windows::Media::Capture::MediaCapture ^mediaCapture = m_mediaCaptureMgr.Get();
456 if (mediaCapture == nullptr)
465 mediaCapture->SetRecordRotation(VideoRotationLookup(Windows::Graphics::Display::DisplayProperties::CurrentOrientation, counterclockwiseRotation));
469 mediaCapture->SetRecordRotation(Windows::Media::Capture::VideoRotation::None);
475 Windows::Media::Capture::MediaCapture ^mediaCapture = m_mediaCaptureMgr.Get();
476 if (mediaCapture == nullptr)
481 bool previewMirroring = mediaCapture->GetPreviewMirroring();
487 mediaCapture->SetPreviewRotation(VideoRotationLookup(Windows::Graphics::Display::DisplayProperties::CurrentOrientation, counterclockwiseRotation));
491 mediaCapture->SetPreviewRotation(Windows::Media::Capture::VideoRotation::None);
543 void SDKSample::MediaCapture::AdvancedCapture::Button_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
559 auto mediaCapture = m_mediaCaptureMgr.Get();
560 Windows::Media::Capture::VideoDeviceCharacteristic charecteristic = mediaCapture->MediaCaptureSettings->VideoDeviceCharacteristic;
566 Windows::Media::MediaProperties::IMediaEncodingProperties ^props = mediaCapture->VideoDeviceController->GetMediaStreamProperties(Windows::Media::Capture::MediaStreamType::VideoRecord);
570 task<void>(mediaCapture->AddEffectAsync(Windows::Media::Capture::MediaStreamType::VideoRecord,"OcvTransform.OcvImageManipulations", nullptr)).then([this](task<void> effectTask2)