PHP 8.0.30
Preview: pixel.h Size: 4.67 KB
/usr/include/ImageMagick-6/magick/pixel.h

/*
  Copyright 1999 ImageMagick Studio LLC, a non-profit organization
  dedicated to making software imaging solutions freely available.

  You may not use this file except in compliance with the License.  You may
  obtain a copy of the License at

    https://imagemagick.org/license/

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

  MagickCore image constitute methods.
*/
#ifndef MAGICKCORE_PIXEL_H
#define MAGICKCORE_PIXEL_H

#include "magick/colorspace.h"
#include "magick/constitute.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

/*
  Pixel enum declarations.
*/
typedef enum
{
  UndefinedInterpolatePixel,
  AverageInterpolatePixel,           /* Average 4 nearest neighbours */
  BicubicInterpolatePixel,           /* Catmull-Rom interpolation */
  BilinearInterpolatePixel,          /* Triangular filter interpolation */
  FilterInterpolatePixel,            /* Use resize filter - (very slow) */
  IntegerInterpolatePixel,           /* Integer (floor) interpolation */
  MeshInterpolatePixel,              /* Triangular mesh interpolation */
  NearestNeighborInterpolatePixel,   /* Nearest neighbour only */
  SplineInterpolatePixel,            /* Cubic Spline (blurred) interpolation */
  Average9InterpolatePixel,          /* Average 9 nearest neighbours */
  Average16InterpolatePixel,         /* Average 16 nearest neighbours */
  BlendInterpolatePixel,             /* blend of nearest 1, 2 or 4 pixels */
  BackgroundInterpolatePixel,        /* just return background color */
  CatromInterpolatePixel             /* Catmull-Rom interpolation */
} InterpolatePixelMethod;

typedef enum
{
  PixelRed = 0,
  PixelCyan = 0,
  PixelGray = 0,
  PixelY = 0,
  PixelGreen = 1,
  PixelMagenta = 1,
  PixelCb = 1,
  PixelBlue = 2,
  PixelYellow = 2,
  PixelCr = 2,
  PixelAlpha = 3,
  PixelBlack = 4,
  PixelIndex = 4,
  MaskPixelComponent = 5
} PixelComponent;

typedef enum
{
  UndefinedPixelIntensityMethod = 0,
  AveragePixelIntensityMethod,
  BrightnessPixelIntensityMethod,
  LightnessPixelIntensityMethod,
  Rec601LumaPixelIntensityMethod,
  Rec601LuminancePixelIntensityMethod,
  Rec709LumaPixelIntensityMethod,
  Rec709LuminancePixelIntensityMethod,
  RMSPixelIntensityMethod,
  MSPixelIntensityMethod
} PixelIntensityMethod;

/*
  Pixel typedef declarations.
*/
typedef struct _DoublePixelPacket
{
  double
    red,
    green,
    blue,
    opacity,
    index;
} DoublePixelPacket;

typedef struct _LongPixelPacket
{
  unsigned int
    red,
    green,
    blue,
    opacity,
    index;
} LongPixelPacket;

typedef struct _MagickPixelPacket
{
  ClassType
    storage_class;

  ColorspaceType
    colorspace;

  MagickBooleanType
    matte;

  double
    fuzz;

  size_t
    depth;

  MagickRealType
    red,
    green,
    blue,
    opacity,
    index;
} MagickPixelPacket;

typedef Quantum IndexPacket;

typedef struct _PixelPacket
{
#if defined(MAGICKCORE_WORDS_BIGENDIAN)
#define MAGICK_PIXEL_RGBA  1
  Quantum
    red,
    green,
    blue,
    opacity;
#else
#define MAGICK_PIXEL_BGRA  1
  Quantum
    blue,
    green,
    red,
    opacity;
#endif
} PixelPacket;

typedef struct _QuantumPixelPacket
{
  Quantum
    red,
    green,
    blue,
    opacity,
    index;
} QuantumPixelPacket;

typedef struct _CacheView
  CacheView_;

/*
  Pixel method declarations.
*/
extern MagickExport MagickBooleanType
  ExportImagePixels(const Image *,const ssize_t,const ssize_t,const size_t,
    const size_t,const char *,const StorageType,void *,ExceptionInfo *),
  ImportImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
    const size_t,const char *,const StorageType,const void *),
  InterpolateMagickPixelPacket(const Image *magick_restrict,const CacheView_ *,
    const InterpolatePixelMethod,const double,const double,MagickPixelPacket *,
    ExceptionInfo *);

extern MagickExport MagickPixelPacket
  *CloneMagickPixelPacket(const MagickPixelPacket *);

extern MagickExport MagickRealType
  DecodePixelGamma(const MagickRealType) magick_hot_spot,
  EncodePixelGamma(const MagickRealType) magick_hot_spot,
  GetMagickPixelIntensity(const Image *image,
    const MagickPixelPacket *magick_restrict) magick_hot_spot,
  GetPixelIntensity(const Image *image,const PixelPacket *magick_restrict)
    magick_hot_spot;

extern MagickExport void
  ConformMagickPixelPacket(Image *,const MagickPixelPacket *,
    MagickPixelPacket *,ExceptionInfo *),
  GetMagickPixelPacket(const Image *,MagickPixelPacket *);

#if defined(__cplusplus) || defined(c_plusplus)
}
#endif

#endif

Directory Contents

Dirs: 0 × Files: 101

Name Size Perms Modified Actions
948 B lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.26 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
947 B lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.33 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.75 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.39 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
3.73 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.80 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.67 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.09 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.01 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.43 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.93 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1005 B lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.39 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.05 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
3.18 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.01 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.81 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.51 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.21 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.14 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
17.05 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.01 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.63 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
972 B lrw-r--r-- 2026-06-04 23:03:23
Edit Download
5.61 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
4.15 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.91 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
4.47 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.69 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.37 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1012 B lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.94 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
3.99 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.82 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.46 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
934 B lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.67 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
10.97 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
963 B lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.01 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.28 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.59 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.67 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.60 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
45.37 KB lrw-r--r-- 2026-06-12 10:03:54
Edit Download
203 B lrw-r--r-- 2026-06-12 10:06:22
Edit Download
6.56 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
195 B lrw-r--r-- 2026-06-12 10:06:22
Edit Download
6.82 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
3.68 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
4.59 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.71 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
3.54 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
4.12 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
107.99 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.39 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.21 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.56 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.71 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
4.54 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.44 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
5.27 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.72 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
8.11 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
4.67 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.85 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
902 B lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.73 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.57 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.93 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
5.18 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.61 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.45 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.58 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.71 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.79 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.06 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.30 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.09 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
910 B lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.96 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
10.00 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
4.85 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.07 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
3.61 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
10.55 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.37 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.54 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.57 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.89 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.09 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.90 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
3.05 KB lrw-r--r-- 2026-06-12 10:03:54
Edit Download
183 B lrw-r--r-- 2026-06-12 10:06:22
Edit Download
936 B lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.76 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.55 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
2.07 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download
1.07 KB lrw-r--r-- 2026-06-04 23:03:23
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).