Kaaira Gupta
6b32eebf86
libcamera: pixel_format: Add a function to return format based on string
...
Add a function which retrieves pixel format corresponding to its name
from PixelFormatInfo.
Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in >
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com >
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com >
2020-08-03 11:48:47 +01:00
Laurent Pinchart
8b7e073e6e
libcamera: Replace explicit DRM FourCCs with libcamera formats
...
Use the new pixel format constants to replace usage of macros from
drm_fourcc.h.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com >
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se >
2020-06-18 13:26:58 +03:00
Laurent Pinchart
79f9625607
libcamera: pixel_format: Make PixelFormat usable as a constexpr
...
The PixelFormat class is a lightweight wrapper around a 32-bit FourCC
and a 64-bit modifier. Make is usable as a constexpr.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com >
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se >
2020-06-06 00:25:04 +03:00
Laurent Pinchart
08a75925d8
libcamera: Rename pixelformats.{cpp,h} to pixel_format.{cpp,h}
...
The libcamera source files are named after class names, using
snake_case. pixelformats.h and pixelformats.cpp don't comply with that
rule. Fix them.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se >
2020-06-06 00:25:04 +03:00