aboutsummaryrefslogtreecommitdiff
path: root/Src/nsmkv/global_elements.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/nsmkv/global_elements.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/nsmkv/global_elements.h')
-rw-r--r--Src/nsmkv/global_elements.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Src/nsmkv/global_elements.h b/Src/nsmkv/global_elements.h
new file mode 100644
index 00000000..24cb74f4
--- /dev/null
+++ b/Src/nsmkv/global_elements.h
@@ -0,0 +1,15 @@
+#pragma once
+#include "mkv_reader.h"
+#include <bfc/platform/types.h>
+// IDs
+// these are slightly different from the matroska spec because we specify
+// values after vint decoding and they specify before
+const uint32_t mkv_void=0x6C;
+const uint32_t mkv_crc=0x3F;
+
+namespace nsmkv
+{
+ // doesn't really do anything but fseek, but will output unknown values in debug mode
+ uint64_t ReadGlobal(nsmkv::MKVReader *reader, uint64_t id, uint64_t size);
+ uint64_t SkipNode(nsmkv::MKVReader *reader, uint64_t id, uint64_t size); // same thing as ReadGlobal but doesn't display unknown nodes
+} \ No newline at end of file