Using npp to convert i420 to bgr, the result is quite different from the original image

hi, i use npp‘s api “nppiYUV420ToBGR_8u_P3C3R” to convert i420 to bgr, the result is quite different from the original image.

Is this problem because this interface does not use full range (0~255) ?

opencv reslut partial screenshot:
image
n’pp reslut partial screenshot:
image

It may be. There are various YUV conversion routines in NPP, and some of them have different scaling ranges. You can find various forum threads that discuss this.