Files
salmanoff/commonLibs/lcameraDev/planarYuvFormatPolicy.h
T
hayodea 3e85b920fb LCamDev: implement configureSessionModeCReq
We can, theoretically, now change the v4l camera's mode.
2026-06-13 20:56:33 -04:00

27 lines
741 B
C++

#ifndef LCAMERA_DEV_PLANAR_YUV_FORMAT_POLICY_H
#define LCAMERA_DEV_PLANAR_YUV_FORMAT_POLICY_H
#include <libcamera/pixel_format.h>
#include <optional>
#include <vector>
namespace lcamera_dev {
bool isFullyPlanarYuv(const libcamera::PixelFormat& pixelFormat);
bool isKnownYuvCaptureFormat(const libcamera::PixelFormat& pixelFormat);
unsigned yuvCapturePlaneCount(const libcamera::PixelFormat& pixelFormat);
std::optional<libcamera::PixelFormat>
selectYuvCaptureFormat(
const std::vector<libcamera::PixelFormat>& candidates,
bool fullPlanarIsOptional);
std::string formatCandidateListForDiagnostics(
const std::vector<libcamera::PixelFormat>& candidates);
} // namespace lcamera_dev
#endif // LCAMERA_DEV_PLANAR_YUV_FORMAT_POLICY_H