summaryrefslogtreecommitdiff
path: root/coders
diff options
context:
space:
mode:
authorCristy <urban-warrior@imagemagick.org>2017-03-05 10:12:44 -0500
committerCristy <urban-warrior@imagemagick.org>2017-03-05 10:12:44 -0500
commit9caa8359618faa9d67584a2907942665a0d773db (patch)
treeec48af20277bd8e122acef8bce921a9cf2ff63e9 /coders
parent68ea6a0257d72112016180a057ea0778460c05d4 (diff)
downloadImageMagick-9caa8359618faa9d67584a2907942665a0d773db.tar.gz
...
Diffstat (limited to 'coders')
-rw-r--r--coders/Makefile.am8
-rw-r--r--coders/pgx.c6
2 files changed, 9 insertions, 5 deletions
diff --git a/coders/Makefile.am b/coders/Makefile.am
index 313392867..907417a7c 100644
--- a/coders/Makefile.am
+++ b/coders/Makefile.am
@@ -156,6 +156,7 @@ MAGICKCORE_CODER_SRCS = \
coders/pdb.c \
coders/pdf.c \
coders/pes.c \
+ coders/pgx.c \
coders/pict.c \
coders/pix.c \
coders/plasma.c \
@@ -284,6 +285,7 @@ coders_LTLIBRARIES = \
coders/pdb.la \
coders/pdf.la \
coders/pes.la \
+ coders/pgx.la \
coders/pict.la \
coders/pix.la \
coders/plasma.la \
@@ -797,6 +799,12 @@ coders_pes_la_CPPFLAGS = $(MAGICK_CODER_CPPFLAGS)
coders_pes_la_LDFLAGS = $(MODULECOMMONFLAGS)
coders_pes_la_LIBADD = $(MAGICKCORE_LIBS)
+# PGX coder module
+coders_pgx_la_SOURCES = coders/pgx.c
+coders_pgx_la_CPPFLAGS = $(MAGICK_CODER_CPPFLAGS)
+coders_pgx_la_LDFLAGS = $(MODULECOMMONFLAGS)
+coders_pgx_la_LIBADD = $(MAGICKCORE_LIBS)
+
# PICT coder module
coders_pict_la_SOURCES = coders/pict.c
coders_pict_la_CPPFLAGS = $(MAGICK_CODER_CPPFLAGS)
diff --git a/coders/pgx.c b/coders/pgx.c
index e014905ff..e03981f87 100644
--- a/coders/pgx.c
+++ b/coders/pgx.c
@@ -88,14 +88,10 @@ static MagickBooleanType
%
% A description of each parameter follows:
%
-% o status: Method IsPGX returns True if the image format type is PGX.
-%
-% o magick: This string is generally the first few bytes of an image file
-% or blob.
+% o magick: compare image format pattern against these bytes.
%
% o length: Specifies the length of the magick string.
%
-%
*/
static unsigned int IsPGX(const unsigned char *magick,const size_t length)
{