| 1 |
/* |
| 2 |
* decode.h |
| 3 |
* |
| 4 |
* Written by: Ullrich Hafner |
| 5 |
* |
| 6 |
* This file is part of FIASCO (Fractal Image And Sequence COdec) |
| 7 |
* Copyright (C) 1994-2000 Ullrich Hafner |
| 8 |
*/ |
| 9 |
|
| 10 |
/* |
| 11 |
* $Date: 2000/10/22 10:44:48 $ |
| 12 |
* $Author: hafner $ |
| 13 |
* $Revision: 5.3 $ |
| 14 |
* $State: Exp $ |
| 15 |
*/ |
| 16 |
|
| 17 |
#ifndef _DECODE_H |
| 18 |
#define _DECODE_H |
| 19 |
|
| 20 |
#include "types.h" |
| 21 |
#include "image.h" |
| 22 |
#include "wfa.h" |
| 23 |
|
| 24 |
typedef struct video |
| 25 |
{ |
| 26 |
unsigned future_display; /* number of a future frame */ |
| 27 |
unsigned display; /* current display number */ |
| 28 |
image_t *frame; /* current frame */ |
| 29 |
image_t *sframe; /* current smoothed frame */ |
| 30 |
image_t *future; /* future reference */ |
| 31 |
image_t *sfuture; /* future (smmothed) reference */ |
| 32 |
image_t *past ; /* past reference */ |
| 33 |
wfa_t *wfa; /* current wfa */ |
| 34 |
wfa_t *wfa_future; /* future wfa */ |
| 35 |
wfa_t *wfa_past; /* past wfa */ |
| 36 |
} video_t; |
| 37 |
|
| 38 |
typedef struct dectimer |
| 39 |
{ |
| 40 |
unsigned int input [3]; |
| 41 |
unsigned int preprocessing [3]; |
| 42 |
unsigned int decoder [3]; |
| 43 |
unsigned int cleanup [3]; |
| 44 |
unsigned int motion [3]; |
| 45 |
unsigned int smooth [3]; |
| 46 |
unsigned int display [3]; |
| 47 |
unsigned int frames [3]; |
| 48 |
} dectimer_t; |
| 49 |
|
| 50 |
image_t * |
| 51 |
get_next_frame (bool_t store_wfa, int enlarge_factor, |
| 52 |
int smoothing, const char *reference_frame, |
| 53 |
format_e format, video_t *video, dectimer_t *timer, |
| 54 |
wfa_t *orig_wfa, bitfile_t *input); |
| 55 |
image_t * |
| 56 |
decode_image (unsigned orig_width, unsigned orig_height, format_e format, |
| 57 |
unsigned *dec_timer, const wfa_t *wfa); |
| 58 |
word_t * |
| 59 |
decode_range (unsigned range_state, unsigned range_label, unsigned range_level, |
| 60 |
word_t **domain, wfa_t *wfa); |
| 61 |
image_t * |
| 62 |
decode_state (unsigned state, unsigned level, wfa_t *wfa); |
| 63 |
void |
| 64 |
smooth_image (unsigned sf, const wfa_t *wfa, image_t *image); |
| 65 |
video_t * |
| 66 |
alloc_video (bool_t store_wfa); |
| 67 |
void |
| 68 |
free_video (video_t *video); |
| 69 |
|
| 70 |
#endif /* not _DECODE_H */ |