Working with npp libraries cpu mat

If I want to process frames taken from camera using npp library how can I convert the frame in cpu mat to npp type ?