Lines Matching refs:image

809 #define PNG_INTERLACE_NONE        0 /* Non-interlaced image */
826 #define PNG_SCALE_UNKNOWN 0 /* unknown unit (image scale) */
913 * png_bytep data of the row. When transforming an interlaced image the
914 * row number is the row number within the sub-image of the interlace pass, so
915 * the value will increase to the height of the sub-image (not the full image)
919 * find the output pixel (x,y) given an interlaced sub-image pixel
1137 /* Writes all the PNG information before the image. */
1144 /* Read the information before the actual image data. */
1237 * image. These are the 'STANDARD', 'ASSOCIATED' or 'PREMULTIPLIED' modes
1248 * opaque areas of the composited PNG image because of arithmetic overflow.
1297 * significant banding in dark areas of the image.
1309 * If you just need to composite the PNG image onto an existing background
1320 * case will probably result in halos around the image. The linear encoding
1321 * will probably result in a washed out, too bright, image (it's actually too
1327 * halos round the opaque parts of the image where the background is light.
1494 /* Read one or more rows of image data. */
1506 /* Read the whole image into memory at once. */
1507 PNG_EXPORT(57, void, png_read_image, (png_structrp png_ptr, png_bytepp image));
1510 /* Write a row of image data */
1514 /* Write a few rows of image data: (*row) is not written; however, the type
1522 /* Write the image data */
1523 PNG_EXPORT(60, void, png_write_image, (png_structrp png_ptr, png_bytepp image));
1616 * improve the compression for a given image.
1624 * unduly increasing the compressed image size.
1782 * transform callback. Also note that when transforming an interlaced image the
1783 * row number is the row number within the sub-image of the interlace pass, so
1784 * the value will increase to the height of the sub-image (not the full image)
1788 * find the output pixel (x,y) given an interlaced sub-image pixel
1895 /* Build image index for partial image decoding. */
1900 * REQUIRED by partial image decode.
1937 /* Fatal error in PNG image of libpng - can't continue */
1946 /* Fatal error in PNG image of libpng - can't continue */
2023 /* Returns number of color channels in image. */
2028 /* Returns image width in pixels. */
2032 /* Returns image height in pixels. */
2036 /* Returns image bit_depth. */
2040 /* Returns image color_type. */
2044 /* Returns image filter_type. */
2048 /* Returns image interlace_type. */
2052 /* Returns image compression_type. */
2056 /* Returns image resolution in pixels per meter, from pHYs chunk data. */
2070 /* Returns image x, y offset in pixels or microns, from oFFs chunk data. */
2593 * full, image which appears in a given pass. 'pass' is in the range 0
2609 * rows or columns in each 8x8 tile of the original image.
2615 * pass of an image given its height or width. In fact these macros may
2616 * return non-zero even though the sub-image is empty, because the other
2617 * dimension may be empty for a small image.
2625 * necessary to find the row in the output image given a row in an interlaced
2626 * image, so two more macros:
2779 * 4) Allocate a buffer for the image and, if required, the color-map.
2780 * 5) Call png_image_finish_read to read the image and, if required, the
2785 * input image is transformed as necessary to the requested in-memory format
2787 * request a color-mapped image from a PNG that is full-color or makes
2794 * 2) Initialize the members of the structure that describe the image, setting
2795 * the 'format' member to the format of the image samples.
2797 * image and, if necessary, the color-map to write the PNG data.
2799 * png_image is a structure that describes the in-memory format of an image
2800 * when it is being read or defines the in-memory format of an image that you
2844 /* The samples of the image have one to four channels whose components have
2878 * The samples are either contained directly in the image data, between 1 and 8
2880 * by bytes in the image data. In the case of a color-map the color-map entries
2881 * are individual samples, encoded as above, and the image data has one byte per
2900 * image data. Do not set the PNG_FORMAT_FLAG_COLORMAP bit directly!
2915 #define PNG_FORMAT_FLAG_COLORMAP 0x08U /* image data is color-mapped */
2948 /* With color-mapped formats the image data is one byte for each pixel, the byte
2964 * actual image sample values - either the entries in the color-map or the
2965 * pixels in the image. The PNG_IMAGE_PIXEL_ macros return corresponding values
2967 * remaining macros return information about the rows in the image and the
2968 * complete image.
2985 * entry (as appropriate) in the image: 1 or 2.
2990 /* This is the size of the sample data for one sample. If the image is
2991 * color-mapped it is the size of one color-map entry (and image pixels are
2992 * one byte in size), otherwise it is the size of one image pixel.
3017 * color-mapped image.
3023 * image.
3027 /* The size, in bytes, of a complete pixel; 1 for a color-mapped image. */
3029 /* Information about the whole row, or whole image */
3030 #define PNG_IMAGE_ROW_STRIDE(image)\
3031 (PNG_IMAGE_PIXEL_CHANNELS((image).format) * (image).width)
3032 /* Return the total number of components in a single row of the image; this
3034 * row. For a color-mapped image this is the minimum number of bytes in a
3038 #define PNG_IMAGE_BUFFER_SIZE(image, row_stride)\
3039 (PNG_IMAGE_PIXEL_COMPONENT_SIZE((image).format)*(image).height*(row_stride))
3040 /* Return the size, in bytes, of an image buffer given a png_image and a row
3044 #define PNG_IMAGE_SIZE(image)\
3045 PNG_IMAGE_BUFFER_SIZE(image, PNG_IMAGE_ROW_STRIDE(image))
3046 /* Return the size, in bytes, of the image in memory given just a png_image;
3047 * the row stride is the minimum stride required for the image.
3050 #define PNG_IMAGE_COLORMAP_SIZE(image)\
3051 (PNG_IMAGE_SAMPLE_SIZE((image).format) * (image).colormap_entries)
3052 /* Return the size, in bytes, of the color-map of this image. If the image
3060 * Flags containing additional information about the image are held in the
3073 * repeatedly. For a typical 24-bit image the option will double the read
3074 * speed at the cost of increasing the image size by 25%, however for many
3080 /* On read if the image is a 16-bit per component image and there is no gAMA
3105 PNG_EXPORT(234, int, png_image_begin_read_from_file, (png_imagep image,
3107 /* The named file is opened for read and the image header is filled in
3111 PNG_EXPORT(235, int, png_image_begin_read_from_stdio, (png_imagep image,
3116 PNG_EXPORT(236, int, png_image_begin_read_from_memory, (png_imagep image,
3120 PNG_EXPORT(237, int, png_image_finish_read, (png_imagep image,
3123 /* Finish reading the image into the supplied buffer and clean up the
3151 * image->colormap_entries will be updated to the actual number of entries
3155 PNG_EXPORT(238, void, png_image_free, (png_imagep image));
3156 /* Free any data allocated by libpng in image->opaque, setting the pointer to
3165 * For write you must initialize a png_image structure to describe the image to
3167 * initialize fields describing your image.
3171 * width: image width in pixels
3172 * height: image height in rows
3173 * format: the format of the data (image and color-map) you wish to write
3179 PNG_EXPORT(239, int, png_image_write_to_file, (png_imagep image,
3182 /* Write the image to the named file. */
3184 PNG_EXPORT(240, int, png_image_write_to_stdio, (png_imagep image, FILE *file,
3187 /* Write the image to the given (FILE*). */
3189 /* With both write APIs if image is in one of the linear formats with 16-bit
3195 * with at least image->colormap_entries encoded in the specified format. If