Class FrameConverter<F>

java.lang.Object
org.bytedeco.copiedstuff.FrameConverter<F>
Direct Known Subclasses:
Java2DFrameConverter

public abstract class FrameConverter<F>
extends Object
Defines two methods to convert between a Frame and another generic data object that can contain the same data. The idea with this design is to allow users to convert easily between multiple potentially mutually exclusive types of image data objects over which we have no control. Because of this, and for performance reasons, any object returned by this class is guaranteed to remain valid only until the next call to convert(), anywhere in a chain of FrameConverter objects, and only as long as the latter themselves are not garbage collected.
  • Field Details

    • frame

      protected Frame frame
  • Constructor Details

    • FrameConverter

      public FrameConverter()
  • Method Details

    • convert

      public abstract Frame convert​(F f)
    • convert

      public abstract F convert​(Frame frame)