Fixing the m_d3DDevice.UnmanagedComPointer problems

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

Bart007

  • Posts: 1
  • Joined: Wed Feb 13, 2019 9:07 am
  • Real Name: Bela Bartus

Fixing the m_d3DDevice.UnmanagedComPointer problems

PostThu Feb 14, 2019 2:11 pm

Hi guys!

I just want to translate C# sample code from SDK (\Win\Samples\CapturePreviewCSharp) to VB but I've faced the problem.
The following code block cannot be translated or at least I don't know how to do that:

unsafe
{
m_previewHelper.Initialize(new IntPtr(m_d3DDevice.UnmanagedComPointer));
}


It's located in "PreviewWindow.cs". The UnmanagedComPointer is unknown. Is there any workaround to fix it?

Another problem: regardless to input video quality (it is full HD, 1080p30), the preview will be displayed in PreviewWindow always pixelated with obviously not so good quality. Any solution for that?

Any comment, advice, suggestion, link, VB sample will be highly appreciated!

Thank you for the replies in advance!

Kind regards
Bela
Offline

Cameron Nichols

Blackmagic Design

  • Posts: 443
  • Joined: Mon Sep 04, 2017 4:05 am

Re: Fixing the m_d3DDevice.UnmanagedComPointer problems

PostThu Feb 21, 2019 10:34 pm

Hi Bela,

For the first issue, please refer to the UnmanagedComPointer property to return IDirect3DDevice9 interface.

https://docs.microsoft.com/en-us/previo ... 3dvs.85%29

For the second issue - which version of Desktop Video SDK are you running? In 10.10, we modified the panel size to improve aliasing of the preview.

Regards
Cameron

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 25 guests