[trunk] continue work on getting API to use off_t instead of long toward LFS support in JPIP (codestream_param_t)

This commit is contained in:
Mathieu Malaterre
2012-03-26 12:59:33 +00:00
parent 0a97782339
commit 3b268d1656
2 changed files with 11 additions and 11 deletions

View File

@@ -41,7 +41,7 @@
#define logstream stderr
#endif /*SERVER */
codestream_param_t set_codestream( int fd, Byte8_t offset, Byte8_t length)
codestream_param_t set_codestream( int fd, OPJ_OFF_T offset, OPJ_SIZE_T length)
{
codestream_param_t cs;
@@ -52,22 +52,22 @@ codestream_param_t set_codestream( int fd, Byte8_t offset, Byte8_t length)
return cs;
}
Byte_t * fetch_codestreambytes( codestream_param_t *cs, long offset, int size)
Byte_t * fetch_codestreambytes( codestream_param_t *cs, OPJ_OFF_T offset, OPJ_SIZE_T size)
{
return fetch_bytes( cs->fd, cs->offset+offset, size);
}
Byte_t fetch_codestream1byte( codestream_param_t *cs, long offset)
Byte_t fetch_codestream1byte( codestream_param_t *cs, OPJ_OFF_T offset)
{
return fetch_1byte( cs->fd, cs->offset+offset);
}
Byte2_t fetch_codestream2bytebigendian( codestream_param_t *cs, long offset)
Byte2_t fetch_codestream2bytebigendian( codestream_param_t *cs, OPJ_OFF_T offset)
{
return fetch_2bytebigendian( cs->fd, cs->offset+offset);
}
Byte4_t fetch_codestream4bytebigendian( codestream_param_t *cs, long offset)
Byte4_t fetch_codestream4bytebigendian( codestream_param_t *cs, OPJ_OFF_T offset)
{
return fetch_4bytebigendian( cs->fd, cs->offset+offset);
}