This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l2-tracer: trace: serialize all mplane planes
Author:  yehudis9982 <[email protected]>
Date:    Wed Feb 25 14:00:48 2026 +0200

For V4L2_BUF_TYPE_*_MPLANE buffers, trace_v4l2_buffer() only serialized the 
first plane.
Serialize all planes by iterating over buf->length and appending each entry to 
m.planes in the JSON trace output.

Signed-off-by: yehudis9982 <[email protected]>
Acked-by: Nicolas Dufresne <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>

 utils/v4l2-tracer/trace.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=490efe8d658fac3b145bf74ebadd70ef65de9f03
diff --git a/utils/v4l2-tracer/trace.cpp b/utils/v4l2-tracer/trace.cpp
index 996fb043c284..8e9039ef9f8e 100644
--- a/utils/v4l2-tracer/trace.cpp
+++ b/utils/v4l2-tracer/trace.cpp
@@ -252,8 +252,8 @@ void trace_v4l2_buffer(void *arg, json_object *ioctl_args)
        if (buf->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE ||
            buf->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) {
                json_object *planes_obj = json_object_new_array();
-               /* TODO add planes > 0 */
-               json_object_array_add(planes_obj, 
trace_v4l2_plane(buf->m.planes, buf->memory));
+               for (__u32 i = 0; i < buf->length; i++)
+                       json_object_array_add(planes_obj, 
trace_v4l2_plane(&buf->m.planes[i], buf->memory));
                json_object_object_add(m_obj, "planes", planes_obj);
        }
 
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to