summaryrefslogtreecommitdiff
path: root/include/kitchensink/kitformat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/kitchensink/kitformat.h')
-rw-r--r--include/kitchensink/kitformat.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/kitchensink/kitformat.h b/include/kitchensink/kitformat.h
new file mode 100644
index 0000000..4c428c5
--- /dev/null
+++ b/include/kitchensink/kitformat.h
@@ -0,0 +1,24 @@
+#ifndef KITFORMAT_H
+#define KITFORMAT_H
+
+#include <stdbool.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct Kit_OutputFormat {
+ unsigned int format; ///< SDL Format
+ bool is_signed; ///< Signedness (if audio)
+ int bytes; ///< Bytes per sample per channel (if audio)
+ int samplerate; ///< Sampling rate (if audio)
+ int channels; ///< Channels (if audio)
+ int width; ///< Width in pixels (if video)
+ int height; ///< Height in pixels (if video)
+} Kit_OutputFormat;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // KITFORMAT_H