summaryrefslogtreecommitdiff
path: root/gpu.h
diff options
context:
space:
mode:
authorMikhail Burakov <mburakov@mailbox.org>2023-03-19 12:30:24 +0100
committerMikhail Burakov <mburakov@mailbox.org>2023-03-19 12:30:24 +0100
commit1b00a18b7c50e54928dcd273d2b6800f0c0a24f0 (patch)
treef35e56f52bb76cbd847c758353eacd382ca9079b /gpu.h
parent85c81156a37e161ca08831b9ac9af022c72ebdea (diff)
Add colorspace and ranges handling to streamer
Diffstat (limited to 'gpu.h')
-rw-r--r--gpu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gpu.h b/gpu.h
index a57ada0..0043aca 100644
--- a/gpu.h
+++ b/gpu.h
@@ -22,6 +22,8 @@
#include <stddef.h>
#include <stdint.h>
+#include "colorspace.h"
+
struct GpuFramePlane {
int dmabuf_fd;
uint32_t pitch;
@@ -29,7 +31,8 @@ struct GpuFramePlane {
uint64_t modifier;
};
-struct GpuContext* GpuContextCreate(void);
+struct GpuContext* GpuContextCreate(enum YuvColorspace colorspace,
+ enum YuvRange range);
bool GpuContextSync(struct GpuContext* gpu_context);
void GpuContextDestroy(struct GpuContext** gpu_context);