public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4l-utils 0/2] v4l2-tracer: fix expected frame length calculation
@ 2026-03-16 13:22 Sarah Gershuni
  2026-03-16 13:22 ` [PATCH v4l-utils 1/2] add plane_bytesperline to trace_context Sarah Gershuni
  2026-03-16 13:22 ` [PATCH v4l-utils 2/2] calculate expected length using v4l2-fwht info Sarah Gershuni
  0 siblings, 2 replies; 4+ messages in thread
From: Sarah Gershuni @ 2026-03-16 13:22 UTC (permalink / raw)
  To: linux-media; +Cc: Sarah Gershuni


This series fixes the calculation of expected frame lengths in v4l2-tracer. 
Previously, the calculation assumed that the stride equals the width and that chroma 
padding follows the end of the plane, which could result in incorrect lengths.

Patch 1/2: add plane_bytesperline to trace_context
- Introduces `plane_bytesperline` to store the stride of each plane, providing the 
  necessary data to compute accurate frame lengths.

Patch 2/2: calculate expected length using v4l2-fwht info
- Computes the frame length per plane correctly, fixing previous inaccuracies.

Together, these patches ensure that v4l2-tracer calculates expected frame lengths 
accurately for all supported pixel formats.

Signed-off-by: Sarah Gershuni <sarah556726@gmail.com>


Sarah Gershuni (2):
  add plane_bytesperline to trace_context
  calculate expected length using v4l2-fwht info

 utils/v4l2-tracer/trace-helper.cpp | 55 ++++++++++++++++++++++--------
 utils/v4l2-tracer/trace.h          |  1 +
 2 files changed, 42 insertions(+), 14 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-17 12:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 13:22 [PATCH v4l-utils 0/2] v4l2-tracer: fix expected frame length calculation Sarah Gershuni
2026-03-16 13:22 ` [PATCH v4l-utils 1/2] add plane_bytesperline to trace_context Sarah Gershuni
2026-03-16 13:22 ` [PATCH v4l-utils 2/2] calculate expected length using v4l2-fwht info Sarah Gershuni
2026-03-17 12:10   ` Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox