How can I obtain raw image datas in deepstream-app sample?

I’m not asking you to add the dsexample plugin, just refer to the source code it uses to process the buffers. We have many similar examples for this, like 142683 etc…