Package org.libheiffx

Class HEIFImageLoader

java.lang.Object
com.sun.javafx.iio.common.ImageLoaderImpl
org.libheiffx.HEIFImageLoader
All Implemented Interfaces:
com.sun.javafx.iio.ImageLoader

public class HEIFImageLoader extends com.sun.javafx.iio.common.ImageLoaderImpl
Class to load the raw image requested by the input stream
Author:
Clemens Lanthaler
  • Field Summary

    Fields inherited from class com.sun.javafx.iio.common.ImageLoaderImpl

    formatDescription, lastPercentDone, listeners
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    HEIFImageLoader(InputStream input, org.librawfx.dimension.DimensionProvider dimensionProvider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
    void
     
    protected void
     
    float
     
    com.sun.javafx.iio.ImageFrame
    load(int imageIndex, int width, int height, boolean preserveAspectRatio, boolean smooth)
     
    protected void
    updateImageMetadata(com.sun.javafx.iio.ImageMetadata im)
     
    protected void
     
    void
    updateImageProgress(int outLinesDecoded, int outHeight)
    Method called by the class LibheifImage to update the progress

    Methods inherited from class com.sun.javafx.iio.common.ImageLoaderImpl

    addListener, getFormatDescription, removeListener

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HEIFImageLoader

      protected HEIFImageLoader(InputStream input, org.librawfx.dimension.DimensionProvider dimensionProvider)
  • Method Details

    • dispose

      public void dispose()
    • updateImageMetadata

      protected void updateImageMetadata(com.sun.javafx.iio.ImageMetadata im)
      Overrides:
      updateImageMetadata in class com.sun.javafx.iio.common.ImageLoaderImpl
    • updateImageProgress

      protected void updateImageProgress(float f)
      Overrides:
      updateImageProgress in class com.sun.javafx.iio.common.ImageLoaderImpl
    • emitWarning

      protected void emitWarning(String string)
      Overrides:
      emitWarning in class com.sun.javafx.iio.common.ImageLoaderImpl
    • load

      public com.sun.javafx.iio.ImageFrame load(int imageIndex, int width, int height, boolean preserveAspectRatio, boolean smooth) throws IOException
      Throws:
      IOException
    • getPixelScale

      public float getPixelScale()
    • calculateMaxRenderScale

      public float calculateMaxRenderScale()
    • updateImageProgress

      public void updateImageProgress(int outLinesDecoded, int outHeight)
      Method called by the class LibheifImage to update the progress
      Parameters:
      outLinesDecoded - Lines decoded
      outHeight - overall height of the native image