libcamera: add camera rotation property on nodes

Like the location, the orientation is a static property of libcamera
devices. While the rotation is already exposed as buffer transform,
knowing the property can be handy for applications in various ways.

See also: cd8ac5c1a ("libcamera: add camera location property on nodes")
This commit is contained in:
Robert Mader 2024-03-31 13:21:19 +02:00
parent e2e8cf7944
commit bd5cc52c5c
2 changed files with 24 additions and 0 deletions

View file

@ -78,6 +78,8 @@ extern "C" {
* used in open() */
#define SPA_KEY_API_LIBCAMERA_LOCATION "api.libcamera.location" /**< location of the camera:
* "front", "back" or "external" */
#define SPA_KEY_API_LIBCAMERA_ROTATION "api.libcamera.rotation" /**< rotation of the camera:
* "0", "90", "180" or "270" */
/** info from libcamera_capability */
#define SPA_KEY_API_LIBCAMERA_CAP_DRIVER "api.libcamera.cap.driver" /**< driver from capbility */