summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2023-07-25 09:55:39 +0100
committerNaushir Patuck <naush@raspberrypi.com>2023-09-04 10:45:22 +0100
commit74af791304822a8884398f4441ec9ef80cf76cb3 (patch)
treef02f23b515143f35037769eedf89e007d96248cc /src
parente8582ee42eff1ec8dc75aa4e233ebb3dcda292ee (diff)
pipeline: rpi: Rename RPi::Stream::setExternalBuffer()
Since we don't distinguish between externally and internally allocated dma bufs, rename this function to setExportedBuffer() to clearer on its function. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/pipeline/rpi/common/pipeline_base.cpp2
-rw-r--r--src/libcamera/pipeline/rpi/common/rpi_stream.cpp2
-rw-r--r--src/libcamera/pipeline/rpi/common/rpi_stream.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libcamera/pipeline/rpi/common/pipeline_base.cpp b/src/libcamera/pipeline/rpi/common/pipeline_base.cpp
index 1dfd4677..51fa1bbf 100644
--- a/src/libcamera/pipeline/rpi/common/pipeline_base.cpp
+++ b/src/libcamera/pipeline/rpi/common/pipeline_base.cpp
@@ -695,7 +695,7 @@ int PipelineHandlerBase::queueRequestDevice(Camera *camera, Request *request)
* outside the v4l2 device. Store it in the stream buffer list
* so we can track it.
*/
- stream->setExternalBuffer(buffer);
+ stream->setExportedBuffer(buffer);
}
/*
diff --git a/src/libcamera/pipeline/rpi/common/rpi_stream.cpp b/src/libcamera/pipeline/rpi/common/rpi_stream.cpp
index 14dd6351..e4506dee 100644
--- a/src/libcamera/pipeline/rpi/common/rpi_stream.cpp
+++ b/src/libcamera/pipeline/rpi/common/rpi_stream.cpp
@@ -79,7 +79,7 @@ unsigned int Stream::getBufferId(FrameBuffer *buffer) const
return it->first;
}
-void Stream::setExternalBuffer(FrameBuffer *buffer)
+void Stream::setExportedBuffer(FrameBuffer *buffer)
{
bufferMap_.emplace(id_.get(), buffer);
}
diff --git a/src/libcamera/pipeline/rpi/common/rpi_stream.h b/src/libcamera/pipeline/rpi/common/rpi_stream.h
index ca591f99..d1289c46 100644
--- a/src/libcamera/pipeline/rpi/common/rpi_stream.h
+++ b/src/libcamera/pipeline/rpi/common/rpi_stream.h
@@ -76,7 +76,7 @@ public:
const BufferMap &getBuffers() const;
unsigned int getBufferId(FrameBuffer *buffer) const;
- void setExternalBuffer(FrameBuffer *buffer);
+ void setExportedBuffer(FrameBuffer *buffer);
int prepareBuffers(unsigned int count);
int queueBuffer(FrameBuffer *buffer);