How to get a byteperpixel?

Hello,


How can I get a byteperpixel?

Thank you.

Hi,
You can check pixel_format in NvBufferParams to know byte per pixel. For example, if it is NvBufferColorFormat_NV12, byteperpixel is 1. If it is NvBufferColorFormat_NV12_10LE, byteperpixel is 2.

1 Like