summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-06-12 13:09:57 +0100
committerJacopo Mondi <jacopo@jmondi.org>2019-06-19 15:46:44 +0200
commit3a6c4bd146cc6647daf458bbc048bd861e702f62 (patch)
treefe44a23f524bd1d82b541985bddf83a275ae725a /src/libcamera/pipeline
parent20807a8c17e629b93d293ef0a0bdbd686ce84823 (diff)
libcamera: Rename V4L2Device to V4L2VideoDevice
In preparation of creating a new V4L2Device base class, rename V4L2Device to V4L2VideoDevice. This is a project wide rename without any intended functional change. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline')
-rw-r--r--src/libcamera/pipeline/ipu3/ipu3.cpp24
-rw-r--r--src/libcamera/pipeline/rkisp1/rkisp1.cpp6
-rw-r--r--src/libcamera/pipeline/uvcvideo.cpp6
-rw-r--r--src/libcamera/pipeline/vimc.cpp6
4 files changed, 21 insertions, 21 deletions
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index f2bdecba..1c0a9825 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -22,8 +22,8 @@
#include "media_device.h"
#include "pipeline_handler.h"
#include "utils.h"
-#include "v4l2_device.h"
#include "v4l2_subdevice.h"
+#include "v4l2_videodevice.h"
namespace libcamera {
@@ -39,7 +39,7 @@ public:
/* ImgU output descriptor: group data specific to an ImgU output. */
struct ImgUOutput {
- V4L2Device *dev;
+ V4L2VideoDevice *dev;
unsigned int pad;
std::string name;
BufferPool *pool;
@@ -85,7 +85,7 @@ public:
MediaDevice *media_;
V4L2Subdevice *imgu_;
- V4L2Device *input_;
+ V4L2VideoDevice *input_;
ImgUOutput output_;
ImgUOutput viewfinder_;
ImgUOutput stat_;
@@ -125,7 +125,7 @@ public:
static int mediaBusToFormat(unsigned int code);
- V4L2Device *output_;
+ V4L2VideoDevice *output_;
V4L2Subdevice *csi2_;
CameraSensor *sensor_;
@@ -943,7 +943,7 @@ void IPU3CameraData::cio2BufferReady(Buffer *buffer)
* Create and open the V4L2 devices and subdevices of the ImgU instance
* with \a index.
*
- * In case of errors the created V4L2Device and V4L2Subdevice instances
+ * In case of errors the created V4L2VideoDevice and V4L2Subdevice instances
* are destroyed at pipeline handler delete time.
*
* \return 0 on success or a negative error code otherwise
@@ -966,12 +966,12 @@ int ImgUDevice::init(MediaDevice *media, unsigned int index)
if (ret)
return ret;
- input_ = V4L2Device::fromEntityName(media, name_ + " input");
+ input_ = V4L2VideoDevice::fromEntityName(media, name_ + " input");
ret = input_->open();
if (ret)
return ret;
- output_.dev = V4L2Device::fromEntityName(media, name_ + " output");
+ output_.dev = V4L2VideoDevice::fromEntityName(media, name_ + " output");
ret = output_.dev->open();
if (ret)
return ret;
@@ -980,8 +980,8 @@ int ImgUDevice::init(MediaDevice *media, unsigned int index)
output_.name = "output";
output_.pool = &outPool_;
- viewfinder_.dev = V4L2Device::fromEntityName(media,
- name_ + " viewfinder");
+ viewfinder_.dev = V4L2VideoDevice::fromEntityName(media,
+ name_ + " viewfinder");
ret = viewfinder_.dev->open();
if (ret)
return ret;
@@ -990,7 +990,7 @@ int ImgUDevice::init(MediaDevice *media, unsigned int index)
viewfinder_.name = "viewfinder";
viewfinder_.pool = &vfPool_;
- stat_.dev = V4L2Device::fromEntityName(media, name_ + " 3a stat");
+ stat_.dev = V4L2VideoDevice::fromEntityName(media, name_ + " 3a stat");
ret = stat_.dev->open();
if (ret)
return ret;
@@ -1067,7 +1067,7 @@ int ImgUDevice::configureInput(const Size &size,
int ImgUDevice::configureOutput(ImgUOutput *output,
const StreamConfiguration &cfg)
{
- V4L2Device *dev = output->dev;
+ V4L2VideoDevice *dev = output->dev;
unsigned int pad = output->pad;
V4L2SubdeviceFormat imguFormat = {};
@@ -1337,7 +1337,7 @@ int CIO2Device::init(const MediaDevice *media, unsigned int index)
return ret;
std::string cio2Name = "ipu3-cio2 " + std::to_string(index);
- output_ = V4L2Device::fromEntityName(media, cio2Name);
+ output_ = V4L2VideoDevice::fromEntityName(media, cio2Name);
ret = output_->open();
if (ret)
return ret;
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
index 9b3eea2f..4a5898d2 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
@@ -23,8 +23,8 @@
#include "media_device.h"
#include "pipeline_handler.h"
#include "utils.h"
-#include "v4l2_device.h"
#include "v4l2_subdevice.h"
+#include "v4l2_videodevice.h"
namespace libcamera {
@@ -106,7 +106,7 @@ private:
MediaDevice *media_;
V4L2Subdevice *dphy_;
V4L2Subdevice *isp_;
- V4L2Device *video_;
+ V4L2VideoDevice *video_;
Camera *activeCamera_;
};
@@ -458,7 +458,7 @@ bool PipelineHandlerRkISP1::match(DeviceEnumerator *enumerator)
return false;
/* Locate and open the capture video node. */
- video_ = V4L2Device::fromEntityName(media_, "rkisp1_mainpath");
+ video_ = V4L2VideoDevice::fromEntityName(media_, "rkisp1_mainpath");
if (video_->open() < 0)
return false;
diff --git a/src/libcamera/pipeline/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo.cpp
index 7ca9d0ee..2e22523d 100644
--- a/src/libcamera/pipeline/uvcvideo.cpp
+++ b/src/libcamera/pipeline/uvcvideo.cpp
@@ -16,7 +16,7 @@
#include "media_device.h"
#include "pipeline_handler.h"
#include "utils.h"
-#include "v4l2_device.h"
+#include "v4l2_videodevice.h"
namespace libcamera {
@@ -37,7 +37,7 @@ public:
void bufferReady(Buffer *buffer);
- V4L2Device *video_;
+ V4L2VideoDevice *video_;
Stream stream_;
};
@@ -250,7 +250,7 @@ bool PipelineHandlerUVC::match(DeviceEnumerator *enumerator)
/* Locate and open the default video node. */
for (MediaEntity *entity : media->entities()) {
if (entity->flags() & MEDIA_ENT_FL_DEFAULT) {
- data->video_ = new V4L2Device(entity);
+ data->video_ = new V4L2VideoDevice(entity);
break;
}
}
diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp
index ad4577ac..68332136 100644
--- a/src/libcamera/pipeline/vimc.cpp
+++ b/src/libcamera/pipeline/vimc.cpp
@@ -20,7 +20,7 @@
#include "media_device.h"
#include "pipeline_handler.h"
#include "utils.h"
-#include "v4l2_device.h"
+#include "v4l2_videodevice.h"
namespace libcamera {
@@ -41,7 +41,7 @@ public:
void bufferReady(Buffer *buffer);
- V4L2Device *video_;
+ V4L2VideoDevice *video_;
Stream stream_;
};
@@ -262,7 +262,7 @@ bool PipelineHandlerVimc::match(DeviceEnumerator *enumerator)
std::unique_ptr<VimcCameraData> data = utils::make_unique<VimcCameraData>(this);
/* Locate and open the capture video node. */
- data->video_ = new V4L2Device(media->getEntityByName("Raw Capture 1"));
+ data->video_ = new V4L2VideoDevice(media->getEntityByName("Raw Capture 1"));
if (data->video_->open())
return false;