public static boolean isLosslessWebpHeader(final byte[] imageHeaderBytes, final int offset) {
    return matchBytePattern(imageHeaderBytes, offset + 12, WEBP_VP8L_BYTES);
  }
Checks whether underlying platform supports extended WebPs
fbcore/src/main/java/com/facebook/common/webp/WebpSupportStatus.java