|
|
@ -14,49 +14,51 @@ namespace ImageSharp.Tests |
|
|
{ |
|
|
{ |
|
|
private static readonly string folder = "TestImages/Formats/Png/"; |
|
|
private static readonly string folder = "TestImages/Formats/Png/"; |
|
|
|
|
|
|
|
|
public static string P1 => folder + "pl.png"; |
|
|
public static TestFile P1 => new TestFile(folder + "pl.png"); |
|
|
public static string Pd => folder + "pd.png"; |
|
|
public static TestFile Pd => new TestFile(folder + "pd.png"); |
|
|
public static string Blur => folder + "blur.png"; |
|
|
public static TestFile Blur => new TestFile(folder + "blur.png"); |
|
|
public static string Indexed => folder + "indexed.png"; |
|
|
public static TestFile Indexed => new TestFile(folder + "indexed.png"); |
|
|
public static string Splash => folder + "splash.png"; |
|
|
public static TestFile Splash => new TestFile(folder + "splash.png"); |
|
|
|
|
|
|
|
|
public static string SplashInterlaced => folder + "splash-interlaced.png"; |
|
|
public static TestFile SplashInterlaced => new TestFile(folder + "splash-interlaced.png"); |
|
|
|
|
|
|
|
|
public static string Interlaced => folder + "interlaced.png"; |
|
|
public static TestFile Interlaced => new TestFile(folder + "interlaced.png"); |
|
|
|
|
|
|
|
|
// filtered test images from http://www.schaik.com/pngsuite/pngsuite_fil_png.html
|
|
|
// filtered test images from http://www.schaik.com/pngsuite/pngsuite_fil_png.html
|
|
|
public static string Filter0 => folder + "filter0.png"; |
|
|
public static TestFile Filter0 => new TestFile(folder + "filter0.png"); |
|
|
public static string Filter1 => folder + "filter1.png"; |
|
|
public static TestFile Filter1 => new TestFile(folder + "filter1.png"); |
|
|
public static string Filter2 => folder + "filter2.png"; |
|
|
public static TestFile Filter2 => new TestFile(folder + "filter2.png"); |
|
|
public static string Filter3 => folder + "filter3.png"; |
|
|
public static TestFile Filter3 => new TestFile(folder + "filter3.png"); |
|
|
public static string Filter4 => folder + "filter4.png"; |
|
|
public static TestFile Filter4 => new TestFile(folder + "filter4.png"); |
|
|
|
|
|
|
|
|
// filter changing per scanline
|
|
|
// filter changing per scanline
|
|
|
public static string FilterVar => folder + "filterVar.png"; |
|
|
public static TestFile FilterVar => new TestFile(folder + "filterVar.png"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static class Jpeg |
|
|
public static class Jpeg |
|
|
{ |
|
|
{ |
|
|
private static readonly string folder = "TestImages/Formats/Jpg/"; |
|
|
private static readonly string folder = "TestImages/Formats/Jpg/"; |
|
|
public static string Cmyk => folder + "cmyk.jpg"; |
|
|
|
|
|
public static string Exif => folder + "exif.jpg"; |
|
|
public static TestFile Cmyk => new TestFile(folder + "cmyk.jpg"); |
|
|
public static string Floorplan => folder + "Floorplan.jpg"; |
|
|
public static TestFile Exif => new TestFile(folder + "exif.jpg"); |
|
|
public static string Calliphora => folder + "Calliphora.jpg"; |
|
|
public static TestFile Floorplan => new TestFile(folder + "Floorplan.jpg"); |
|
|
public static string Ycck => folder + "ycck.jpg"; |
|
|
public static TestFile Calliphora => new TestFile(folder + "Calliphora.jpg"); |
|
|
public static string Turtle => folder + "turtle.jpg"; |
|
|
public static TestFile Ycck => new TestFile(folder + "ycck.jpg"); |
|
|
public static string Fb => folder + "fb.jpg"; |
|
|
public static TestFile Turtle => new TestFile(folder + "turtle.jpg"); |
|
|
public static string Progress => folder + "progress.jpg"; |
|
|
public static TestFile Fb => new TestFile(folder + "fb.jpg"); |
|
|
public static string GammaDalaiLamaGray => folder + "gamma_dalai_lama_gray.jpg"; |
|
|
public static TestFile Progress => new TestFile(folder + "progress.jpg"); |
|
|
|
|
|
public static TestFile GammaDalaiLamaGray => new TestFile(folder + "gamma_dalai_lama_gray.jpg"); |
|
|
public static string Festzug => folder + "Festzug.jpg"; |
|
|
|
|
|
public static string Hiyamugi => folder + "Hiyamugi.jpg"; |
|
|
public static TestFile Festzug => new TestFile(folder + "Festzug.jpg"); |
|
|
|
|
|
public static TestFile Hiyamugi => new TestFile(folder + "Hiyamugi.jpg"); |
|
|
public static string Jpeg400 => folder + "baseline/jpeg400jfif.jpg"; |
|
|
|
|
|
public static string Jpeg420 => folder + "baseline/jpeg420exif.jpg"; |
|
|
public static TestFile Jpeg400 => new TestFile(folder + "baseline/jpeg400jfif.jpg"); |
|
|
public static string Jpeg422 => folder + "baseline/jpeg422jfif.jpg"; |
|
|
public static TestFile Jpeg420 => new TestFile(folder + "baseline/jpeg420exif.jpg"); |
|
|
public static string Jpeg444 => folder + "baseline/jpeg444.jpg"; |
|
|
public static TestFile Jpeg422 => new TestFile(folder + "baseline/jpeg422jfif.jpg"); |
|
|
|
|
|
public static TestFile Jpeg444 => new TestFile(folder + "baseline/jpeg444.jpg"); |
|
|
|
|
|
|
|
|
public static readonly string[] All = { |
|
|
|
|
|
|
|
|
public static readonly TestFile[] All = { |
|
|
Cmyk, Exif, Floorplan, Calliphora, Turtle, Fb, Progress, GammaDalaiLamaGray, |
|
|
Cmyk, Exif, Floorplan, Calliphora, Turtle, Fb, Progress, GammaDalaiLamaGray, |
|
|
Festzug, Hiyamugi, |
|
|
Festzug, Hiyamugi, |
|
|
Jpeg400, Jpeg420, Jpeg444, |
|
|
Jpeg400, Jpeg420, Jpeg444, |
|
|
@ -67,13 +69,13 @@ namespace ImageSharp.Tests |
|
|
{ |
|
|
{ |
|
|
private static readonly string folder = "TestImages/Formats/Bmp/"; |
|
|
private static readonly string folder = "TestImages/Formats/Bmp/"; |
|
|
|
|
|
|
|
|
public static string Car => folder + "Car.bmp"; |
|
|
public static TestFile Car => new TestFile(folder + "Car.bmp"); |
|
|
|
|
|
|
|
|
public static string F => folder + "F.bmp"; |
|
|
public static TestFile F => new TestFile(folder + "F.bmp"); |
|
|
|
|
|
|
|
|
public static string NegHeight => folder + "neg_height.bmp"; |
|
|
public static TestFile NegHeight => new TestFile(folder + "neg_height.bmp"); |
|
|
|
|
|
|
|
|
public static readonly string[] All = { |
|
|
public static readonly TestFile[] All = { |
|
|
Car, F, NegHeight |
|
|
Car, F, NegHeight |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
@ -82,8 +84,8 @@ namespace ImageSharp.Tests |
|
|
{ |
|
|
{ |
|
|
private static readonly string folder = "TestImages/Formats/Gif/"; |
|
|
private static readonly string folder = "TestImages/Formats/Gif/"; |
|
|
|
|
|
|
|
|
public static string Rings => folder + "rings.gif"; |
|
|
public static TestFile Rings => new TestFile(folder + "rings.gif"); |
|
|
public static string Giphy => folder + "giphy.gif"; |
|
|
public static TestFile Giphy => new TestFile(folder + "giphy.gif"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|