diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-25 15:16:07 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-25 15:16:07 +0000 |
| commit | f776cffbc68c543e89366d001c9255824d7b3e51 (patch) | |
| tree | 20fd03225ac84baf4f6000afffed6c2475c4c50c /tests/test_tile_decoder.c | |
| parent | f52bb0e7a675d84b168c5f6ae8120063753cb30d (diff) | |
| parent | 666f71b2a171f0d5f94dc49ae60f439b0f517c6b (diff) | |
[2.0] Backport all changes from trunk
We only backport change that do not affect API or ABI
Update issue 313
Diffstat (limited to 'tests/test_tile_decoder.c')
| -rw-r--r-- | tests/test_tile_decoder.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/tests/test_tile_decoder.c b/tests/test_tile_decoder.c index 81f791cb..9779eb2e 100644 --- a/tests/test_tile_decoder.c +++ b/tests/test_tile_decoder.c @@ -99,7 +99,7 @@ static int infile_format(const char *fname) return -1; memset(buf, 0, 12); - l_nb_read = fread(buf, 1, 12, reader); + l_nb_read = (unsigned int)fread(buf, 1, 12, reader); fclose(reader); if (l_nb_read != 12) return -1; @@ -137,20 +137,6 @@ static int infile_format(const char *fname) /* -------------------------------------------------------------------------- */ /** - sample error callback expecting a FILE* client object - */ -static void error_callback_file(const char *msg, void *client_data) { - FILE *stream = (FILE*)client_data; - fprintf(stream, "[ERROR] %s", msg); -} -/** - sample warning callback expecting a FILE* client object - */ -static void warning_callback_file(const char *msg, void *client_data) { - FILE *stream = (FILE*)client_data; - fprintf(stream, "[WARNING] %s", msg); -} -/** sample error debug callback expecting no client object */ static void error_callback(const char *msg, void *client_data) { @@ -186,8 +172,7 @@ int main (int argc, char *argv[]) OPJ_UINT32 l_tile_index; OPJ_BYTE * l_data = (OPJ_BYTE *) malloc(1000); OPJ_BOOL l_go_on = OPJ_TRUE; - OPJ_INT32 l_tile_x0=0, l_tile_y0=0 ; - OPJ_UINT32 l_tile_width=0, l_tile_height=0, l_nb_tiles_x=0, l_nb_tiles_y=0, l_nb_comps=0 ; + OPJ_UINT32 l_nb_comps=0 ; OPJ_INT32 l_current_tile_x0,l_current_tile_y0,l_current_tile_x1,l_current_tile_y1; int da_x0=0; |
