private FileDescriptor getMemoryFileDescriptor(MemoryFile memoryFile) {
    try {
      Object rawFD = getFileDescriptorMethod().invoke(memoryFile);
      // NULLSAFE_FIXME[Return Not Nullable]
      return (FileDescriptor) rawFD;
    } catch (Exception e) {
      throw Throwables.propagate(e);
    }
  }
This is the test in order to directly decoding all types of webp images
static-webp/src/androidTest/java/com/facebook/webpsupport/WebpDecodingTest.java