private static Pair < Integer , Integer > getVP8XDimension ( final InputStream is ) throws IOException { // We have to skip 8 bytes is . skip ( 8 ) ; // Read 3 bytes for width and height return new Pair <> ( read3Bytes ( is ) + 1 , read3Bytes ( is ) + 1 ) ; }
We manage the Extended WebP case