[libcamera-devel,0/3] cam: Support KMS scaling
mbox series

Message ID 20220807180100.396-1-laurent.pinchart@ideasonboard.com
Headers show
Series
  • cam: Support KMS scaling
Related show

Message

Laurent Pinchart Aug. 7, 2022, 6 p.m. UTC
Hello,

This patch series improves the KMS sink in cam to scale the frame buffer
to full screen when supported by the hardware, and to center the image
instead of aligning it to the top-left corner otherwise.

The series has been tested on a RockPi 4 board.

Please see individual patches for details.

Laurent Pinchart (3):
  cam: drm: Add support for test-only commits
  cam: kms_sink: Make lifetime management of DRM request safer
  cam: kms_sink: Scale the frame buffer to full screen if supported

 src/cam/drm.cpp      |  2 +
 src/cam/drm.h        |  1 +
 src/cam/kms_sink.cpp | 99 +++++++++++++++++++++++++++++++++++++++-----
 src/cam/kms_sink.h   | 13 +++++-
 4 files changed, 102 insertions(+), 13 deletions(-)


base-commit: 26c82ce13697e1af5950f4935ecff83c6453f351

Comments

Kieran Bingham Aug. 8, 2022, 10:33 p.m. UTC | #1
Quoting Laurent Pinchart via libcamera-devel (2022-08-07 19:00:57)
> Hello,
> 
> This patch series improves the KMS sink in cam to scale the frame buffer
> to full screen when supported by the hardware, and to center the image
> instead of aligning it to the top-left corner otherwise.
> 
> The series has been tested on a RockPi 4 board.

And an IPU3 SGo2:

Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> 
> Please see individual patches for details.
> 
> Laurent Pinchart (3):
>   cam: drm: Add support for test-only commits
>   cam: kms_sink: Make lifetime management of DRM request safer
>   cam: kms_sink: Scale the frame buffer to full screen if supported
> 
>  src/cam/drm.cpp      |  2 +
>  src/cam/drm.h        |  1 +
>  src/cam/kms_sink.cpp | 99 +++++++++++++++++++++++++++++++++++++++-----
>  src/cam/kms_sink.h   | 13 +++++-
>  4 files changed, 102 insertions(+), 13 deletions(-)
> 
> 
> base-commit: 26c82ce13697e1af5950f4935ecff83c6453f351
> -- 
> Regards,
> 
> Laurent Pinchart
>