mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 20:45:29 -04:00
#395 Removed WebP lossless and extended format (until it's implemented).
This commit is contained in:
parent
8bf9f7a8f0
commit
3f7cb24407
@ -74,8 +74,9 @@ public final class WebPImageReaderSpi extends ImageReaderSpiBase {
|
|||||||
int chunk = stream.readInt();
|
int chunk = stream.readInt();
|
||||||
|
|
||||||
switch (chunk) {
|
switch (chunk) {
|
||||||
case WebP.CHUNK_VP8L:
|
// TODO. Support lossless
|
||||||
case WebP.CHUNK_VP8X:
|
// case WebP.CHUNK_VP8L:
|
||||||
|
// case WebP.CHUNK_VP8X:
|
||||||
case WebP.CHUNK_VP8_:
|
case WebP.CHUNK_VP8_:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
|
@ -29,13 +29,14 @@ public class WebPImageReaderTest extends ImageReaderAbstractTest<WebPImageReader
|
|||||||
new TestData(getClassLoaderResource("/webp/small_13x1.webp"), new Dimension(13, 1)),
|
new TestData(getClassLoaderResource("/webp/small_13x1.webp"), new Dimension(13, 1)),
|
||||||
new TestData(getClassLoaderResource("/webp/small_31x13.webp"), new Dimension(31, 13)),
|
new TestData(getClassLoaderResource("/webp/small_31x13.webp"), new Dimension(31, 13)),
|
||||||
new TestData(getClassLoaderResource("/webp/test.webp"), new Dimension(128, 128)),
|
new TestData(getClassLoaderResource("/webp/test.webp"), new Dimension(128, 128)),
|
||||||
new TestData(getClassLoaderResource("/webp/very_short.webp"), new Dimension(63, 66)),
|
new TestData(getClassLoaderResource("/webp/very_short.webp"), new Dimension(63, 66))
|
||||||
// Lossless
|
// TODO: Support lossless
|
||||||
new TestData(getClassLoaderResource("/webp/1_webp_ll.webp"), new Dimension(400, 301)),
|
// // Lossless
|
||||||
// Extended format: Alpha + VP8
|
// new TestData(getClassLoaderResource("/webp/1_webp_ll.webp"), new Dimension(400, 301)),
|
||||||
new TestData(getClassLoaderResource("/webp/1_webp_a.webp"), new Dimension(400, 301)),
|
// // Extended format: Alpha + VP8
|
||||||
// Extendad format: Anim
|
// new TestData(getClassLoaderResource("/webp/1_webp_a.webp"), new Dimension(400, 301)),
|
||||||
new TestData(getClassLoaderResource("/webp/animated-webp-supported.webp"), new Dimension(400, 400))
|
// // Extendad format: Anim
|
||||||
|
// new TestData(getClassLoaderResource("/webp/animated-webp-supported.webp"), new Dimension(400, 400))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user