# Populating NvBuvSurface from cv::Mat in Jetson

**URL:** <https://forums.developer.nvidia.com/t/populating-nvbuvsurface-from-cv-mat-in-jetson/267962>\
**Category:** DeepStream SDK\
**Created:** [September 29, 2023, 7:09am UTC](https://forums.developer.nvidia.com/t/populating-nvbuvsurface-from-cv-mat-in-jetson/267962 "2023-09-29T07:09:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [October 8, 2023, 8:26am UTC](https://forums.developer.nvidia.com/t/populating-nvbuvsurface-from-cv-mat-in-jetson/267962/3 "2023-10-08T08:26:52Z")

</div>

**There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks**

Please check the “memType” in NvBufSurface. [NVIDIA DeepStream SDK API Reference: NvBufSurface Struct Reference | NVIDIA Docs](https://docs.nvidia.com/metropolis/deepstream/dev-guide/sdk-api/structNvBufSurface.html)

Please check the “pitch” of [NVIDIA DeepStream SDK API Reference: NvBufSurfaceParams Struct Reference | NVIDIA Docs](https://docs.nvidia.com/metropolis/deepstream/dev-guide/sdk-api/structNvBufSurfaceParams.html)

There is a sample of get the read/write buffer from NvBufSurface. [DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums](https://forums.developer.nvidia.com/t/deepstream-sdk-faq/80236/17). It is a little complicated for Jetson.

---

_[View the full topic](https://forums.developer.nvidia.com/t/populating-nvbuvsurface-from-cv-mat-in-jetson/267962)._
