summaryrefslogtreecommitdiff
path: root/video-buffers.c
diff options
context:
space:
mode:
Diffstat (limited to 'video-buffers.c')
-rw-r--r--video-buffers.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/video-buffers.c b/video-buffers.c
deleted file mode 100644
index f5dc6ec..0000000
--- a/video-buffers.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* SPDX-License-Identifier: LGPL-2.1-or-later */
-/*
- * Video buffers
- *
- * Copyright (C) 2018 Laurent Pinchart
- *
- * Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
- */
-
-#include "video-buffers.h"
-
-#include <stdlib.h>
-#include <string.h>
-
-struct video_buffer_set *video_buffer_set_new(unsigned int nbufs)
-{
- struct video_buffer_set *buffers;
-
- buffers = malloc(sizeof *buffers);
- if (!buffers)
- return NULL;
-
- buffers->nbufs = nbufs;
- buffers->buffers = calloc(nbufs, sizeof *buffers->buffers);
- if (!buffers->buffers) {
- free(buffers);
- return NULL;
- }
-
- return buffers;
-}
-
-void video_buffer_set_delete(struct video_buffer_set *buffers)
-{
- if (!buffers)
- return;
-
- free(buffers->buffers);
- free(buffers);
-}