summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/vimc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/pipeline/vimc.cpp')
-rw-r--r--src/libcamera/pipeline/vimc.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp
index f6aa3268..ed5b1ad4 100644
--- a/src/libcamera/pipeline/vimc.cpp
+++ b/src/libcamera/pipeline/vimc.cpp
@@ -20,6 +20,25 @@ namespace libcamera {
LOG_DEFINE_CATEGORY(VIMC)
+class VimcCameraData : public CameraData
+{
+public:
+ VimcCameraData(PipelineHandler *pipe)
+ : CameraData(pipe)
+ {
+ }
+
+ ~VimcCameraData()
+ {
+ delete video_;
+ }
+
+ void bufferReady(Buffer *buffer);
+
+ V4L2Device *video_;
+ Stream stream_;
+};
+
class PipelineHandlerVimc : public PipelineHandler
{
public:
@@ -42,25 +61,6 @@ public:
bool match(DeviceEnumerator *enumerator) override;
private:
- class VimcCameraData : public CameraData
- {
- public:
- VimcCameraData(PipelineHandler *pipe)
- : CameraData(pipe)
- {
- }
-
- ~VimcCameraData()
- {
- delete video_;
- }
-
- void bufferReady(Buffer *buffer);
-
- V4L2Device *video_;
- Stream stream_;
- };
-
VimcCameraData *cameraData(const Camera *camera)
{
return static_cast<VimcCameraData *>(
@@ -202,7 +202,7 @@ bool PipelineHandlerVimc::match(DeviceEnumerator *enumerator)
return true;
}
-void PipelineHandlerVimc::VimcCameraData::bufferReady(Buffer *buffer)
+void VimcCameraData::bufferReady(Buffer *buffer)
{
Request *request = queuedRequests_.front();