Lines Matching refs:Windows

21 using namespace Windows::UI::Xaml;
22 using namespace Windows::UI::Xaml::Navigation;
23 using namespace Windows::UI::Xaml::Data;
24 using namespace Windows::System;
25 using namespace Windows::Foundation;
26 using namespace Windows::Foundation::Collections;
28 using namespace Windows::UI;
29 using namespace Windows::UI::Core;
30 using namespace Windows::UI::Xaml;
31 using namespace Windows::UI::Xaml::Controls;
32 using namespace Windows::UI::Xaml::Data;
33 using namespace Windows::UI::Xaml::Media;
34 using namespace Windows::Storage;
35 using namespace Windows::Media::MediaProperties;
36 using namespace Windows::Storage::Streams;
37 using namespace Windows::System;
38 using namespace Windows::UI::Xaml::Media::Imaging;
39 using namespace Windows::Devices::Enumeration;
61 Windows::Storage::Streams::IRandomAccessStream ^InputStream;
62 Windows::Storage::Streams::IRandomAccessStream ^OutputStream;
63 Windows::Storage::StorageFile ^PhotoStorage;
64 Windows::Graphics::Imaging::BitmapDecoder ^Decoder;
65 Windows::Graphics::Imaging::BitmapEncoder ^Encoder;
85 …m_orientationChangedEventToken = Windows::Graphics::Display::DisplayProperties::OrientationChanged…
90 Windows::Media::MediaControl::SoundLevelChanged -= m_eventRegistrationToken;
91Windows::Graphics::Display::DisplayProperties::OrientationChanged -= m_orientationChangedEventTok…
105 previewCanvas2->Visibility = Windows::UI::Xaml::Visibility::Collapsed; in ScenarioInit()
112 previewCanvas2->Visibility = Windows::UI::Xaml::Visibility::Collapsed; in ScenarioReset()
116 void AdvancedCapture::Failed(Windows::Media::Capture::MediaCapture ^currentCaptureObject, Windows::…
119 create_task(Dispatcher->RunAsync(Windows::UI::Core::CoreDispatcherPriority::High,
120 ref new Windows::UI::Core::DispatchedHandler([this, message]()
126 void AdvancedCapture::btnStartDevice_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEvent…
132 auto mediaCapture = ref new Windows::Media::Capture::MediaCapture();
134 auto settings = ref new Windows::Media::Capture::MediaCaptureInitializationSettings();
137 …closureLocation != nullptr && chosenDevInfo->EnclosureLocation->Panel == Windows::Devices::Enumera…
142 …closureLocation != nullptr && chosenDevInfo->EnclosureLocation->Panel == Windows::Devices::Enumera…
167 …mediaCapture->Failed += ref new Windows::Media::Capture::MediaCaptureFailedEventHandler(this, &Adv… in __anonf55c16f60202()
181 void AdvancedCapture::btnStartPreview_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEven…
190 previewCanvas2->Visibility = Windows::UI::Xaml::Visibility::Visible;
215 void AdvancedCapture::lstEnumedDevices_SelectionChanged(Platform::Object^ sender, Windows::UI::Xaml…
289Windows::Media::Capture::VideoDeviceCharacteristic charecteristic = mediaCapture->MediaCaptureSett… in AddEffectToImageStream()
291 … if((charecteristic != Windows::Media::Capture::VideoDeviceCharacteristic::AllStreamsIdentical) && in AddEffectToImageStream()
292 …(charecteristic != Windows::Media::Capture::VideoDeviceCharacteristic::PreviewPhotoStreamsIdentica… in AddEffectToImageStream()
293 …(charecteristic != Windows::Media::Capture::VideoDeviceCharacteristic::RecordPhotoStreamsIdentical… in AddEffectToImageStream()
295Windows::Media::MediaProperties::IMediaEncodingProperties ^props = mediaCapture->VideoDeviceContro… in AddEffectToImageStream()
299Windows::Foundation::Collections::IVectorView<Windows::Media::MediaProperties::IMediaEncodingPrope… in AddEffectToImageStream()
304Windows::Media::MediaProperties::IMediaEncodingProperties^ props = supportedPropsList->GetAt(i); in AddEffectToImageStream()
309 …void>(mediaCapture->VideoDeviceController->SetMediaStreamPropertiesAsync(Windows::Media::Capture::… in AddEffectToImageStream()
316 …task<void>(m_mediaCaptureMgr->AddEffectAsync(Windows::Media::Capture::MediaStreamType::Photo,"OcvT… in AddEffectToImageStream()
351 …task<void>(mediaCapture->AddEffectAsync(Windows::Media::Capture::MediaStreamType::Photo,"OcvTransf… in AddEffectToImageStream()
393 task<Windows::Storage::StorageFile^> AdvancedCapture::ReencodePhotoAsync(
394 Windows::Storage::StorageFile ^tempStorageFile,
395 Windows::Storage::FileProperties::PhotoOrientation photoRotation)
399 …return create_task(tempStorageFile->OpenAsync(Windows::Storage::FileAccessMode::Read)).then([state…
402 return Windows::Graphics::Imaging::BitmapDecoder::CreateAsync(state->InputStream); in __anonf55c16f60902()
403 }).then([state](Windows::Graphics::Imaging::BitmapDecoder ^decoder) in __anonf55c16f60902()
406 …return Windows::Storage::KnownFolders::PicturesLibrary->CreateFileAsync(PHOTO_FILE_NAME, Windows::… in __anonf55c16f60a02()
407 }).then([state](Windows::Storage::StorageFile ^storageFile) in __anonf55c16f60a02()
410 return state->PhotoStorage->OpenAsync(Windows::Storage::FileAccessMode::ReadWrite); in __anonf55c16f60b02()
411 }).then([state](Windows::Storage::Streams::IRandomAccessStream ^stream) in __anonf55c16f60b02()
415 …return Windows::Graphics::Imaging::BitmapEncoder::CreateForTranscodingAsync(state->OutputStream, s… in __anonf55c16f60c02()
416 }).then([state, photoRotation](Windows::Graphics::Imaging::BitmapEncoder ^encoder) in __anonf55c16f60c02()
419 auto properties = ref new Windows::Graphics::Imaging::BitmapPropertySet(); in __anonf55c16f60d02()
421 …ref new Windows::Graphics::Imaging::BitmapTypedValue((unsigned short)photoRotation, Windows::Found… in __anonf55c16f60d02()
431 tempStorageFile->DeleteAsync(Windows::Storage::StorageDeleteOption::PermanentDelete); in __anonf55c16f60f02()
439 Windows::Storage::FileProperties::PhotoOrientation AdvancedCapture::GetCurrentPhotoRotation() in GetCurrentPhotoRotation()
445 …return PhotoRotationLookup(Windows::Graphics::Display::DisplayProperties::CurrentOrientation, coun… in GetCurrentPhotoRotation()
449 return Windows::Storage::FileProperties::PhotoOrientation::Normal; in GetCurrentPhotoRotation()
455 Windows::Media::Capture::MediaCapture ^mediaCapture = m_mediaCaptureMgr.Get(); in PrepareForVideoRecording()
465 …mediaCapture->SetRecordRotation(VideoRotationLookup(Windows::Graphics::Display::DisplayProperties:… in PrepareForVideoRecording()
469 mediaCapture->SetRecordRotation(Windows::Media::Capture::VideoRotation::None); in PrepareForVideoRecording()
475 Windows::Media::Capture::MediaCapture ^mediaCapture = m_mediaCaptureMgr.Get();
487 …mediaCapture->SetPreviewRotation(VideoRotationLookup(Windows::Graphics::Display::DisplayProperties…
491 mediaCapture->SetPreviewRotation(Windows::Media::Capture::VideoRotation::None);
495 Windows::Storage::FileProperties::PhotoOrientation AdvancedCapture::PhotoRotationLookup( in PhotoRotationLookup()
496 Windows::Graphics::Display::DisplayOrientations displayOrientation, bool counterclockwise) in PhotoRotationLookup()
500 case Windows::Graphics::Display::DisplayOrientations::Landscape: in PhotoRotationLookup()
501 return Windows::Storage::FileProperties::PhotoOrientation::Normal; in PhotoRotationLookup()
503 case Windows::Graphics::Display::DisplayOrientations::Portrait: in PhotoRotationLookup()
504 return (counterclockwise) ? Windows::Storage::FileProperties::PhotoOrientation::Rotate270: in PhotoRotationLookup()
505 Windows::Storage::FileProperties::PhotoOrientation::Rotate90; in PhotoRotationLookup()
507 case Windows::Graphics::Display::DisplayOrientations::LandscapeFlipped: in PhotoRotationLookup()
508 return Windows::Storage::FileProperties::PhotoOrientation::Rotate180; in PhotoRotationLookup()
510 case Windows::Graphics::Display::DisplayOrientations::PortraitFlipped: in PhotoRotationLookup()
511 return (counterclockwise) ? Windows::Storage::FileProperties::PhotoOrientation::Rotate90 : in PhotoRotationLookup()
512 Windows::Storage::FileProperties::PhotoOrientation::Rotate270; in PhotoRotationLookup()
515 return Windows::Storage::FileProperties::PhotoOrientation::Unspecified; in PhotoRotationLookup()
519 Windows::Media::Capture::VideoRotation AdvancedCapture::VideoRotationLookup( in VideoRotationLookup()
520 Windows::Graphics::Display::DisplayOrientations displayOrientation, bool counterclockwise) in VideoRotationLookup()
524 case Windows::Graphics::Display::DisplayOrientations::Landscape: in VideoRotationLookup()
525 return Windows::Media::Capture::VideoRotation::None; in VideoRotationLookup()
527 case Windows::Graphics::Display::DisplayOrientations::Portrait: in VideoRotationLookup()
528 return (counterclockwise) ? Windows::Media::Capture::VideoRotation::Clockwise270Degrees : in VideoRotationLookup()
529 Windows::Media::Capture::VideoRotation::Clockwise90Degrees; in VideoRotationLookup()
531 case Windows::Graphics::Display::DisplayOrientations::LandscapeFlipped: in VideoRotationLookup()
532 return Windows::Media::Capture::VideoRotation::Clockwise180Degrees; in VideoRotationLookup()
534 case Windows::Graphics::Display::DisplayOrientations::PortraitFlipped: in VideoRotationLookup()
535 return (counterclockwise) ? Windows::Media::Capture::VideoRotation::Clockwise90Degrees: in VideoRotationLookup()
536 Windows::Media::Capture::VideoRotation::Clockwise270Degrees ; in VideoRotationLookup()
539 return Windows::Media::Capture::VideoRotation::None; in VideoRotationLookup()
543 void SDKSample::MediaCapture::AdvancedCapture::Button_Click(Platform::Object^ sender, Windows::UI::…
547 …create_task(m_mediaCaptureMgr->ClearEffectsAsync(Windows::Media::Capture::MediaStreamType::VideoPr…
553 …create_task(m_mediaCaptureMgr->AddEffectAsync(Windows::Media::Capture::MediaStreamType::VideoPrevi… in __anonf55c16f61002()
560Windows::Media::Capture::VideoDeviceCharacteristic charecteristic = mediaCapture->MediaCaptureSett… in __anonf55c16f61002()
563 … if((charecteristic != Windows::Media::Capture::VideoDeviceCharacteristic::AllStreamsIdentical) && in __anonf55c16f61002()
564 …(charecteristic != Windows::Media::Capture::VideoDeviceCharacteristic::PreviewRecordStreamsIdentic… in __anonf55c16f61002()
566Windows::Media::MediaProperties::IMediaEncodingProperties ^props = mediaCapture->VideoDeviceContro… in __anonf55c16f61002()
567Windows::Media::MediaProperties::VideoEncodingProperties ^videoEncodingProperties = static_cast<W… in __anonf55c16f61002()
570 …task<void>(mediaCapture->AddEffectAsync(Windows::Media::Capture::MediaStreamType::VideoRecord,"Ocv… in __anonf55c16f61002()