Is it possible that write a subclass of the IDeckLinkMutable

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

windragon0419

  • Posts: 1
  • Joined: Mon Mar 28, 2022 8:51 am
  • Real Name: Degang

Is it possible that write a subclass of the IDeckLinkMutable

PostMon Mar 28, 2022 9:07 am

Hi,
For some reason, I want to output a VideoFrame that contain both HDR and TimeCode, I check the SDK document, it seems that the HDR should implements the IDeckLinkVideoFrame and IDeckLinkVideoFrameMetadataExtensions interface, and the TimeCode should use IDeckLinkMutableVideoFrame which created by IDeckLinkOutput::CreateVideoFrame.
May be I made some mistake, so, what shall I do ?
Best Regards
Degang.Wu
Offline

Cameron Nichols

Blackmagic Design

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

Re: Is it possible that write a subclass of the IDeckLinkMut

PostTue Mar 29, 2022 4:06 am

Hi Degang,

Yes it is possible to subclass IDeckLinkMutableVideoFrame, similar to subclassing IDeckLinkVideoFrame, but in addition implement the following methods:
  • SetFlags
  • SetTimecode
  • SetTimecodeFromComponents
  • SetAncillaryData
  • SetTimecodeUserBits
These methods can simply call the underlying IDeckLinkMutableVideoFrame object. You can then attach the timecode by calling either SetTimecode or SetTimecodeFromComponenents.

You will find an example of subclassing IDeckLinkMutableVideoFrame in the SignalGenerator3DVideoFrame class in the SignalGenerator SDK sample.

Regards
Cameron
Offline

Peter Chamberlain

Blackmagic Design

  • Posts: 13875
  • Joined: Wed Aug 22, 2012 7:08 am

Re: Is it possible that write a subclass of the IDeckLinkMut

PostThu Apr 21, 2022 5:31 am

Please contact Tony, details at the top of this sub forum, and submit your full name for registration so we can approve your future posts.
DaVinci Resolve Product Manager

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 23 guests