summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Expand)Author
2020-07-06libcamera: camera: Allow unspecified roles for generateConfigurationKieran Bingham
2020-06-29libcamera: geometry: Add isNull() function to Size classLaurent Pinchart
2020-06-25libcamera: ipa: raspberrypi: Plumb in the libcamera sharpness controlDavid Plowman
2020-06-25libcamera: pixel_format: Replace hex with format namesKaaira Gupta
2020-06-18include: linux: Remove drm.h and drm_mode.hLaurent Pinchart
2020-06-18libcamera: Replace explicit DRM FourCCs with libcamera formatsLaurent Pinchart
2020-06-18libcamera: Define constants for pixel formats in the public APILaurent Pinchart
2020-06-17libcamera: camera_manager: Introduce signals when a camera is added or removedUmang Jain
2020-06-17libcamera: device_enumerator: Emit a signal when new devices are addedUmang Jain
2020-06-09libcamera: Add missing SPDX headers to miscellaneous small filesLaurent Pinchart
2020-06-09libcamera: CameraManager, PipelineHandler: Automatically map devnums to CameraPaul Elder
2020-06-08libcamera: IPAManager: remove instance() and make createIPA() staticPaul Elder
2020-06-08libcamera: IPAManager: make IPAManager lifetime explicitly managedPaul Elder
2020-06-06libcamera: pixel_format: Make PixelFormat usable as a constexprLaurent Pinchart
2020-06-06libcamera: Rename header guards for internal headersLaurent Pinchart
2020-06-06libcamera: Replace C++ comments with C commentsLaurent Pinchart
2020-06-06libcamera: Rename pixelformats.{cpp,h} to pixel_format.{cpp,h}Laurent Pinchart
2020-06-05libcamera: Mark logPrefix() implementations with overrideLaurent Pinchart
2020-06-02libcamera: Declare functions before variables in class definitionsLaurent Pinchart
2020-05-22libcamera: geometry: Set steps to 0 in default SizeRange constructorLaurent Pinchart
2020-05-21include: linux: Update v4l2 ctrls for propertiesJacopo Mondi
2020-05-19libcamera: file_descriptor: Implement move semantics for constructorLaurent Pinchart
2020-05-18meson: Rename variables storing headers listsLaurent Pinchart
2020-05-16libcamera: Move IPA headers from include/ipa/ to include/libcamera/ipa/Laurent Pinchart
2020-05-16libcamera: Move internal headers to include/libcamera/internal/Laurent Pinchart
2020-05-13licenses: License all meson files under CC0-1.0Laurent Pinchart
2020-05-12ipa: Drop v4l2_controls.h from ipa_interface.hLaurent Pinchart
2020-05-11libcamera: pipeline: Raspberry Pi pipeline handlerNaushir Patuck
2020-05-11include: uapi: Add header definitions for BCM2835 Unicam and ISP blocksNaushir Patuck
2020-05-10include: linux: Extend VIDIOC_ENUM_FMT to support MC-centric devicesLaurent Pinchart
2020-05-01libcamera: stream: Expose stride valueNiklas Söderlund
2020-04-28libcamera: ipa: Add support for CameraSensorInfoJacopo Mondi
2020-04-28libcamera: controls: Add rectangle and size control typesLaurent Pinchart
2020-04-28ipa: Pass IPA initialization settings to IPAInterface::init()Laurent Pinchart
2020-04-26libcamera: geometry: Rename Rectangle fieldsJacopo Mondi
2020-04-14libcamera: ipa: Remove IPAModuleInfo license fieldLaurent Pinchart
2020-04-14ipa: Add start() and stop() operationsNiklas Söderlund
2020-04-04libcamera: pixelformats: Replace set of modifiers with single valueKaaira Gupta
2020-03-27libcamera: FrameBuffer: Add a setRequest() interfaceNiklas Söderlund
2020-03-27libcamera: FrameBuffer: Add a method to copy buffer contentNiklas Söderlund
2020-03-27include: drm_fourcc: Add Bayer FourCC and modifiersNiklas Söderlund
2020-03-27libcamera: stream: Add StillCaptureRaw roleNiklas Söderlund
2020-03-23libcamera: controls: Add zero-copy set API for ControlValueLaurent Pinchart
2020-03-20libcamera: controls: Don't over-optimize ControlValue layoutLaurent Pinchart
2020-03-20libcamera: controls: Move ControlValue size check to controls.cppLaurent Pinchart
2020-03-20libcamera: controls: Add support for string controlsLaurent Pinchart
2020-03-20libcamera: controls: Rename ControlRange to ControlInfoLaurent Pinchart
2020-03-20libcamera: controls: Name all ControlInfoMap instance variables infoMapLaurent Pinchart
2020-03-19libcamera: geometry: Construct SizeRange from SizeLaurent Pinchart
2020-03-18libcamera: framebuffer_allocator: Lift camera restrictions on allocatorLaurent Pinchart
l opt">(unsigned int i = 0; i < numPlanes; ++i) { const unsigned int planeSize = info.planeSize(size, i); planeInfo_[i].stride = info.stride(size.width, i, 1u); planeInfo_[i].offset = offset; planeInfo_[i].size = planeSize; if (bufferLength_ < offset + planeSize) { LOG(HAL, Error) << "Plane " << i << " is out of buffer:" << " plane offset=" << offset << ", plane size=" << planeSize << ", buffer length=" << bufferLength_; return; } offset += planeSize; } } CameraBuffer::Private::~Private() { } unsigned int CameraBuffer::Private::numPlanes() const { return planeInfo_.size(); } Span<uint8_t> CameraBuffer::Private::plane(unsigned int plane) { if (!mapped_) map(); if (!mapped_) return {}; return planes_[plane]; } unsigned int CameraBuffer::Private::stride(unsigned int plane) const { if (plane >= planeInfo_.size()) return 0; return planeInfo_[plane].stride; } unsigned int CameraBuffer::Private::offset(unsigned int plane) const { if (plane >= planeInfo_.size()) return 0; return planeInfo_[plane].offset; } unsigned int CameraBuffer::Private::size(unsigned int plane) const { if (plane >= planeInfo_.size()) return 0; return planeInfo_[plane].size; } size_t CameraBuffer::Private::jpegBufferSize(size_t maxJpegBufferSize) const { ASSERT(bufferLength_ >= 0); return std::min<unsigned int>(bufferLength_, maxJpegBufferSize); } void CameraBuffer::Private::map() { ASSERT(fd_ != -1); ASSERT(bufferLength_ >= 0); void *address = mmap(nullptr, bufferLength_, flags_, MAP_SHARED, fd_, 0); if (address == MAP_FAILED) { error_ = -errno;