MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/attribute.h"
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/cache.h"
#include "MagickCore/client.h"
#include "MagickCore/coder-private.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/constitute.h"
#include "MagickCore/constitute-private.h"
#include "MagickCore/delegate.h"
#include "MagickCore/geometry.h"
#include "MagickCore/identify.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/magick.h"
#include "MagickCore/memory_.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/policy.h"
#include "MagickCore/profile.h"
#include "MagickCore/profile-private.h"
#include "MagickCore/property.h"
#include "MagickCore/quantum.h"
#include "MagickCore/resize.h"
#include "MagickCore/resource_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/statistic.h"
#include "MagickCore/stream.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/timer.h"
#include "MagickCore/token.h"
#include "MagickCore/transform.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
Go to the source code of this file.
Data Structures | |
struct | _ConstituteInfo |
Macros | |
#define | WriteImageTag "Write/Image" |
Typedefs | |
typedef struct _ConstituteInfo | ConstituteInfo |
Functions | |
MagickExport Image * | ConstituteImage (const size_t columns, const size_t rows, const char *map, const StorageType storage, const void *pixels, ExceptionInfo *exception) |
static size_t | PingStream (const Image *magick_unused(image), const void *magick_unused(pixels), const size_t columns) |
MagickExport Image * | PingImage (const ImageInfo *image_info, ExceptionInfo *exception) |
MagickExport Image * | PingImages (ImageInfo *image_info, const char *filename, ExceptionInfo *exception) |
static MagickBooleanType | IsCoderAuthorized (const char *coder, const PolicyRights rights, ExceptionInfo *exception) |
static void | InitializeConstituteInfo (const ImageInfo *image_info, ConstituteInfo *constitute_info) |
static void | SyncOrientationFromProperties (Image *image, ConstituteInfo *constitute_info, ExceptionInfo *exception) |
static void | SyncResolutionFromProperties (Image *image, ConstituteInfo *constitute_info, ExceptionInfo *exception) |
MagickExport Image * | ReadImage (const ImageInfo *image_info, ExceptionInfo *exception) |
MagickExport Image * | ReadImages (ImageInfo *image_info, const char *filename, ExceptionInfo *exception) |
MagickExport Image * | ReadInlineImage (const ImageInfo *image_info, const char *content, ExceptionInfo *exception) |
MagickExport MagickBooleanType | WriteImage (const ImageInfo *image_info, Image *image, ExceptionInfo *exception) |
MagickExport MagickBooleanType | WriteImages (const ImageInfo *image_info, Image *images, const char *filename, ExceptionInfo *exception) |
#define WriteImageTag "Write/Image" |
typedef struct _ConstituteInfo ConstituteInfo |
MagickExport Image * ConstituteImage | ( | const size_t | columns, |
const size_t | rows, | ||
const char * | map, | ||
const StorageType | storage, | ||
const void * | pixels, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 158 of file constitute.c.
References AcquireImage(), _Image::alpha_trait, BlendPixelTrait, CharPixel, CMYKColorspace, _Image::colorspace, _Image::depth, DestroyImage(), DestroyImageList(), DoublePixel, FloatPixel, GetMagickModule, GRAYColorspace, ImportImagePixels(), IsEventLogging(), LogMagickEvent(), LongLongPixel, LongPixel, MagickCoreSignature, MagickFalse, ResetImagePixels(), SetImageExtent(), ShortPixel, _ExceptionInfo::signature, and TraceEvent.
|
static |
Definition at line 455 of file constitute.c.
References _ConstituteInfo::caption, CastDoubleToLong(), _ConstituteInfo::comment, _ConstituteInfo::delay, _ConstituteInfo::delay_flags, GetImageOption(), IsStringFalse(), _ConstituteInfo::label, MagickFalse, MagickTrue, NoValue, ParseGeometry(), _GeometryInfo::rho, _GeometryInfo::sigma, SigmaValue, _ConstituteInfo::sync_from_exif, _ConstituteInfo::sync_from_tiff, and _ConstituteInfo::ticks_per_second.
Referenced by ReadImage().
|
static |
Definition at line 442 of file constitute.c.
References CoderPolicyDomain, GetMagickModule, IsRightsAuthorized(), MagickFalse, MagickTrue, PolicyError, and ThrowMagickException().
Referenced by ReadImage(), and WriteImage().
MagickExport Image * PingImage | ( | const ImageInfo * | image_info, |
ExceptionInfo * | exception | ||
) |
Definition at line 292 of file constitute.c.
References CloneImageInfo(), DestroyImageInfo(), _ImageInfo::filename, GetMagickModule, IdentifyImage(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _ImageInfo::ping, PingStream(), ReadStream(), ResetTimer(), _ImageInfo::signature, _Image::timer, TraceEvent, and _ImageInfo::verbose.
Referenced by PingImages().
MagickExport Image * PingImages | ( | ImageInfo * | image_info, |
const char * | filename, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 347 of file constitute.c.
References AcquireExceptionInfo(), AppendImageToList(), CloneImageInfo(), CopyMagickString(), DestroyExceptionInfo(), DestroyImageInfo(), _ImageInfo::filename, GetMagickModule, InterpretImageFilename(), IsEventLogging(), LocaleCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickPathExtent, NewImageList(), _ImageInfo::number_scenes, PingImage(), _ImageInfo::scene, SetImageInfo(), SetImageOption(), _ImageInfo::signature, and TraceEvent.
|
static |
Definition at line 280 of file constitute.c.
References magick_unreferenced.
Referenced by PingImage().
MagickExport Image * ReadImage | ( | const ImageInfo * | image_info, |
ExceptionInfo * | exception | ||
) |
Definition at line 601 of file constitute.c.
References AcquireExceptionInfo(), AcquireImage(), _ConstituteInfo::caption, CloneImageInfo(), CloneImages(), CloseBlob(), _Image::columns, _ConstituteInfo::comment, CopyMagickString(), CorruptImageError, CropImage(), _ConstituteInfo::delay, _Image::delay, _ConstituteInfo::delay_flags, DestroyExceptionInfo(), DestroyImage(), DestroyImageInfo(), DestroyImageList(), DestroyString(), _ConstituteInfo::dispose, _Image::dispose, _ImageInfo::endian, ErrorException, ExceptionEvent, _ImageInfo::extract, _Image::filename, _ImageInfo::filename, FileOpenError, _Image::filter, FormatMagickTime(), GetBlobError(), GetBlobProperties(), GetDelegateInfo(), GetDelegateThreadSupport(), GetFirstImageInList(), GetImageDecoder(), GetImageListLength(), GetImageProfile(), GetImageProperty(), GetMagickDecoderSeekableStream(), GetMagickDecoderThreadSupport(), GetMagickEndianSupport(), GetMagickInfo(), GetMagickModule, GetMagickRawSupport(), GetNextImageInList(), GetPathComponent(), GreaterValue, _RectangleInfo::height, HeightValue, IdentifyImage(), ImageToFile(), InheritException(), InitializeConstituteInfo(), InterpretImageProperties(), InvokeDelegate(), IsBlobSeekable(), IsBlobTemporary(), IsCoderAuthorized(), IsEventLogging(), IsPathAccessible(), IsSceneGeometry(), _ConstituteInfo::label, LessValue, LocaleCompare(), LockSemaphoreInfo(), LogMagickEvent(), LSBEndian, _Image::magick, _ImageInfo::magick, _Image::magick_columns, _Image::magick_filename, _Image::magick_rows, MagickCoreSignature, MagickDisposeOptions, MagickFalse, MagickPath, MagickPathExtent, MagickTimeExtent, MagickTrue, MissingDelegateError, MSBEndian, NewImageList(), NoValue, OpenBlob(), _Image::page, ParseAbsoluteGeometry(), ParseCommandOption(), ParseRegionGeometry(), PolicyError, ReadBinaryBlobMode, ReadPolicyRights, RelinquishUniqueFileResource(), ReplaceImageInList(), ResizeImage(), _Image::rows, _ImageInfo::scenes, _DelegateInfo::semaphore, _MagickInfo::semaphore, SetGeometry(), SetImageInfo(), SetImageProperty(), _ExceptionInfo::severity, SigmaValue, _ImageInfo::signature, _ImageInfo::stream, SyncOrientationFromProperties(), SyncResolutionFromProperties(), _Image::taint, _ImageInfo::temporary, ThrowFileException, ThrowMagickException(), ThrowReaderException, _ConstituteInfo::ticks_per_second, _Image::ticks_per_second, TraceEvent, UndefinedEndian, UnlockSemaphoreInfo(), _ImageInfo::verbose, _RectangleInfo::width, WidthValue, XValue, and YValue.
Referenced by BlobToImage(), CustomStreamToImage(), DrawPrimitive(), IdentifyImage(), MontageImageList(), PreviewImage(), ReadImages(), ReadStream(), and RenderPostscript().
MagickExport Image * ReadImages | ( | ImageInfo * | image_info, |
const char * | filename, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1012 of file constitute.c.
References AcquireExceptionInfo(), AppendImageToList(), CloneImageInfo(), CopyMagickString(), DestroyExceptionInfo(), DestroyImageInfo(), _ImageInfo::filename, GetMagickModule, InterpretImageFilename(), IsEventLogging(), LocaleCompare(), LogMagickEvent(), _ImageInfo::magick, MagickCoreSignature, MagickFalse, MagickPathExtent, NewImageList(), _ImageInfo::number_scenes, ReadImage(), _ImageInfo::scene, SetImageInfo(), SetImageOption(), _ImageInfo::signature, and TraceEvent.
MagickExport Image * ReadInlineImage | ( | const ImageInfo * | image_info, |
const char * | content, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1111 of file constitute.c.
References Base64Decode(), BlobToImage(), CloneImageInfo(), CorruptImageError, DestroyImageInfo(), _ImageInfo::filename, LocaleNCompare(), _ImageInfo::magick, MagickPathExtent, NewImageList(), RelinquishMagickMemory(), SetImageInfoProgressMonitor(), and ThrowReaderException.
Referenced by DrawPrimitive().
|
static |
Definition at line 490 of file constitute.c.
References DeleteImageProperty(), GetImageProperty(), MagickFalse, _Image::orientation, StringToLong(), _ConstituteInfo::sync_from_exif, and _ConstituteInfo::sync_from_tiff.
Referenced by ReadImage().
|
static |
Definition at line 518 of file constitute.c.
References DeleteImageProperty(), GetImageProperty(), MagickFalse, MagickResolutionOptions, MagickTrue, ParseCommandOption(), ParseGeometry(), _Image::resolution, _GeometryInfo::rho, _GeometryInfo::sigma, _ConstituteInfo::sync_from_exif, _ConstituteInfo::sync_from_tiff, _Image::units, _PointInfo::x, and _PointInfo::y.
Referenced by ReadImage().
MagickExport MagickBooleanType WriteImage | ( | const ImageInfo * | image_info, |
Image * | image, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1204 of file constitute.c.
References AcquireExceptionInfo(), AcquireUniqueFilename(), _ImageInfo::adjoin, _ImageInfo::affirm, CloneImageInfo(), CloseBlob(), CopyMagickString(), DestroyExceptionInfo(), DestroyImageInfo(), DisassociateImageStream(), _Image::endian, _ImageInfo::endian, ExtensionPath, _Image::filename, _ImageInfo::filename, FileOpenError, GetBlobError(), GetDelegateInfo(), GetDelegateMode(), GetDelegateThreadSupport(), GetImageEncoder(), GetImageOption(), GetMagickEncoderSeekableStream(), GetMagickEncoderThreadSupport(), GetMagickEndianSupport(), GetMagickInfo(), GetMagickModule, GetMagickRawSupport(), GetNextImageInList(), GetPathComponent(), GetPreviousImageInList(), IdentifyImage(), ImageToFile(), InvokeDelegate(), IsBlobSeekable(), IsCoderAuthorized(), IsEventLogging(), IsPathAccessible(), IsStringTrue(), IsTaintImage(), LocaleCompare(), LockSemaphoreInfo(), LogMagickEvent(), LSBEndian, _Image::magick, _ImageInfo::magick, _Image::magick_filename, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, MissingDelegateError, MSBEndian, OpenBlob(), _ImageInfo::page, PolicyError, ReadBinaryBlobMode, RelinquishUniqueFileResource(), _DelegateInfo::semaphore, _MagickInfo::semaphore, SetImageInfo(), _ExceptionInfo::severity, _Image::signature, _ImageInfo::signature, SyncImageProfiles(), ThrowMagickException(), ThrowWriterException, TraceEvent, UndefinedEndian, UnlockSemaphoreInfo(), _ImageInfo::verbose, WriteBinaryBlobMode, and WritePolicyRights.
Referenced by ImageToBlob(), ImageToCustomStream(), InjectImageBlob(), InvokeDelegate(), PreviewImage(), WriteImages(), and WriteStream().
MagickExport MagickBooleanType WriteImages | ( | const ImageInfo * | image_info, |
Image * | images, | ||
const char * | filename, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1474 of file constitute.c.
References AcquireExceptionInfo(), _ImageInfo::adjoin, _Image::client_data, CloneImageInfo(), CopyMagickString(), DestroyExceptionInfo(), DestroyImageInfo(), _Image::filename, _ImageInfo::filename, GetFirstImageInList(), GetImageListLength(), GetMagickModule, GetNextImageInList(), IsEventLogging(), LogMagickEvent(), _Image::magick, _ImageInfo::magick, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, _Image::scene, SetImageInfo(), SetImageProgress(), SetImageProgressMonitor(), _Image::signature, _ImageInfo::signature, TraceEvent, WriteImage(), and WriteImageTag.
Referenced by ImagesToBlob(), and ImagesToCustomStream().