Commit a7425557 authored by Ghislain MARY's avatar Ghislain MARY

Use MSWinRTBackgroundDis display filter in ms2 tester for Windows 10.

parent c0dfcfde
...@@ -249,7 +249,7 @@ void NativeTester::startVideoStream(Platform::String^ videoSwapChainPanelName, P ...@@ -249,7 +249,7 @@ void NativeTester::startVideoStream(Platform::String^ videoSwapChainPanelName, P
_videoStream = video_preview_new(_factory); _videoStream = video_preview_new(_factory);
RefToPtrProxy<Platform::String^> *nativeWindowId = new RefToPtrProxy<Platform::String^>(videoSwapChainPanelName); RefToPtrProxy<Platform::String^> *nativeWindowId = new RefToPtrProxy<Platform::String^>(videoSwapChainPanelName);
video_preview_set_native_window_id(_videoStream, nativeWindowId); video_preview_set_native_window_id(_videoStream, nativeWindowId);
video_preview_set_display_filter_name(_videoStream, "MSWinRTDis"); video_preview_set_display_filter_name(_videoStream, "MSWinRTBackgroundDis");
video_preview_set_size(_videoStream, vsize); video_preview_set_size(_videoStream, vsize);
video_preview_set_fps(_videoStream, (float)frameRate); video_preview_set_fps(_videoStream, (float)frameRate);
video_preview_set_device_rotation(_videoStream, _deviceRotation); video_preview_set_device_rotation(_videoStream, _deviceRotation);
...@@ -261,7 +261,7 @@ void NativeTester::startVideoStream(Platform::String^ videoSwapChainPanelName, P ...@@ -261,7 +261,7 @@ void NativeTester::startVideoStream(Platform::String^ videoSwapChainPanelName, P
RefToPtrProxy<Platform::String^> *nativePreviewWindowId = new RefToPtrProxy<Platform::String^>(previewSwapChainPanelName); RefToPtrProxy<Platform::String^> *nativePreviewWindowId = new RefToPtrProxy<Platform::String^>(previewSwapChainPanelName);
video_stream_set_native_preview_window_id(_videoStream, nativePreviewWindowId); video_stream_set_native_preview_window_id(_videoStream, nativePreviewWindowId);
video_stream_use_preview_video_window(_videoStream, TRUE); video_stream_use_preview_video_window(_videoStream, TRUE);
video_stream_set_display_filter_name(_videoStream, "MSWinRTDis"); video_stream_set_display_filter_name(_videoStream, "MSWinRTBackgroundDis");
video_stream_use_video_preset(_videoStream, "custom"); video_stream_use_video_preset(_videoStream, "custom");
video_stream_set_sent_video_size(_videoStream, vsize); video_stream_set_sent_video_size(_videoStream, vsize);
video_stream_set_fps(_videoStream, (float)frameRate); video_stream_set_fps(_videoStream, (float)frameRate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment