Record Class FFProbePixelFormat

java.lang.Object
java.lang.Record
tv.hd3g.ffprobejaxb.data.FFProbePixelFormat

public record FFProbePixelFormat(String name, int nbComponents, int log2ChromaW, int log2ChromaH, int bitsPerPixel, boolean bigEndian, boolean palette, boolean bitstream, boolean hwaccel, boolean planar, boolean rgb, boolean alpha, List<Integer> bitDepthByComponent) extends Record
PixelFormatType
  • Constructor Summary

    Constructors
    Constructor
    Description
    FFProbePixelFormat(String name, int nbComponents, int log2ChromaW, int log2ChromaH, int bitsPerPixel, boolean bigEndian, boolean palette, boolean bitstream, boolean hwaccel, boolean planar, boolean rgb, boolean alpha, List<Integer> bitDepthByComponent)
    Creates an instance of a FFProbePixelFormat record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the alpha record component.
    boolean
    Returns the value of the bigEndian record component.
    Returns the value of the bitDepthByComponent record component.
    int
    Returns the value of the bitsPerPixel record component.
    boolean
    Returns the value of the bitstream record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the hwaccel record component.
    int
    Returns the value of the log2ChromaH record component.
    int
    Returns the value of the log2ChromaW record component.
    Returns the value of the name record component.
    int
    Returns the value of the nbComponents record component.
    boolean
    Returns the value of the palette record component.
    boolean
    Returns the value of the planar record component.
    boolean
    rgb()
    Returns the value of the rgb record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FFProbePixelFormat

      public FFProbePixelFormat(String name, int nbComponents, int log2ChromaW, int log2ChromaH, int bitsPerPixel, boolean bigEndian, boolean palette, boolean bitstream, boolean hwaccel, boolean planar, boolean rgb, boolean alpha, List<Integer> bitDepthByComponent)
      Creates an instance of a FFProbePixelFormat record class.
      Parameters:
      name - the value for the name record component
      nbComponents - the value for the nbComponents record component
      log2ChromaW - the value for the log2ChromaW record component
      log2ChromaH - the value for the log2ChromaH record component
      bitsPerPixel - the value for the bitsPerPixel record component
      bigEndian - the value for the bigEndian record component
      palette - the value for the palette record component
      bitstream - the value for the bitstream record component
      hwaccel - the value for the hwaccel record component
      planar - the value for the planar record component
      rgb - the value for the rgb record component
      alpha - the value for the alpha record component
      bitDepthByComponent - the value for the bitDepthByComponent record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • nbComponents

      public int nbComponents()
      Returns the value of the nbComponents record component.
      Returns:
      the value of the nbComponents record component
    • log2ChromaW

      public int log2ChromaW()
      Returns the value of the log2ChromaW record component.
      Returns:
      the value of the log2ChromaW record component
    • log2ChromaH

      public int log2ChromaH()
      Returns the value of the log2ChromaH record component.
      Returns:
      the value of the log2ChromaH record component
    • bitsPerPixel

      public int bitsPerPixel()
      Returns the value of the bitsPerPixel record component.
      Returns:
      the value of the bitsPerPixel record component
    • bigEndian

      public boolean bigEndian()
      Returns the value of the bigEndian record component.
      Returns:
      the value of the bigEndian record component
    • palette

      public boolean palette()
      Returns the value of the palette record component.
      Returns:
      the value of the palette record component
    • bitstream

      public boolean bitstream()
      Returns the value of the bitstream record component.
      Returns:
      the value of the bitstream record component
    • hwaccel

      public boolean hwaccel()
      Returns the value of the hwaccel record component.
      Returns:
      the value of the hwaccel record component
    • planar

      public boolean planar()
      Returns the value of the planar record component.
      Returns:
      the value of the planar record component
    • rgb

      public boolean rgb()
      Returns the value of the rgb record component.
      Returns:
      the value of the rgb record component
    • alpha

      public boolean alpha()
      Returns the value of the alpha record component.
      Returns:
      the value of the alpha record component
    • bitDepthByComponent

      public List<Integer> bitDepthByComponent()
      Returns the value of the bitDepthByComponent record component.
      Returns:
      the value of the bitDepthByComponent record component