How to change alpha value in NvBufSurface with NVBUF_COLOR_FORMAT_RGBA format?

Hi, I want to change the alpha value in NvBufSurface with NVBUF_COLOR_FORMAT_RGBA format. How can I do that ? Thanks for reply!

Hi,
You can call NvBufSurfTransformCompositeBlend() to apply single alpha value to whole NvBufSurface. If you would like to apply different value to each pixel, would need to implement CUDA code to apply alpha effect pixel by pixel.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.