[0/4] libcamera: vector: Add clamp() function
mbox series

Message ID 20260621002305.3763752-1-laurent.pinchart@ideasonboard.com
Headers show
Series
  • libcamera: vector: Add clamp() function
Related show

Message

Laurent Pinchart June 21, 2026, 12:23 a.m. UTC
Hello,

This series is the result of me being nerd-sniped by Kieran's addition
of a clamp() function to the Vector class. I thought we could possibly
extend the apply() helper functions to support more than a single
scalar. Here's the outcome.

Kieran Bingham (1):
  libcamera: vector: Add clamp() member function

Laurent Pinchart (3):
  libcamera: vector: Replace class with typename
  libcamera: vector: Swap order of arguments to apply()
  libcamera: vector: Support multiple scalar arguments to apply()

 include/libcamera/internal/vector.h | 73 ++++++++++++++++-------------
 src/libcamera/vector.cpp            |  8 ++++
 test/vector.cpp                     |  1 +
 3 files changed, 49 insertions(+), 33 deletions(-)


base-commit: bd266aa3405d3aea20b407b27e52482b02146030