blob: 82ce1deb49ccd855fae77ad724ead5f5a182a919 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef JELINEK_H
#define JELINEK_H
#include <stdint.h>
struct snode {
uint64_t encstate; // Encoder state
int gamma; // Cumulative metric to this node
unsigned int depth; // depth of this node
unsigned int jpointer;
};
int jelinek(unsigned int *metric,
unsigned int *cycles,
unsigned char *data,
unsigned char *symbols,
unsigned int nbits,
unsigned int stacksize,
struct snode *stack,
int mettab[2][256],
unsigned int maxcycles);
#endif
|