Rename init helper, and add some stuff to the readme

This commit is contained in:
sz 2020-05-08 01:55:31 -05:00
parent 33d5f5dc0c
commit 2800ed433f
5 changed files with 21 additions and 7 deletions

View File

@ -1 +1,15 @@
git clone --recurse-submodules https://github.com/sz3/libcimbar.git
## libcimbar
### 100 kb/s over the air gap
## Libraries
Except for opencv, all of these are included in the repo. Most are header-only.
* opencv - https://opencv.org/
* base - https://github.com/r-lyeh-archived/base
* cxxopts - https://github.com/jarro2783/cxxopts (used for command line tools)
* fmt - https://github.com/fmtlib/fmt
* intx - https://github.com/chfast/intx
* libcorrect - https://github.com/quiet/libcorrect
* libpopcnt - https://github.com/kimwalisch/libpopcnt
* PicoSHA2 - https://github.com/okdshin/PicoSHA2 (used for testing)
* wirehair - https://github.com/catid/wirehair

View File

@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.10)
set(SOURCES
FountainDecoder.h
FountainEncoder.h
WirehairInit.h
FountainInit.h
)
add_custom_target(fountain SOURCES ${SOURCES})

View File

@ -1,6 +1,6 @@
#pragma once
#include "WirehairInit.h"
#include "FountainInit.h"
#include "wirehair/wirehair.h"
#include <array>
#include <optional>
@ -15,7 +15,7 @@ class FountainDecoder
public:
static bool init()
{
return WireHairInit::init();
return FountainInit::init();
}
public:

View File

@ -1,6 +1,6 @@
#pragma once
#include "WirehairInit.h"
#include "FountainInit.h"
#include "wirehair/wirehair.h"
#include <array>
#include <vector>
@ -15,7 +15,7 @@ public:
using buffer = std::array<uint8_t,_packetSize>;
static bool init()
{
return WireHairInit::init();
return FountainInit::init();
}
public:

View File

@ -2,7 +2,7 @@
#include "wirehair/wirehair.h"
namespace WireHairInit {
namespace FountainInit {
static bool init()
{
static WirehairResult res = wirehair_init();