WSJT-X/lib/wsprd/jelinek.h
Steven Franke 8ca565516e Add stack decoder files.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5722 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2015-07-25 23:50:29 +00:00

28 lines
676 B
C

#ifndef JELINEK_H
#define JELINEK_H
#include <stdint.h>
struct node {
uint64_t encstate; // Encoder state
uint64_t encstate_highbits; // least significant 50 bits are the data
int gamma; // Cumulative metric to this node
unsigned int depth; // depth of this node
unsigned int jpointer;
};
struct node *stack;
int jelinek(unsigned int *metric,
unsigned int *cycles,
unsigned char *data,
unsigned char *symbols,
unsigned int nbits,
unsigned int stacksize,
struct node *stack,
int mettab[2][256],
unsigned int maxcycles);
#endif