public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [raw2rgbpnm PATCH v3 0/3] 10-bit packed raw support
@ 2026-02-18  8:34 Sakari Ailus
  2026-02-18  8:34 ` [raw2rgbpnm PATCH v3 1/3] Add explicit switch fallthrough notation Sakari Ailus
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Sakari Ailus @ 2026-02-18  8:34 UTC (permalink / raw)
  To: linux-media; +Cc: Jacopo Mondi, Mehdi Djait, Tomi Valkeinen, laurent.pinchart

Hi all,

These patches add support for 10-bit packed raw formats. Adding support
for more bit depths would be trivial (at least up to 16 bits) but I only
needed 10. :-)

The code could be prettier.

since v2:

- Drop bpc argument from raw_get() and raw_put(). The bpc argument wasn't
  really needed there as the functions don't operate on the values (but
  simply pack or unpack them).

- Use unsigned values where appropriate (i.e. make signed values
  unsigned).

since v1:

- Use __attribute__((fallthrough)) instead of a compiler flag.

- Better error message on what's wrong if a proper unpacked format isn't
  found when processing the newly supported packed 10-bit raw formats.

Sakari Ailus (3):
  Add explicit switch fallthrough notation
  Add compiler options to avoid warnings
  Add 10-bit CSI-2 packed format support

 Makefile     |  2 +-
 raw2rgbpnm.c | 90 +++++++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 87 insertions(+), 5 deletions(-)

-- 
2.47.3


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

end of thread, other threads:[~2026-02-18 21:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-18  8:34 [raw2rgbpnm PATCH v3 0/3] 10-bit packed raw support Sakari Ailus
2026-02-18  8:34 ` [raw2rgbpnm PATCH v3 1/3] Add explicit switch fallthrough notation Sakari Ailus
2026-02-18 10:26   ` Laurent Pinchart
2026-02-18 11:21     ` Sakari Ailus
2026-02-18 21:30       ` Laurent Pinchart
2026-02-18  8:34 ` [raw2rgbpnm PATCH v3 2/3] Add compiler options to avoid warnings Sakari Ailus
2026-02-18 10:27   ` Laurent Pinchart
2026-02-18 11:20     ` Sakari Ailus
2026-02-18  8:34 ` [raw2rgbpnm PATCH v3 3/3] Add 10-bit CSI-2 packed format support Sakari Ailus

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