summaryrefslogtreecommitdiff
path: root/encode.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 /encode.h
parent85c81156a37e161ca08831b9ac9af022c72ebdea (diff)
Add colorspace and ranges handling to streamer
Diffstat (limited to 'encode.h')
-rw-r--r--encode.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/encode.h b/encode.h
index f68b2e2..085b0df 100644
--- a/encode.h
+++ b/encode.h
@@ -21,12 +21,16 @@
#include <stdbool.h>
#include <stdint.h>
+#include "colorspace.h"
+
struct EncodeContext;
struct GpuContext;
struct GpuFrame;
struct EncodeContext* EncodeContextCreate(struct GpuContext* gpu_context,
- uint32_t width, uint32_t height);
+ uint32_t width, uint32_t height,
+ enum YuvColorspace colorspace,
+ enum YuvRange range);
const struct GpuFrame* EncodeContextGetFrame(
struct EncodeContext* encode_context);
bool EncodeContextEncodeFrame(struct EncodeContext* encode_context, int fd);