Add libcamera - dummy (for now)

This commit is contained in:
Kamil Trzcinski
2022-04-10 16:19:51 +02:00
parent 2ec7347b26
commit 2e36ac9aed
9 changed files with 204 additions and 4 deletions

View File

@ -0,0 +1,35 @@
#include "libcamera.hh"
extern "C" {
#include "device/buffer.h"
#include <stdlib.h>
};
int libcamera_buffer_open(buffer_t *buf)
{
buf->libcamera = new buffer_libcamera_t{};
return 0;
}
void libcamera_buffer_close(buffer_t *buf)
{
if (buf->libcamera) {
delete buf->libcamera;
buf->libcamera = NULL;
}
}
int libcamera_buffer_enqueue(buffer_t *buf, const char *who)
{
return -1;
}
int libcamera_buffer_list_dequeue(buffer_list_t *buf_list, buffer_t **bufp)
{
return -1;
}
int libcamera_buffer_list_pollfd(buffer_list_t *buf_list, struct pollfd *pollfd, bool can_dequeue)
{
return -1;
}