Skip to content

Replacing min() and max() for DCTL #27

Answered by J-i-P-i
nmbr73 asked this question in Q&A
Discussion options

You must be logged in to vote

The origin is in the Readme from Blackmagic in (Partion): \ ProgramData \ Blackmagic Design \ DaVinci Resolve \ Support \ Developer \ DaVinciCTL \ README.txt

All mathematical functions and their "appearance" are given there.
I have to admit, I have done this conversion very "blindly" so far, but have also seen that e.g. the function clamp () works without modification.

I have now specifically examined the max () in Cuda:

  • with float you can use max (float)

  • if more dimensions are added, the _fmaxf () is required for Cuda, which was not so clear to me until now. It still has to be tested whether OpenCL is also supported for _fmaxf float2 to float4.

Now, I tested max() in OpenCL and the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nmbr73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants