summaryrefslogtreecommitdiff
path: root/src/android/yuv/post_processor_yuv.cpp
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2025-02-11 10:20:02 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2025-02-12 10:34:28 +0000
commitbea2db5e6190e008dec880f2cc02172115126007 (patch)
treea21e14f4ad3f45d0c7d196bb15f48e9ac747accf /src/android/yuv/post_processor_yuv.cpp
parentf63f4d71d4c917b62242cb9b7e06edae80d6c204 (diff)
ipa: rpi: Apply default ControlInfo values for sensor controls
The existing IPA initialisation code did not set default values for some sensor related controls. This caused a crash using libcamerify when the it was trying to access the default value for controls::FrameDurationLimits as part of a recent change. Ensure controls::FrameDurationLimits, controls::AnalogueGain and controls::ExposureTime advertise default values along with the existing min/max values. The default is set to the defaults defined in the IPA set during initialisation. Bug: https://bugs.libcamera.org/show_bug.cgi?id=253 Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/android/yuv/post_processor_yuv.cpp')
0 files changed, 0 insertions, 0 deletions
<libcamera/span.h> class CameraBuffer final : public libcamera::Extensible { LIBCAMERA_DECLARE_PRIVATE() public: CameraBuffer(buffer_handle_t camera3Buffer, int flags); ~CameraBuffer(); bool isValid() const; unsigned int numPlanes() const; libcamera::Span<const uint8_t> plane(unsigned int plane) const; libcamera::Span<uint8_t> plane(unsigned int plane); size_t jpegBufferSize(size_t maxJpegBufferSize) const; }; #define PUBLIC_CAMERA_BUFFER_IMPLEMENTATION \ CameraBuffer::CameraBuffer(buffer_handle_t camera3Buffer, int flags) \ : Extensible(new Private(this, camera3Buffer, flags)) \ { \ } \ CameraBuffer::~CameraBuffer() \ { \ } \ bool CameraBuffer::isValid() const \ { \ const Private *const d = LIBCAMERA_D_PTR(); \ return d->isValid(); \ } \ unsigned int CameraBuffer::numPlanes() const \ { \ const Private *const d = LIBCAMERA_D_PTR(); \ return d->numPlanes(); \ } \ Span<const uint8_t> CameraBuffer::plane(unsigned int plane) const \ { \ const Private *const d = LIBCAMERA_D_PTR(); \ return const_cast<Private *>(d)->plane(plane); \ } \ Span<uint8_t> CameraBuffer::plane(unsigned int plane) \ { \ Private *const d = LIBCAMERA_D_PTR(); \ return d->plane(plane); \ } \ size_t CameraBuffer::jpegBufferSize(size_t maxJpegBufferSize) const \ { \ const Private *const d = LIBCAMERA_D_PTR(); \ return d->jpegBufferSize(maxJpegBufferSize); \ } #endif /* __ANDROID_CAMERA_BUFFER_H__ */