summaryrefslogtreecommitdiff
path: root/src/v4l2/v4l2_camera.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-01-09 14:26:59 +0100
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-01-12 16:10:37 +0100
commit35ac23dca19ea31f17a526679a697e3e327e6af1 (patch)
treec5375ed13fdbe34a237046b371c3094a7aaf6a04 /src/v4l2/v4l2_camera.h
parent5f316d0035b5481c3e1e637362c11649b5bba819 (diff)
v4l2: Rename FrameMetadata to V4L2FrameMetadata
With the upcoming FrameBuffer API a new library wide FrameMetadata object will be added which will replace the specific implementation in the V4L2 compatibility layer. Avoid name collisions while the new FrameBuffer API is added by renaming the V4L2 compatibility layer specific implementation until it can be replaced with the library wide implementation. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/v4l2/v4l2_camera.h')
-rw-r--r--src/v4l2/v4l2_camera.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/v4l2/v4l2_camera.h b/src/v4l2/v4l2_camera.h
index 5a889efd..81f7908e 100644
--- a/src/v4l2/v4l2_camera.h
+++ b/src/v4l2/v4l2_camera.h
@@ -19,10 +19,10 @@
using namespace libcamera;
-class FrameMetadata
+class V4L2FrameMetadata
{
public:
- FrameMetadata(Buffer *buffer);
+ V4L2FrameMetadata(Buffer *buffer);
int index() const { return index_; }
@@ -51,7 +51,7 @@ public:
int open();
void close();
void getStreamConfig(StreamConfiguration *streamConfig);
- std::vector<FrameMetadata> completedBuffers();
+ std::vector<V4L2FrameMetadata> completedBuffers();
void *mmap(unsigned int index);
@@ -79,7 +79,7 @@ private:
std::mutex bufferLock_;
std::deque<std::unique_ptr<Request>> pendingRequests_;
- std::deque<std::unique_ptr<FrameMetadata>> completedBuffers_;
+ std::deque<std::unique_ptr<V4L2FrameMetadata>> completedBuffers_;
};
#endif /* __V4L2_CAMERA_H__ */