Add libcamera - dummy (for now)
This commit is contained in:
30
device/libcamera/buffer_list.cc
Normal file
30
device/libcamera/buffer_list.cc
Normal file
@ -0,0 +1,30 @@
|
||||
#include "libcamera.hh"
|
||||
|
||||
extern "C" {
|
||||
#include "device/buffer_list.h"
|
||||
#include <stdlib.h>
|
||||
};
|
||||
|
||||
int libcamera_buffer_list_open(buffer_list_t *buf_list, unsigned width, unsigned height, unsigned format, unsigned bytesperline)
|
||||
{
|
||||
buf_list->libcamera = new buffer_list_libcamera_t{};
|
||||
return 0;
|
||||
}
|
||||
|
||||
void libcamera_buffer_list_close(buffer_list_t *buf_list)
|
||||
{
|
||||
if (buf_list->libcamera) {
|
||||
delete buf_list->libcamera;
|
||||
buf_list->libcamera = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
int libcamera_buffer_list_set_buffers(buffer_list_t *buf_list, int nbufs)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
int libcamera_buffer_list_set_stream(buffer_list_t *buf_list, bool do_on)
|
||||
{
|
||||
return -1;
|
||||
}
|
Reference in New Issue
Block a user