Package org.freedesktop.gstreamer.video
Class VideoColorimetry
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoColorimetry
-
Constructor Summary
ConstructorDescriptionAllocate 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 TypeMethodDescriptionboolean
fromString
(String color) Parse the colorimetry string and update this VideoColorimetry with the parsed values.static MemoryLayout
The memory layout of the native struct.boolean
isEqual
(VideoColorimetry other) Compare the 2 colorimetry sets for equalityboolean
isEquivalent
(int bitdepth, VideoColorimetry other, int otherBitdepth) Compare the 2 colorimetry sets for functionally equalityboolean
Check if the colorimetry information ininfo
matches 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
.toString()
Make a string representation of this VideoColorimetry.void
writeMatrix
(VideoColorMatrix matrix) Write a value in the fieldmatrix
.void
writePrimaries
(VideoColorPrimaries primaries) Write a value in the fieldprimaries
.void
writeRange
(VideoColorRange range) Write a value in the fieldrange
.void
writeTransfer
(VideoTransferFunction transfer) Write a value in the fieldtransfer
.Methods inherited from class io.github.jwharm.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 fieldrange
matrix
- value for the fieldmatrix
transfer
- value for the fieldtransfer
primaries
- value for the fieldprimaries
arena
- 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 fieldrange
matrix
- value for the fieldmatrix
transfer
- value for the fieldtransfer
primaries
- 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:
true
ifcolor
points to valid colorimetry info.
-
isEqual
Compare the 2 colorimetry sets for equality- Parameters:
other
- anotherGstVideoColorimetry
- Returns:
true
if this VideoColorimetry andother
are equal.
-
isEquivalent
Compare the 2 colorimetry sets for functionally equality- Parameters:
bitdepth
- bitdepth of a format associated with this VideoColorimetryother
- anotherGstVideoColorimetry
otherBitdepth
- bitdepth of a format associated withother
- Returns:
true
if this VideoColorimetry andother
are equivalent.
-
matches
Check if the colorimetry information ininfo
matches that of the stringcolor
.- Parameters:
color
- a colorimetry string- Returns:
true
ifcolor
conveys the same colorimetry info as the color information ininfo
.
-
toString
-