Skip to content
Snippets Groups Projects
Commit de3a80db authored by Mirar (Pontus Hagland)'s avatar Mirar (Pontus Hagland)
Browse files

...

Rev: src/modules/_Image_JPEG/.cvsignore:1.1
Rev: src/modules/_Image_JPEG/configure.in:1.2
Rev: src/modules/_Image_JPEG/image_jpeg.c:1.2
parent ecadb03e
Branches
Tags
No related merge requests found
.pure
Makefile
config.log
config.status
configure
dependencies
linker_options
modlist_headers
modlist_segment
module_testsuite
stamp-h
stamp-h.in
zlib_machine.h
zlib_machine.h.in
/.pure
/Makefile
/config.log
/config.status
/configure
/dependencies
/linker_options
/modlist_headers
/modlist_segment
/module_testsuite
/stamp-h
/stamp-h.in
/zlib_machine.h
/zlib_machine.h.in
...@@ -9,7 +9,7 @@ if test x$with_jpeglib = xyes ; then ...@@ -9,7 +9,7 @@ if test x$with_jpeglib = xyes ; then
if test $ac_cv_header_jpeglib_h = yes ; then if test $ac_cv_header_jpeglib_h = yes ; then
AC_CHECK_LIB(jpeg, jpeg_destroy, [ AC_CHECK_LIB(jpeg, jpeg_destroy, [
AC_DEFINE(HAVE_LIBJPEG) AC_DEFINE(HAVE_LIBJPEG)
LIBS="${LIBS-} -lz" LIBS="${LIBS-} -ljpeg"
], ],
AC_CHECK_LIB(jpeg, jpeg_destroy)) AC_CHECK_LIB(jpeg, jpeg_destroy))
fi fi
......
...@@ -9,13 +9,71 @@ RCSID("$id: $"); ...@@ -9,13 +9,71 @@ RCSID("$id: $");
#ifdef HAVE_JPEGLIB_H #ifdef HAVE_JPEGLIB_H
#include "jpeglib.h"
#include "pike_macros.h"
#include "object.h"
#include "constants.h"
#include "interpret.h"
#include "svalue.h"
#include "threads.h"
#include "array.h"
#include "error.h"
#include "threads.h"
#include "../Image/image.h"
/*
**! module Image
**! submodule JPEG
*/
void my_exit_error(struct jpeg_common_struct *cinfo)
{
}
void my_emit_message(struct jpeg_common_struct *cinfo,int msg_level)
{
}
void my_output_message(struct jpeg_common_struct *cinfo)
{
}
void my_format_message(struct jpeg_common_struct *cinfo,char *buffer)
{
}
void my_reset_error_mgr(struct jpeg_common_struct *cinfo)
{
}
/*
**! method object decode
*/
static void image_jpeg_decode(INT32 args)
{
struct jpeg_decompress_struct cinfo;
struct jpeg_error_mgr jerr;
struct jpeg_error_mgr my_error_mgr=
{ my_exit_error,
my_emit_message,
my_output_message,
my_format_message,
my_reset_error_mgr
};
}
#endif /* HAVE_JPEGLIB_H */ #endif /* HAVE_JPEGLIB_H */
void pike_module_exit(void) void pike_module_exit(void)
{ {
add_function("decode",image_jpeg_decode,
"function(string:object)",0);
} }
void pike_module_init(void) void pike_module_init(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment