BRAW SDK 1.1 : using GetClipProcessingAttributeList ?

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

antoine

  • Posts: 16
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

BRAW SDK 1.1 : using GetClipProcessingAttributeList ?

PostSat Feb 09, 2019 6:01 am

Hello,

The 1.1 update to the Blackmagic RAW SDK doesn't contain any example of how to use some new functions the update brought. For example GetClipProcessingAttributeList : it seems that the third argument (/* [out] */ VARIANT *array) is not returning a list but a BSTR alone :? , see this code :

Code: Select all
VARIANT value;
unsigned int length = 0;
HRESULT res = constants->GetClipProcessingAttributeList(
         L"Blackmagic URSA Mini Pro 4.6K",
         blackmagicRawClipProcessingAttributeGamut, // BSTR according to the documentation
         &value,
         &length
      );
// now length = 7
// res = S_OK
// value.vt = 8 = VT_BSTR
// value.bstrVal = L"Blackmagic Design"
// unable to read memory value.pbstrVal...

Any idea ?

Thanks in avance
Offline

CaptainHook

Blackmagic Design

  • Posts: 1442
  • Joined: Wed Aug 22, 2012 4:50 am
  • Location: Melbourne, Australia

Re: BRAW SDK 1.1 : using GetClipProcessingAttributeList ?

PostWed Feb 13, 2019 2:05 am

Hi, you want to pass an array, using your code as example:
Code: Select all
std::vector<VARIANT> value;
uint32_t length;

HRESULT res = constants->GetClipProcessingAttributeList(
         "Blackmagic URSA Mini Pro 4.6K",
         blackmagicRawClipProcessingAttributeGamut,
         &value,
         &length
      );
http://www.captainhook.co.nz/blackmagic-cinema-camera-lut/

**Any post by me prior to Aug 2014 was before i started working for Blackmagic**

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 1 guest