Skip to content

Commit 43b2a69

Browse files
committed
fix: use pitch layout in libargus for cpu use-case
1 parent 2cadb6c commit 43b2a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/capturer/libargus_buffer_capturer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void LibargusBufferCapturer::RunProducer() {
136136

137137
for (uint32_t i = 0; i < buffer_count_; i++) {
138138
native_buffers_[i] =
139-
DmaBuffer::create(stream_size_, NVBUF_COLOR_FORMAT_NV12, NVBUF_LAYOUT_BLOCK_LINEAR);
139+
DmaBuffer::create(stream_size_, NVBUF_COLOR_FORMAT_NV12, NVBUF_LAYOUT_PITCH);
140140
if (!native_buffers_[i]) {
141141
ERROR_PRINT("Failed to allocate NativeBuffer");
142142
}

0 commit comments

Comments
 (0)