summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/rkisp1/rkisp1_path.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-09-25 00:40:23 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-09-30 14:24:42 +0200
commit66c1aae8f485606e85efaa5ed73463b6d824dcc9 (patch)
tree56dd1c2f92e78be1cc8eb369ddf72aca7fb83497 /src/libcamera/pipeline/rkisp1/rkisp1_path.h
parent038e2fd66cd07354e2527e7e9aecd8a849f08799 (diff)
libcamera: pipeline: rkisp1: Move path link handling to RkISP1Path
Move the path link handling to RkISP1Path, there is no functional change. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/rkisp1/rkisp1_path.h')
-rw-r--r--src/libcamera/pipeline/rkisp1/rkisp1_path.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1_path.h b/src/libcamera/pipeline/rkisp1/rkisp1_path.h
index e2eb1be9..98863a2e 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1_path.h
+++ b/src/libcamera/pipeline/rkisp1/rkisp1_path.h
@@ -15,6 +15,7 @@
#include <libcamera/signal.h>
#include <libcamera/span.h>
+#include "libcamera/internal/media_object.h"
#include "libcamera/internal/v4l2_videodevice.h"
namespace libcamera {
@@ -33,6 +34,8 @@ public:
bool init(MediaDevice *media);
+ int setEnabled(bool enable) { return link_->setEnabled(enable); }
+
StreamConfiguration generateConfiguration(const Size &resolution);
CameraConfiguration::Status validate(StreamConfiguration *cfg);
@@ -63,6 +66,7 @@ private:
V4L2Subdevice *resizer_;
V4L2VideoDevice *video_;
+ MediaLink *link_;
};
class RkISP1MainPath : public RkISP1Path