summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2022-11-17 20:26:05 +1100
committerjacqueline <me@jacqueline.id.au>2022-11-17 20:26:44 +1100
commitb92ed7f34f6ee78a020301df1bbdd04d3ddcdb88 (patch)
treeb5e9317730b7dc05651ba52a7006b945f7e526dd /src
parent42c387807fe0313b21b5280d9d55d4d641fe429c (diff)
downloadtangara-fw-b92ed7f34f6ee78a020301df1bbdd04d3ddcdb88.tar.gz
apply arch patch to libmad
Diffstat (limited to 'src')
-rw-r--r--src/codecs/CMakeLists.txt4
-rw-r--r--src/codecs/codec.hpp29
2 files changed, 4 insertions, 29 deletions
diff --git a/src/codecs/CMakeLists.txt b/src/codecs/CMakeLists.txt
index e69de29b..18150939 100644
--- a/src/codecs/CMakeLists.txt
+++ b/src/codecs/CMakeLists.txt
@@ -0,0 +1,4 @@
+idf_component_register(INCLUDE_DIRS "include")
+
+#target_compile_options(${COMPONENT_LIB} PRIVATE ${EXTRA_WARNINGS})
+add_dependencies("${COMPONENT_LIB}" libmad)
diff --git a/src/codecs/codec.hpp b/src/codecs/codec.hpp
deleted file mode 100644
index 5e8763a6..00000000
--- a/src/codecs/codec.hpp
+++ /dev/null
@@ -1,29 +0,0 @@
-#pragma once
-
-#include <cstddef>
-#include <cstdint>
-
-#include "result.hpp"
-
-namespace codecs {
-
- enum CreateCodecError {};
-
- auto CreateCodecForExtension(std::string extension) -> cpp::result<std::unique_ptr<ICodec>, CreateCodecError>;
-
- class ICodec {
- public:
- virtual ~ICodec() {}
-
- virtual auto CanHandleExtension(std::string extension) -> bool = 0;
-
- enum Error {};
-
- virtual auto Process(
- uint8_t *input,
- std::size_t input_len,
- uint8_t *output,
- std::size_t output_length) -> cpp::result<size_t, Error> = 0;
- };
-
-} // namespace codecs