- // FIXME this is really ugly but it seems I have to load the complete
- // jpeg2000 stream to use jasper:
- uint8_t *inputdata = new uint8_t[inputlength];
- //fp is already 'seek' to proper pos
- fp->read((char*)inputdata, inputlength);
- jas_stream_t *jasStream = jas_stream_memopen((char *)inputdata, inputlength);
+ jas_stream_t *jasStream =
+ jas_stream_memopen((char *)inputdata, inputlength);