Black Magic SDK: Exception within

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

bm_okx

  • Posts: 1
  • Joined: Thu Jan 17, 2013 11:04 am

Black Magic SDK: Exception within

PostThu Jan 17, 2013 12:23 pm

Hello,

I have modified the OpenGLOutput Sample (Windows) in order to output 3D over HDMI. Following the instructions, I have create a class (VideoFrame3D), which implements the interfaces IDeckLinkVideoFrame and public IDeckLinkVideoFrame3DExtensions.
QueryInterface casts the void pointer to (IDeckLinkVideoFrame3DExtensions *) and returns this pointer. (Thunk is used correctly)

Unfortunately, the programs throws an exception within the third call to ScheduleVideoFrame.
Can you please provide a working sample, which does 3D output over HDMI?


Detailed description:

1. new VideoFrame3D()
2. AddRef() // Refs: 1
3. Call ScheduleVideoFrame
a. QueryInterface // My own implementation calls AddRef within: Refs: 2
b. Get3DPackingFormat
c. AddRef // Refs: 3
d. GetFrameForRightEye
e. Release // Refs: 2
f. Release // Refs:1 If I would not hold a reference in step 2 here,
the destructor would be called. Is this an SDK error here?
g. AddRef // Refs:2
h. Leaving ScheduleVideoFrame
4. Call ScheduleVideoFrame
a. QueryInterface //Refs: 3
b. Get3DPackingFormat
c. AddRef // Refs: 4
d. GetFrameForRightEye
e. Release // Refs: 3
f. Release // Refs:2
g. AddRef // Refs:3
h. Leaving ScheduleVideoFrame
5. Call ScheduleVideoFrame
a. QueryInterface //Refs: 4
b. Get3DPackingFormat
c. AddRef // Refs: 5
d. GetFrameForRightEye
Exception

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 5 guests