Package org.freedesktop.gstreamer.video
Class VideoColorimetry
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoColorimetry
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new VideoColorimetry.VideoColorimetry(Arena arena) Allocate a new VideoColorimetry.VideoColorimetry(MemorySegment address) Create a VideoColorimetry proxy instance for the provided memory address.VideoColorimetry(VideoColorRange range, VideoColorMatrix matrix, VideoTransferFunction transfer, VideoColorPrimaries primaries) Allocate a new VideoColorimetry with the fields set to the provided values.VideoColorimetry(VideoColorRange range, VideoColorMatrix matrix, VideoTransferFunction transfer, VideoColorPrimaries primaries, Arena arena) Allocate a new VideoColorimetry with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanfromString(String color) Parse the colorimetry string and update this VideoColorimetry with the parsed values.static MemoryLayoutThe memory layout of the native struct.booleanisEqual(VideoColorimetry other) Compare the 2 colorimetry sets for equalitybooleanisEquivalent(int bitdepth, VideoColorimetry other, int otherBitdepth) Compare the 2 colorimetry sets for functionally equalitybooleanCheck if the colorimetry information ininfomatches that of the stringcolor.Read the value of the fieldmatrix.Read the value of the fieldprimaries.Read the value of the fieldrange.Read the value of the fieldtransfer.@Nullable StringtoString()Make a string representation ofcinfo.voidwriteMatrix(VideoColorMatrix matrix) Write a value in the fieldmatrix.voidwritePrimaries(VideoColorPrimaries primaries) Write a value in the fieldprimaries.voidwriteRange(VideoColorRange range) Write a value in the fieldrange.voidwriteTransfer(VideoTransferFunction transfer) Write a value in the fieldtransfer.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoColorimetry
Create a VideoColorimetry proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
VideoColorimetry
Allocate a new VideoColorimetry.- Parameters:
arena- to control the memory allocation scope
-
VideoColorimetry
public VideoColorimetry()Allocate a new VideoColorimetry. The memory is allocated withArena.ofAuto(). -
VideoColorimetry
public VideoColorimetry(VideoColorRange range, VideoColorMatrix matrix, VideoTransferFunction transfer, VideoColorPrimaries primaries, Arena arena) Allocate a new VideoColorimetry with the fields set to the provided values.- Parameters:
range- value for the fieldrangematrix- value for the fieldmatrixtransfer- value for the fieldtransferprimaries- value for the fieldprimariesarena- to control the memory allocation scope
-
VideoColorimetry
public VideoColorimetry(VideoColorRange range, VideoColorMatrix matrix, VideoTransferFunction transfer, VideoColorPrimaries primaries) Allocate a new VideoColorimetry with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
range- value for the fieldrangematrix- value for the fieldmatrixtransfer- value for the fieldtransferprimaries- value for the fieldprimaries
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readRange
Read the value of the fieldrange.- Returns:
- The value of the field
range
-
writeRange
Write a value in the fieldrange.- Parameters:
range- The new value for the fieldrange
-
readMatrix
Read the value of the fieldmatrix.- Returns:
- The value of the field
matrix
-
writeMatrix
Write a value in the fieldmatrix.- Parameters:
matrix- The new value for the fieldmatrix
-
readTransfer
Read the value of the fieldtransfer.- Returns:
- The value of the field
transfer
-
writeTransfer
Write a value in the fieldtransfer.- Parameters:
transfer- The new value for the fieldtransfer
-
readPrimaries
Read the value of the fieldprimaries.- Returns:
- The value of the field
primaries
-
writePrimaries
Write a value in the fieldprimaries.- Parameters:
primaries- The new value for the fieldprimaries
-
fromString
Parse the colorimetry string and update this VideoColorimetry with the parsed values.- Parameters:
color- a colorimetry string- Returns:
trueifcolorpoints to valid colorimetry info.
-
isEqual
Compare the 2 colorimetry sets for equality- Parameters:
other- anotherGstVideoColorimetry- Returns:
trueif this VideoColorimetry andotherare equal.- Since:
- 1.6
-
isEquivalent
Compare the 2 colorimetry sets for functionally equality- Parameters:
bitdepth- bitdepth of a format associated with this VideoColorimetryother- anotherGstVideoColorimetryotherBitdepth- bitdepth of a format associated withother- Returns:
trueif this VideoColorimetry andotherare equivalent.- Since:
- 1.22
-
matches
Check if the colorimetry information ininfomatches that of the stringcolor.- Parameters:
color- a colorimetry string- Returns:
trueifcolorconveys the same colorimetry info as the color information ininfo.
-
toString
-