rillian / jbig2dec Goto Github PK
View Code? Open in Web Editor NEWJBIG2 decoder library
Home Page: http://jbig2dec.sourceforge.net/
License: Other
JBIG2 decoder library
Home Page: http://jbig2dec.sourceforge.net/
License: Other
jbig2dec is a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and included by reference in Adobe's PDF version 1.4 and later. The basic invocation is: jbig2dec [-o <output file>] file.jbig2 It also supports separate 'global' and 'page' streams, generally extracted from some embedded format: jbig2dec [-o <output file>] <global_stream> <page_stream> The program is only partially functional at this time, but should be useful in some limited contexts. We welcome files that the decoder can't handle, or renders incorrectly. A set of example files is available from http://www.ece.ubc.ca/spmg/jbig2/bitstreams/main.html More information about this project and updated versions are available from http://jbig2dec.sf.net/ Development source code is kept in a subversion repository at svn.ghostscript.com. The contact address for the project is <[email protected]>.
gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -MT jbig2_image_png.o -MD -MP -MF .deps/jbig2_image_png.Tpo -c -o jbig2_image_png.o jbig2_image_png.c
jbig2_image_png.c: In function ‘jbig2_png_write_data’:
jbig2_image_png.c:36:56: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’
check = fwrite(data, 1, length, (png_FILE_p)png_ptr->io_ptr);
^
jbig2_image_png.c: In function ‘jbig2_png_flush’:
jbig2_image_png.c:46:26: warning: implicit declaration of function ‘CVT_PTR’ [-Wimplicit-function-declaration]
io_ptr = (png_FILE_p)CVT_PTR((png_ptr->io_ptr));
^
Makefile:809: recipe for target 'jbig2_image_png.o' failed
make[1]: *** [jbig2_image_png.o] Error 1
make[1]: Leaving directory '/home/root/jbig2dec'
Makefile:608: recipe for target 'all' failed
make: *** [all] Error 2
Hi,
I am new to image decoding and came across jbig2dec for decoding jbig2 files.
I encoded the Winter.jpg to Winter.jbig2 file using the command in Windows XP cmd:
jbig2 -s -v Winter.jpg > Winter.jbig2
I got the file Winter.jbig2.
Now when I decode the file using the command
jbig2dec -o Winter Winter.jbig2
an error is displayed
jbig2dec Fatal error Not a jbig2 file header.
Attaching the files for your reference. Can you please let me know where am I going wrong.
Hoping to get your help,hints at the earliest.
Thanks & Regards
have jbig2dec the C code for VS on window.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.