From de242bea9487655c0515314bd934a7a36937ba56 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 10 Jul 2024 19:14:34 -0500 Subject: [PATCH] Add missing reed_solomon_init() definition in rswrapper.h --- src/main.cpp | 2 +- src/rswrapper.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f70cc637c61..ed584459e9b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -23,7 +23,7 @@ #include "video.h" extern "C" { -#include +#include "rswrapper.h" } using namespace std::literals; diff --git a/src/rswrapper.h b/src/rswrapper.h index 4d596f86055..65e587f3dea 100644 --- a/src/rswrapper.h +++ b/src/rswrapper.h @@ -1,6 +1,7 @@ /** * @file src/rswrapper.h * @brief Wrappers for nanors vectorization + * @details This is a drop-in replacement for nanors rs.h */ #pragma once @@ -22,3 +23,10 @@ extern reed_solomon_decode_t reed_solomon_decode_fn; #define reed_solomon_release reed_solomon_release_fn #define reed_solomon_encode reed_solomon_encode_fn #define reed_solomon_decode reed_solomon_decode_fn + +/** + * @brief This initializes the RS function pointers to the best vectorized version available. + * @details The streaming code will directly invoke these function pointers during encoding. + */ +void +reed_solomon_init(void); \ No newline at end of file