unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christoph <cschol2112@googlemail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: imagemagick support on W32
Date: Thu, 30 Sep 2010 20:58:47 -0600	[thread overview]
Message-ID: <4CA54E67.5040703@gmail.com> (raw)
In-Reply-To: <4CA54834.4020106@gmail.com>

On 9/30/2010 8:32 PM, Christoph wrote:

> Where is init_imagemagick_functions defined?

And if it is missing...does something like this come close?

#ifdef HAVE_NTGUI

DEF_IMGLIB_FN (MagickWandGenesis);
DEF_IMGLIB_FN (GetMagickList);
DEF_IMGLIB_FN (NewMagickWand);
DEF_IMGLIB_FN (MagickSetResolution);
DEF_IMGLIB_FN (MagickPingImage);
DEF_IMGLIB_FN (MagickGetNumberImages);
DEF_IMGLIB_FN (DestroyMagicWand);
DEF_IMGLIB_FN (CloneImageInfo);
DEF_IMGLIB_FN (AcquireExceptionInfo);
DEF_IMGLIB_FN (ReadImage);
DEF_IMGLIB_FN (CatchException);
DEF_IMGLIB_FN (NewMagickWandFromImage);
DEF_IMGLIB_FN (MagickGetImageHeight);
DEF_IMGLIB_FN (MagickGetImageWidth);
DEF_IMGLIB_FN (MagickScaleImage);
DEF_IMGLIB_FN (MagickPingImageBlob);
DEF_IMGLIB_FN (MagickReadImageBlob);
DEF_IMGLIB_FN (NewPixelWand);
DEF_IMGLIB_FN (PixelSetColor);
DEF_IMGLIB_FN (MagickRotateImage);
DEF_IMGLIB_FN (MagickCropImage);
DEF_IMGLIB_FN (NewPixelIterator);
DEF_IMGLIB_FN (PixelGetMagickColor);
DEF_IMGLIB_FN (DestroyPixelIterator);

static int
init_imagemagick_functions (Lisp_Object libraries)
{
   HMODULE library;

   /* Try loading ImageMagick library under probable names.  */
   if (!(library = w32_delayed_load (libraries, Qimagemagick)))
     return 0;

   LOAD_IMGLIB_FN (library, MagickWandGenesis);
   LOAD_IMGLIB_FN (library, GetMagickList);
   LOAD_IMGLIB_FN (library, NewMagickWand);
   LOAD_IMGLIB_FN (library, MagickSetResolution);
   LOAD_IMGLIB_FN (library, MagickPingImage);
   LOAD_IMGLIB_FN (library, MagickGetNumberImages);
   LOAD_IMGLIB_FN (library, DestroyMagicWand);
   LOAD_IMGLIB_FN (library, CloneImageInfo);
   LOAD_IMGLIB_FN (library, AcquireExceptionInfo);
   LOAD_IMGLIB_FN (library, ReadImage);
   LOAD_IMGLIB_FN (library, CatchException);
   LOAD_IMGLIB_FN (library, NewMagickWandFromImage);
   LOAD_IMGLIB_FN (library, MagickGetImageHeight);
   LOAD_IMGLIB_FN (library, MagickGetImageWidth);
   LOAD_IMGLIB_FN (library, MagickScaleImage);
   LOAD_IMGLIB_FN (library, MagickPingImageBlob);
   LOAD_IMGLIB_FN (library, MagickReadImageBlob);
   LOAD_IMGLIB_FN (library, NewPixelWand);
   LOAD_IMGLIB_FN (library, PixelSetColor);
   LOAD_IMGLIB_FN (library, MagickRotateImage);
   LOAD_IMGLIB_FN (library, MagickCropImage);
   LOAD_IMGLIB_FN (library, NewPixelIterator);
   LOAD_IMGLIB_FN (library, PixelGetMagickColor);
   LOAD_IMGLIB_FN (library, DestroyPixelIterator);

   return 1;
}

#endif /* HAVE_NTGUI */


Note: I wasn't sure about the #else clause for HAVE_NTGUI. Looks like 
for other image libraries the function names are aliased with 
fn_FUNCTIONNAME?

Christoph



  reply	other threads:[~2010-10-01  2:58 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01  1:44 imagemagick support on W32 Christoph
2010-10-01  1:52 ` Juanma Barranquero
2010-10-01  2:27   ` Christoph
2010-10-01  2:32     ` Christoph
2010-10-01  2:58       ` Christoph [this message]
2010-10-01  3:16         ` Juanma Barranquero
2010-10-01  4:16           ` Christoph
2010-10-01  7:30             ` Eli Zaretskii
2010-10-01 10:37             ` Juanma Barranquero
2010-10-01 11:36               ` joakim
2010-10-01 12:12                 ` Christoph
2010-10-01 12:38                   ` joakim
2010-10-01 19:57                     ` Juanma Barranquero
2010-10-01 20:41                       ` joakim
2010-10-02  3:31                     ` Jason Rumney
2010-10-01 19:51                 ` Juanma Barranquero
2010-10-01 20:44                   ` joakim
2010-10-01 20:53                     ` Juanma Barranquero
2010-10-01 12:04               ` Christoph
2010-10-01 19:55                 ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CA54E67.5040703@gmail.com \
    --to=cschol2112@googlemail.com \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).