Skip to content

Commit

Permalink
Add missing reed_solomon_init() definition in rswrapper.h
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Jul 11, 2024
1 parent 9dee42a commit de242be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "video.h"

extern "C" {
#include <rs.h>
#include "rswrapper.h"
}

using namespace std::literals;
Expand Down
8 changes: 8 additions & 0 deletions src/rswrapper.h
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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);

0 comments on commit de242be

Please sign in to comment.