| 1 |
/* |
| 2 |
* tiling.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/06/14 20:50:51 $ |
| 12 |
* $Author: hafner $ |
| 13 |
* $Revision: 5.1 $ |
| 14 |
* $State: Exp $ |
| 15 |
*/ |
| 16 |
|
| 17 |
#ifndef _TILING_H |
| 18 |
#define _TILING_H |
| 19 |
|
| 20 |
#include <stdbool.h> |
| 21 |
|
| 22 |
#include "image.h" |
| 23 |
#include "fiasco.h" |
| 24 |
|
| 25 |
typedef struct tiling |
| 26 |
{ |
| 27 |
unsigned exponent; /* Image is split in 2^exp tiles */ |
| 28 |
fiasco_tiling_e method; /* Method of Image tiling */ |
| 29 |
int *vorder; /* Block permutation (size = 2^exp) |
| 30 |
-1 indicates empty block */ |
| 31 |
} tiling_t; |
| 32 |
|
| 33 |
void |
| 34 |
perform_tiling (const image_t *image, tiling_t *tiling); |
| 35 |
|
| 36 |
tiling_t * |
| 37 |
new_tiling(fiasco_tiling_e const method, |
| 38 |
unsigned int const reqTilingExponent, |
| 39 |
unsigned int const imageLevel, |
| 40 |
bool const isVideo); |
| 41 |
|
| 42 |
void |
| 43 |
free_tiling (tiling_t *tiling); |
| 44 |
|
| 45 |
#endif /* not _TILING_H */ |
| 46 |
|