[v5,0/3] virtual: Support more common pixel formats
mbox series

Message ID 20261019224902.177382-1-robert.mader@collabora.com
Headers show
Series
  • virtual: Support more common pixel formats
Related show

Message

Robert Mader Oct. 19, 2026, 10:48 p.m. UTC
A small list of patches originally developed for testing the webrtc patch at
https://webrtc-review.googlesource.com/c/src/+/491680

I found them so useful that I cleaned them up and would like to see them
upstream.

---

Changes in v5:
 - Various style improvements (Laurent)
 - Split out stride helper patch (Laurent)

Changes in v4:
 - Fixed R<->B swap in ImageFrameGenerator (NV12ToARGB -> NV12ToABGR)
 - Added tags

Changes in v3:
 - Dropped stride-related patches. The last patch requires further work
   to figure out how to best deal with
   https://gitlab.freedesktop.org/camera/libcamera/-/work_items/360
   and the other one doesn't make much sense on its own. Thus defer those
   patches to their own series.
 - Added tag

Changes in v2:
 - Applied tag
 - Applied various suggestions by Barnabás

Robert Mader (3):
  virtual: Fill alpha channels
  virtual: Use stride helper for final buffer copy
  virtual: Support more common pixel formats

 .../pipeline/virtual/frame_generator.h        |  3 +-
 .../virtual/image_frame_generator.cpp         | 62 ++++++++++++++++---
 .../pipeline/virtual/image_frame_generator.h  |  2 +-
 .../virtual/test_pattern_generator.cpp        | 55 +++++++++++++---
 .../pipeline/virtual/test_pattern_generator.h |  2 +-
 src/libcamera/pipeline/virtual/virtual.cpp    | 45 +++++++++++---
 6 files changed, 141 insertions(+), 28 deletions(-)