cam: BufferWriter: Use the libcamera namespace
Other parts of the cam utility uses the libcamera namespace, do the same in the buffer writer. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
f7ddfd4517
commit
c1a287d4b4
1 changed files with 5 additions and 3 deletions
|
@ -14,12 +14,14 @@
|
|||
|
||||
#include "buffer_writer.h"
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
BufferWriter::BufferWriter(const std::string &pattern)
|
||||
: pattern_(pattern)
|
||||
{
|
||||
}
|
||||
|
||||
int BufferWriter::write(libcamera::Buffer *buffer, const std::string &streamName)
|
||||
int BufferWriter::write(Buffer *buffer, const std::string &streamName)
|
||||
{
|
||||
std::string filename;
|
||||
size_t pos;
|
||||
|
@ -40,8 +42,8 @@ int BufferWriter::write(libcamera::Buffer *buffer, const std::string &streamName
|
|||
if (fd == -1)
|
||||
return -errno;
|
||||
|
||||
libcamera::BufferMemory *mem = buffer->mem();
|
||||
for (libcamera::Plane &plane : mem->planes()) {
|
||||
BufferMemory *mem = buffer->mem();
|
||||
for (Plane &plane : mem->planes()) {
|
||||
void *data = plane.mem();
|
||||
unsigned int length = plane.length();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue