summaryrefslogtreecommitdiff
path: root/include/linux/drm.h
AgeCommit message (Collapse)Author
2019-10-28include: linux: Import DRM/KMS headers from Linux v5.2Jacopo Mondi
Import DRM/KMS header files from Linux kernel v5.2. The DRM headers are used to prepare to use the DRM-defined pixel formats (DRM_FORMAT_*) in place of the currently used V4L2 pixel formats (V4L2_PIX_FMT_*). Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
h - libcamera camera test helper to create FrameBuffers */ #ifndef __LIBCAMERA_BUFFER_SOURCE_TEST_H__ #define __LIBCAMERA_BUFFER_SOURCE_TEST_H__ #include <libcamera/libcamera.h> #include "libcamera/internal/media_device.h" #include "libcamera/internal/v4l2_videodevice.h" using namespace libcamera; class BufferSource { public: BufferSource(); ~BufferSource(); int allocate(const StreamConfiguration &config); const std::vector<std::unique_ptr<FrameBuffer>> &buffers(); private: std::shared_ptr<MediaDevice> media_; std::vector<std::unique_ptr<FrameBuffer>> buffers_; }; #endif /* __LIBCAMERA_BUFFER_SOURCE_TEST_H__ */