ReactOS 0.4.15-dev-8636-g945e856
|
#include <math.h>
#include <assert.h>
#include <stdio.h>
#include "initguid.h"
#include "objbase.h"
#include "gdiplus.h"
#include "wine/test.h"
#include "pshpack2.h"
#include "poppack.h"
Go to the source code of this file.
Classes | |
struct | BITMAPINFOWITHBITFIELDS |
union | BITMAPINFOUNION |
struct | IFD_entry |
struct | IFD_rational |
struct | tiff_data |
struct | tiff_1x1_data |
Macros | |
#define | COBJMACROS |
#define | expect(expected, got) ok((got) == (expected), "Expected %d, got %d\n", (UINT)(expected), (UINT)(got)) |
#define | expectf(expected, got) ok(fabs((expected) - (got)) < 0.0001, "Expected %f, got %f\n", (expected), (got)) |
#define | IFD_BYTE 1 |
#define | IFD_ASCII 2 |
#define | IFD_SHORT 3 |
#define | IFD_LONG 4 |
#define | IFD_RATIONAL 5 |
#define | IFD_SBYTE 6 |
#define | IFD_UNDEFINED 7 |
#define | IFD_SSHORT 8 |
#define | IFD_SLONG 9 |
#define | IFD_SRATIONAL 10 |
#define | IFD_FLOAT 11 |
#define | IFD_DOUBLE 12 |
#define | PropertyTagTypeSByte 6 |
#define | PropertyTagTypeSShort 8 |
#define | PropertyTagTypeFloat 11 |
#define | PropertyTagTypeDouble 12 |
#define | PNG_COLOR_TYPE_GRAY 0 |
#define | PNG_COLOR_TYPE_RGB 2 |
#define | PNG_COLOR_TYPE_PALETTE 3 |
#define | PNG_COLOR_TYPE_GRAY_ALPHA 4 |
#define | PNG_COLOR_TYPE_RGB_ALPHA 6 |
Functions | |
DEFINE_GUID (BlurEffectGuid, 0x633c80a4, 0x1843, 0x482b, 0x9e, 0xf2, 0xbe, 0x28, 0x34, 0xc5, 0xfd, 0xd4) | |
DEFINE_GUID (SharpenEffectGuid, 0x63cbf3ee, 0xc526, 0x402c, 0x8f, 0x71, 0x62, 0xc5, 0x40, 0xbf, 0x51, 0x42) | |
DEFINE_GUID (ColorMatrixEffectGuid, 0x718f2615, 0x7933, 0x40e3, 0xa5, 0x11, 0x5f, 0x68, 0xfe, 0x14, 0xdd, 0x74) | |
DEFINE_GUID (ColorLUTEffectGuid, 0xa7ce72a9, 0x0f7f, 0x40d7, 0xb3, 0xcc, 0xd0, 0xc0, 0x2d, 0x5c, 0x32, 0x12) | |
DEFINE_GUID (BrightnessContrastEffectGuid, 0xd3a1dbe1, 0x8ec4, 0x4c17, 0x9f, 0x4c, 0xea, 0x97, 0xad, 0x1c, 0x34, 0x3d) | |
DEFINE_GUID (HueSaturationLightnessEffectGuid, 0x8b2dd6c3, 0xeb07, 0x4d87, 0xa5, 0xf0, 0x71, 0x08, 0xe2, 0x6a, 0x9c, 0x5f) | |
DEFINE_GUID (LevelsEffectGuid, 0x99c354ec, 0x2a31, 0x4f3a, 0x8c, 0x34, 0x17, 0xa8, 0x03, 0xb3, 0x3a, 0x25) | |
DEFINE_GUID (TintEffectGuid, 0x1077af00, 0x2848, 0x4441, 0x94, 0x89, 0x44, 0xad, 0x4c, 0x2d, 0x7a, 0x2c) | |
DEFINE_GUID (ColorBalanceEffectGuid, 0x537e597d, 0x251e, 0x48da, 0x96, 0x64, 0x29, 0xca, 0x49, 0x6b, 0x70, 0xf8) | |
DEFINE_GUID (RedEyeCorrectionEffectGuid, 0x74d29d05, 0x69a4, 0x4266, 0x95, 0x49, 0x3c, 0xc5, 0x28, 0x36, 0xb6, 0x32) | |
DEFINE_GUID (ColorCurveEffectGuid, 0xdd6a0022, 0x58e4, 0x4a67, 0x9d, 0x9b, 0xd4, 0x8e, 0xb8, 0x81, 0xa5, 0x3d) | |
static | GpStatus (WINAPI *pGdipBitmapGetHistogramSize)(HistogramFormat |
static UINT *static UINT UINT UINT UINT *static GdiplusAbort *static | GpStatus (WINGDIPAPI *pGdipInitializePalette)(ColorPalette * |
static BOOL | color_match (ARGB c1, ARGB c2, BYTE max_diff) |
static void | expect_guid (REFGUID expected, REFGUID got, int line, BOOL todo) |
static void | expect_rawformat (REFGUID expected, GpImage *img, int line, BOOL todo) |
static void | test_bufferrawformat (void *buff, int size, REFGUID expected, int line, BOOL todo) |
static void | test_Scan0 (void) |
static void | test_FromGdiDib (void) |
static void | test_GetImageDimension (void) |
static void | test_GdipImageGetFrameDimensionsCount (void) |
static void | test_LoadingImages (void) |
static void | test_SavingImages (void) |
static void | test_encoders (void) |
static void | test_LockBits (void) |
static void | test_LockBits_UserBuf (void) |
static void | test_GdipCreateBitmapFromHBITMAP (void) |
static void | test_GdipGetImageFlags (void) |
static void | test_GdipCloneImage (void) |
static void | test_testcontrol (void) |
static void | test_fromhicon (void) |
static void | test_getrawformat (void) |
static void | test_loadwmf (void) |
static void | test_createfromwmf (void) |
static void | test_createfromwmf_noplaceable (void) |
static void | test_resolution (void) |
static void | test_createhbitmap (void) |
static void | test_getthumbnail (void) |
static void | test_getsetpixel (void) |
static void | check_halftone_palette (ColorPalette *palette) |
static void | test_palette (void) |
static void | test_colormatrix (void) |
static void | test_gamma (void) |
static void | test_multiframegif (void) |
static void | test_rotateflip (void) |
static void | test_remaptable (void) |
static void | test_colorkey (void) |
static void | test_dispose (void) |
static LONG | obj_refcount (void *obj) |
static GpImage * | load_image (const BYTE *image_data, UINT image_size, BOOL valid_data, BOOL todo_load) |
static void | test_image_properties (void) |
static UINT | documented_type (UINT type) |
static void | test_tiff_properties (void) |
static void | test_GdipGetAllPropertyItems (void) |
static void | test_tiff_palette (void) |
static void | test_bitmapbits (void) |
static void | test_DrawImage (void) |
static void | test_DrawImage_SourceCopy (void) |
static void | test_GdipDrawImagePointRect (void) |
static void | test_image_format (void) |
static void | test_DrawImage_scale (void) |
static void | test_gif_properties (void) |
static void | test_ARGB_conversion (void) |
static void | test_CloneBitmapArea (void) |
static BOOL | get_encoder_clsid (LPCWSTR mime, GUID *format, CLSID *clsid) |
static void | test_supported_encoders (void) |
static void | test_createeffect (void) |
static void | test_getadjustedpalette (void) |
static void | test_histogram (void) |
static void | test_imageabort (void) |
static void | test_png_color_formats (void) |
static void | test_GdipLoadImageFromStream (void) |
static BYTE * | init_bitmap (UINT *width, UINT *height, UINT *stride) |
static void | test_GdipInitializePalette (void) |
static void | test_tiff_color_formats (void) |
START_TEST (image) | |
Variables | |
static UINT *static | HistogramFormat |
static UINT *static | UINT |
static UINT *static UINT UINT UINT UINT *static GdiplusAbort *static | PaletteType |
static UINT *static UINT UINT UINT UINT *static GdiplusAbort *static | INT |
static UINT *static UINT UINT UINT UINT *static GdiplusAbort *static | BOOL |
static const unsigned char | pngimage [285] |
static const unsigned char | gifimage [35] |
static const unsigned char | transparentgif [] |
static const unsigned char | bmpimage [66] |
static const unsigned char | jpgimage [285] |
static const unsigned char | tiffimage [] |
static const unsigned char | wmfimage [180] |
static const unsigned char | gifanimation [72] |
static const unsigned char | gifanimation2 [] |
static ARGB | gifanimation2_pixels [5][4] |
static const struct tiff_data | TIFF_data |
static const BYTE | animatedgif [] |
static const char | png_1x1_data [] |
static const struct tiff_1x1_data | tiff_1x1_data |
|
static |
Definition at line 2053 of file image.c.
Referenced by test_palette().
Definition at line 59 of file image.c.
Referenced by test_colorkey(), test_colormatrix(), test_gamma(), and test_remaptable().
DEFINE_GUID | ( | BlurEffectGuid | , |
0x633c80a4 | , | ||
0x1843 | , | ||
0x482b | , | ||
0x9e | , | ||
0xf2 | , | ||
0xbe | , | ||
0x28 | , | ||
0x34 | , | ||
0xc5 | , | ||
0xfd | , | ||
0xd4 | |||
) |
DEFINE_GUID | ( | BrightnessContrastEffectGuid | , |
0xd3a1dbe1 | , | ||
0x8ec4 | , | ||
0x4c17 | , | ||
0x9f | , | ||
0x4c | , | ||
0xea | , | ||
0x97 | , | ||
0xad | , | ||
0x1c | , | ||
0x34 | , | ||
0x3d | |||
) |
DEFINE_GUID | ( | ColorBalanceEffectGuid | , |
0x537e597d | , | ||
0x251e | , | ||
0x48da | , | ||
0x96 | , | ||
0x64 | , | ||
0x29 | , | ||
0xca | , | ||
0x49 | , | ||
0x6b | , | ||
0x70 | , | ||
0xf8 | |||
) |
DEFINE_GUID | ( | ColorCurveEffectGuid | , |
0xdd6a0022 | , | ||
0x58e4 | , | ||
0x4a67 | , | ||
0x9d | , | ||
0x9b | , | ||
0xd4 | , | ||
0x8e | , | ||
0xb8 | , | ||
0x81 | , | ||
0xa5 | , | ||
0x3d | |||
) |
DEFINE_GUID | ( | ColorLUTEffectGuid | , |
0xa7ce72a9 | , | ||
0x0f7f | , | ||
0x40d7 | , | ||
0xb3 | , | ||
0xcc | , | ||
0xd0 | , | ||
0xc0 | , | ||
0x2d | , | ||
0x5c | , | ||
0x32 | , | ||
0x12 | |||
) |
DEFINE_GUID | ( | ColorMatrixEffectGuid | , |
0x718f2615 | , | ||
0x7933 | , | ||
0x40e3 | , | ||
0xa5 | , | ||
0x11 | , | ||
0x5f | , | ||
0x68 | , | ||
0xfe | , | ||
0x14 | , | ||
0xdd | , | ||
0x74 | |||
) |
DEFINE_GUID | ( | HueSaturationLightnessEffectGuid | , |
0x8b2dd6c3 | , | ||
0xeb07 | , | ||
0x4d87 | , | ||
0xa5 | , | ||
0xf0 | , | ||
0x71 | , | ||
0x08 | , | ||
0xe2 | , | ||
0x6a | , | ||
0x9c | , | ||
0x5f | |||
) |
DEFINE_GUID | ( | LevelsEffectGuid | , |
0x99c354ec | , | ||
0x2a31 | , | ||
0x4f3a | , | ||
0x8c | , | ||
0x34 | , | ||
0x17 | , | ||
0xa8 | , | ||
0x03 | , | ||
0xb3 | , | ||
0x3a | , | ||
0x25 | |||
) |
DEFINE_GUID | ( | RedEyeCorrectionEffectGuid | , |
0x74d29d05 | , | ||
0x69a4 | , | ||
0x4266 | , | ||
0x95 | , | ||
0x49 | , | ||
0x3c | , | ||
0xc5 | , | ||
0x28 | , | ||
0x36 | , | ||
0xb6 | , | ||
0x32 | |||
) |
DEFINE_GUID | ( | SharpenEffectGuid | , |
0x63cbf3ee | , | ||
0xc526 | , | ||
0x402c | , | ||
0x8f | , | ||
0x71 | , | ||
0x62 | , | ||
0xc5 | , | ||
0x40 | , | ||
0xbf | , | ||
0x51 | , | ||
0x42 | |||
) |
DEFINE_GUID | ( | TintEffectGuid | , |
0x1077af00 | , | ||
0x2848 | , | ||
0x4441 | , | ||
0x94 | , | ||
0x89 | , | ||
0x44 | , | ||
0xad | , | ||
0x4c | , | ||
0x2d | , | ||
0x7a | , | ||
0x2c | |||
) |
Definition at line 3475 of file image.c.
Referenced by test_tiff_properties().
Definition at line 71 of file image.c.
Definition at line 85 of file image.c.
Referenced by test_bufferrawformat(), test_fromhicon(), test_GdipCloneImage(), test_GdipCreateBitmapFromHBITMAP(), and test_multiframegif().
Definition at line 4782 of file image.c.
Referenced by test_supported_encoders().
|
static |
Definition at line 5359 of file image.c.
Referenced by test_GdipInitializePalette().
|
static |
Definition at line 3239 of file image.c.
Referenced by test_GdipGetAllPropertyItems(), test_gif_properties(), test_image_properties(), test_png_color_formats(), test_tiff_color_formats(), test_tiff_palette(), and test_tiff_properties().
Definition at line 3233 of file image.c.
Referenced by load_image().
START_TEST | ( | image | ) |
Definition at line 5700 of file image.c.
Definition at line 4686 of file image.c.
Referenced by START_TEST().
Definition at line 3926 of file image.c.
Referenced by START_TEST().
|
static |
Definition at line 96 of file image.c.
Referenced by test_getrawformat().
Definition at line 4757 of file image.c.
Referenced by START_TEST().
Definition at line 3116 of file image.c.
Referenced by START_TEST().
Definition at line 2278 of file image.c.
Referenced by START_TEST().
Definition at line 4863 of file image.c.
Referenced by START_TEST().
Definition at line 1511 of file image.c.
Referenced by START_TEST().
Definition at line 1569 of file image.c.
Referenced by START_TEST().
Definition at line 1679 of file image.c.
Referenced by START_TEST().
Definition at line 3210 of file image.c.
Referenced by START_TEST().
Definition at line 4142 of file image.c.
Referenced by START_TEST().
Definition at line 4369 of file image.c.
Referenced by START_TEST().
Definition at line 4194 of file image.c.
Referenced by START_TEST().
Definition at line 507 of file image.c.
Referenced by START_TEST().
Definition at line 185 of file image.c.
Referenced by START_TEST().
Definition at line 1249 of file image.c.
Referenced by START_TEST().
Definition at line 2543 of file image.c.
Referenced by START_TEST().
Definition at line 895 of file image.c.
Referenced by START_TEST().
Definition at line 4238 of file image.c.
Referenced by START_TEST().
Definition at line 3710 of file image.c.
Referenced by START_TEST().
Definition at line 1079 of file image.c.