diff options
-rw-r--r-- | meson_options.txt | 2 | ||||
-rw-r--r-- | src/libcamera/pipeline/vivid/meson.build | 5 | ||||
-rw-r--r-- | src/libcamera/pipeline/vivid/vivid.cpp | 79 |
3 files changed, 85 insertions, 1 deletions
diff --git a/meson_options.txt b/meson_options.txt index f1d67808..10c7f0ae 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -37,7 +37,7 @@ option('lc-compliance', option('pipelines', type : 'array', - choices : ['ipu3', 'raspberrypi', 'rkisp1', 'simple', 'uvcvideo', 'vimc'], + choices : ['ipu3', 'raspberrypi', 'rkisp1', 'simple', 'uvcvideo', 'vimc', 'vivid'], description : 'Select which pipeline handlers to include') option('qcam', diff --git a/src/libcamera/pipeline/vivid/meson.build b/src/libcamera/pipeline/vivid/meson.build new file mode 100644 index 00000000..086bb825 --- /dev/null +++ b/src/libcamera/pipeline/vivid/meson.build @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: CC0-1.0 + +libcamera_sources += files([ + 'vivid.cpp', +]) diff --git a/src/libcamera/pipeline/vivid/vivid.cpp b/src/libcamera/pipeline/vivid/vivid.cpp new file mode 100644 index 00000000..373df1d8 --- /dev/null +++ b/src/libcamera/pipeline/vivid/vivid.cpp @@ -0,0 +1,79 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2020, Google Inc. + * + * vivid.cpp - Pipeline handler for the vivid capture device + */ + +#include <libcamera/base/log.h> + +#include "libcamera/internal/pipeline_handler.h" + +namespace libcamera { + +LOG_DEFINE_CATEGORY(VIVID) + +class PipelineHandlerVivid : public PipelineHandler +{ +public: + PipelineHandlerVivid(CameraManager *manager); + + CameraConfiguration *generateConfiguration(Camera *camera, + const StreamRoles &roles) override; + int configure(Camera *camera, CameraConfiguration *config) override; + + int exportFrameBuffers(Camera *camera, Stream *stream, + std::vector<std::unique_ptr<FrameBuffer>> *buffers) override; + + int start(Camera *camera, const ControlList *controls) override; + void stopDevice(Camera *camera) override; + + int queueRequestDevice(Camera *camera, Request *request) override; + + bool match(DeviceEnumerator *enumerator) override; +}; + +PipelineHandlerVivid::PipelineHandlerVivid(CameraManager *manager) + : PipelineHandler(manager) +{ +} + +CameraConfiguration *PipelineHandlerVivid::generateConfiguration(Camera *camera, + const StreamRoles &roles) +{ + return nullptr; +} + +int PipelineHandlerVivid::configure(Camera *camera, CameraConfiguration *config) +{ + return -1; +} + +int PipelineHandlerVivid::exportFrameBuffers(Camera *camera, Stream *stream, + std::vector<std::unique_ptr<FrameBuffer>> *buffers) +{ + return -1; +} + +int PipelineHandlerVivid::start(Camera *camera, const ControlList *controls) +{ + return -1; +} + +void PipelineHandlerVivid::stopDevice(Camera *camera) +{ +} + +int PipelineHandlerVivid::queueRequestDevice(Camera *camera, Request *request) +{ + return -1; +} + +bool PipelineHandlerVivid::match(DeviceEnumerator *enumerator) +{ + return false; +} + +REGISTER_PIPELINE_HANDLER(PipelineHandlerVivid) + +} /* namespace libcamera */ |