# The difference between NvBufferLayout\_Pitch and NvBufferLayout\_BlockLinear

**URL:** <https://forums.developer.nvidia.com/t/the-difference-between-nvbufferlayout-pitch-and-nvbufferlayout-blocklinear/145779>\
**Category:** Jetson Nano\
**Tags:** mmapi\
**Created:** [August 7, 2020, 2:36am UTC](https://forums.developer.nvidia.com/t/the-difference-between-nvbufferlayout-pitch-and-nvbufferlayout-blocklinear/145779 "2020-08-07T02:36:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackSUY](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jacksuy/32/78098_2.png) [@JackSUY](https://forums.developer.nvidia.com/u/JackSUY)\
**Post date:** [August 7, 2020, 2:36am UTC](https://forums.developer.nvidia.com/t/the-difference-between-nvbufferlayout-pitch-and-nvbufferlayout-blocklinear/145779/1 "2020-08-07T02:36:26Z")

</div>

Hello！

On the basis of 14\_multivideo\_decode.  
I want to use the dump\_dmabuf() function to write DMA(BlockLinear) buffer to file, this is a failure.

How to solve this problem? What is the format of Layout\_BlockLinear.

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [August 7, 2020, 3:39am UTC](https://forums.developer.nvidia.com/t/the-difference-between-nvbufferlayout-pitch-and-nvbufferlayout-blocklinear/145779/3 "2020-08-07T03:39:23Z")

</div>

Hi,  
Please convert the buffer to pitch linear format and then call _dump\_dmabuf()_. Block linear format is for internal usage.

---

<div class="post-metadata">

**Author:** ![JackSUY](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jacksuy/32/78098_2.png) [@JackSUY](https://forums.developer.nvidia.com/u/JackSUY)\
**Post date:** [August 7, 2020, 3:44am UTC](https://forums.developer.nvidia.com/t/the-difference-between-nvbufferlayout-pitch-and-nvbufferlayout-blocklinear/145779/4 "2020-08-07T03:44:23Z")

</div>

Ok, thank you！

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 5:35pm UTC](https://forums.developer.nvidia.com/t/the-difference-between-nvbufferlayout-pitch-and-nvbufferlayout-blocklinear/145779/6 "2021-10-18T17:35:36Z")

</div>


