Package tv.hd3g.ffprobejaxb.data
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
ConstructorsConstructorDescriptionFFProbePixelFormat(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 aFFProbePixelFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanalpha()Returns the value of thealpharecord component.booleanReturns the value of thebigEndianrecord component.Returns the value of thebitDepthByComponentrecord component.intReturns the value of thebitsPerPixelrecord component.booleanReturns the value of thebitstreamrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhwaccel()Returns the value of thehwaccelrecord component.intReturns the value of thelog2ChromaHrecord component.intReturns the value of thelog2ChromaWrecord component.name()Returns the value of thenamerecord component.intReturns the value of thenbComponentsrecord component.booleanpalette()Returns the value of thepaletterecord component.booleanplanar()Returns the value of theplanarrecord component.booleanrgb()Returns the value of thergbrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aFFProbePixelFormatrecord class.- Parameters:
name- the value for thenamerecord componentnbComponents- the value for thenbComponentsrecord componentlog2ChromaW- the value for thelog2ChromaWrecord componentlog2ChromaH- the value for thelog2ChromaHrecord componentbitsPerPixel- the value for thebitsPerPixelrecord componentbigEndian- the value for thebigEndianrecord componentpalette- the value for thepaletterecord componentbitstream- the value for thebitstreamrecord componenthwaccel- the value for thehwaccelrecord componentplanar- the value for theplanarrecord componentrgb- the value for thergbrecord componentalpha- the value for thealpharecord componentbitDepthByComponent- the value for thebitDepthByComponentrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
nbComponents
public int nbComponents()Returns the value of thenbComponentsrecord component.- Returns:
- the value of the
nbComponentsrecord component
-
log2ChromaW
public int log2ChromaW()Returns the value of thelog2ChromaWrecord component.- Returns:
- the value of the
log2ChromaWrecord component
-
log2ChromaH
public int log2ChromaH()Returns the value of thelog2ChromaHrecord component.- Returns:
- the value of the
log2ChromaHrecord component
-
bitsPerPixel
public int bitsPerPixel()Returns the value of thebitsPerPixelrecord component.- Returns:
- the value of the
bitsPerPixelrecord component
-
bigEndian
public boolean bigEndian()Returns the value of thebigEndianrecord component.- Returns:
- the value of the
bigEndianrecord component
-
palette
public boolean palette()Returns the value of thepaletterecord component.- Returns:
- the value of the
paletterecord component
-
bitstream
public boolean bitstream()Returns the value of thebitstreamrecord component.- Returns:
- the value of the
bitstreamrecord component
-
hwaccel
public boolean hwaccel()Returns the value of thehwaccelrecord component.- Returns:
- the value of the
hwaccelrecord component
-
planar
public boolean planar()Returns the value of theplanarrecord component.- Returns:
- the value of the
planarrecord component
-
rgb
public boolean rgb()Returns the value of thergbrecord component.- Returns:
- the value of the
rgbrecord component
-
alpha
public boolean alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
bitDepthByComponent
Returns the value of thebitDepthByComponentrecord component.- Returns:
- the value of the
bitDepthByComponentrecord component
-