Other Parts Discussed in Thread: AM62P
Tool/software:
As the title says, when executing the VIDEO branch of the kmscube use case, the output gstbuf from the decoder module may not be a dma buf. To reproduce this, add the following print statement to the buffer_to_image function in gst-decoder.c, then execute the VIDEO branch of kmscube on the development board, and observe the print output to determine the status of the gst buf.
if (is_dmabuf_mem) {
dmabuf_fd = dup(gst_dmabuf_memory_get_fd(mem));
printf("is dmabuf\n");
} else {
GstMapInfo map_info;
gst_buffer_map(buf, &map_info, GST_MAP_READ);
dmabuf_fd = buf_to_fd(dec->gbm, map_info.size, map_info.data);
gst_buffer_unmap(buf, &map_info);
printf("not dmabuf\n");
}