| 
									
										
										
										
											2015-07-25 23:50:29 +00:00
										 |  |  | #ifndef JELINEK_H
 | 
					
						
							|  |  |  | #define JELINEK_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <stdint.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-26 14:09:25 +00:00
										 |  |  | struct snode { | 
					
						
							| 
									
										
										
										
											2015-07-25 23:50:29 +00:00
										 |  |  |     uint64_t encstate; // Encoder state
 | 
					
						
							|  |  |  |     int gamma;		         // Cumulative metric to this node
 | 
					
						
							|  |  |  |     unsigned int depth;               // depth of this node
 | 
					
						
							|  |  |  |     unsigned int jpointer; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-26 14:09:25 +00:00
										 |  |  | struct snode *stack; | 
					
						
							| 
									
										
										
										
											2015-07-25 23:50:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | int jelinek(unsigned int *metric, | 
					
						
							|  |  |  |             unsigned int *cycles, | 
					
						
							|  |  |  |             unsigned char *data, | 
					
						
							|  |  |  |             unsigned char *symbols, | 
					
						
							|  |  |  |             unsigned int nbits, | 
					
						
							|  |  |  |             unsigned int stacksize, | 
					
						
							| 
									
										
										
										
											2015-07-26 14:09:25 +00:00
										 |  |  |             struct snode *stack, | 
					
						
							| 
									
										
										
										
											2015-07-25 23:50:29 +00:00
										 |  |  |             int mettab[2][256], | 
					
						
							|  |  |  |             unsigned int maxcycles); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 |