Image::Leptonica::Func::jp2kio
version 0.03
jp2kio.c
jp2kio.c Read header l_int32 readHeaderJp2k() l_int32 freadHeaderJp2k() l_int32 sreadHeaderJp2k()
l_int32 freadHeaderJp2k ( FILE *fp, l_int32 *pw, l_int32 *ph, l_int32 *pspp )
freadHeaderJp2k() Input: stream opened for read &w (<optional return>) &h (<optional return>) &spp (<optional return>, samples/pixel) Return: 0 if OK, 1 on error
l_int32 readHeaderJp2k ( const char *filename, l_int32 *pw, l_int32 *ph, l_int32 *pspp )
readHeaderJp2k() Input: filename &w (<optional return>) &h (<optional return>) &spp (<optional return>, samples/pixel) Return: 0 if OK, 1 on error
l_int32 sreadHeaderJp2k ( const l_uint8 *data, size_t size, l_int32 *pw, l_int32 *ph, l_int32 *pspp )
sreadHeaderJp2k() Input: data size &w (<optional return>) &h (<optional return>) &spp (<optional return>, samples/pixel) Return: 0 if OK, 1 on error Notes: (1) The metadata is stored as follows: h: 4 bytes @ 48 w: 4 bytes @ 52 spp: 2 bytes @ 56
Zakariyya Mughal <zmughal@cpan.org>
This software is copyright (c) 2014 by Zakariyya Mughal.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Image::Leptonica, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::Leptonica
CPAN shell
perl -MCPAN -e shell install Image::Leptonica
For more information on module installation, please visit the detailed CPAN module installation guide.