Package org.freedesktop.gstreamer.video
Class VideoMasteringDisplayInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoMasteringDisplayInfo
- All Implemented Interfaces:
Proxy
Mastering display color volume information defined by SMPTE ST 2086
(a.k.a static HDR metadata).
-
Constructor Summary
ConstructorDescriptionAllocate a new VideoMasteringDisplayInfo.VideoMasteringDisplayInfo
(Arena arena) Allocate a new VideoMasteringDisplayInfo.VideoMasteringDisplayInfo
(MemorySegment address) Create a VideoMasteringDisplayInfo proxy instance for the provided memory address.VideoMasteringDisplayInfo
(VideoMasteringDisplayInfoCoordinates[] displayPrimaries, VideoMasteringDisplayInfoCoordinates whitePoint, int maxDisplayMasteringLuminance, int minDisplayMasteringLuminance) Allocate a new VideoMasteringDisplayInfo with the fields set to the provided values.VideoMasteringDisplayInfo
(VideoMasteringDisplayInfoCoordinates[] displayPrimaries, VideoMasteringDisplayInfoCoordinates whitePoint, int maxDisplayMasteringLuminance, int minDisplayMasteringLuminance, Arena arena) Allocate a new VideoMasteringDisplayInfo with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Set string representation of this VideoMasteringDisplayInfo tocaps
boolean
Parsecaps
and update this VideoMasteringDisplayInfostatic boolean
fromString
(VideoMasteringDisplayInfo minfo, String mastering) ExtractGstVideoMasteringDisplayInfo
frommastering
static MemoryLayout
The memory layout of the native struct.void
init()
Initialize this VideoMasteringDisplayInfoboolean
isEqual
(VideoMasteringDisplayInfo other) Checks equality between this VideoMasteringDisplayInfo andother
.Read the value of the fielddisplay_primaries
.int
Read the value of the fieldmax_display_mastering_luminance
.int
Read the value of the fieldmin_display_mastering_luminance
.Read the value of the fieldwhite_point
.toString()
Convert this VideoMasteringDisplayInfo to its string representationvoid
writeDisplayPrimaries
(VideoMasteringDisplayInfoCoordinates[] displayPrimaries, Arena _arena) Write a value in the fielddisplay_primaries
.void
writeMaxDisplayMasteringLuminance
(int maxDisplayMasteringLuminance) Write a value in the fieldmax_display_mastering_luminance
.void
writeMinDisplayMasteringLuminance
(int minDisplayMasteringLuminance) Write a value in the fieldmin_display_mastering_luminance
.void
writeWhitePoint
(VideoMasteringDisplayInfoCoordinates whitePoint) Write a value in the fieldwhite_point
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoMasteringDisplayInfo
Create a VideoMasteringDisplayInfo proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
VideoMasteringDisplayInfo
Allocate a new VideoMasteringDisplayInfo.- Parameters:
arena
- to control the memory allocation scope
-
VideoMasteringDisplayInfo
public VideoMasteringDisplayInfo()Allocate a new VideoMasteringDisplayInfo. The memory is allocated withArena.ofAuto()
. -
VideoMasteringDisplayInfo
public VideoMasteringDisplayInfo(VideoMasteringDisplayInfoCoordinates[] displayPrimaries, VideoMasteringDisplayInfoCoordinates whitePoint, int maxDisplayMasteringLuminance, int minDisplayMasteringLuminance, Arena arena) Allocate a new VideoMasteringDisplayInfo with the fields set to the provided values.- Parameters:
displayPrimaries
- value for the fielddisplayPrimaries
whitePoint
- value for the fieldwhitePoint
maxDisplayMasteringLuminance
- value for the fieldmaxDisplayMasteringLuminance
minDisplayMasteringLuminance
- value for the fieldminDisplayMasteringLuminance
arena
- to control the memory allocation scope
-
VideoMasteringDisplayInfo
public VideoMasteringDisplayInfo(VideoMasteringDisplayInfoCoordinates[] displayPrimaries, VideoMasteringDisplayInfoCoordinates whitePoint, int maxDisplayMasteringLuminance, int minDisplayMasteringLuminance) Allocate a new VideoMasteringDisplayInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
displayPrimaries
- value for the fielddisplayPrimaries
whitePoint
- value for the fieldwhitePoint
maxDisplayMasteringLuminance
- value for the fieldmaxDisplayMasteringLuminance
minDisplayMasteringLuminance
- value for the fieldminDisplayMasteringLuminance
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readDisplayPrimaries
Read the value of the fielddisplay_primaries
.- Returns:
- The value of the field
display_primaries
-
writeDisplayPrimaries
public void writeDisplayPrimaries(VideoMasteringDisplayInfoCoordinates[] displayPrimaries, Arena _arena) Write a value in the fielddisplay_primaries
.- Parameters:
displayPrimaries
- The new value for the fielddisplay_primaries
_arena
- to control the memory allocation scope
-
readWhitePoint
Read the value of the fieldwhite_point
.- Returns:
- The value of the field
white_point
-
writeWhitePoint
Write a value in the fieldwhite_point
.- Parameters:
whitePoint
- The new value for the fieldwhite_point
-
readMaxDisplayMasteringLuminance
public int readMaxDisplayMasteringLuminance()Read the value of the fieldmax_display_mastering_luminance
.- Returns:
- The value of the field
max_display_mastering_luminance
-
writeMaxDisplayMasteringLuminance
public void writeMaxDisplayMasteringLuminance(int maxDisplayMasteringLuminance) Write a value in the fieldmax_display_mastering_luminance
.- Parameters:
maxDisplayMasteringLuminance
- The new value for the fieldmax_display_mastering_luminance
-
readMinDisplayMasteringLuminance
public int readMinDisplayMasteringLuminance()Read the value of the fieldmin_display_mastering_luminance
.- Returns:
- The value of the field
min_display_mastering_luminance
-
writeMinDisplayMasteringLuminance
public void writeMinDisplayMasteringLuminance(int minDisplayMasteringLuminance) Write a value in the fieldmin_display_mastering_luminance
.- Parameters:
minDisplayMasteringLuminance
- The new value for the fieldmin_display_mastering_luminance
-
fromString
ExtractGstVideoMasteringDisplayInfo
frommastering
- Parameters:
minfo
- aGstVideoMasteringDisplayInfo
mastering
- aGstStructure
representingGstVideoMasteringDisplayInfo
- Returns:
true
ifminfo
was filled withmastering
-
addToCaps
Set string representation of this VideoMasteringDisplayInfo tocaps
- Parameters:
caps
- aGstCaps
- Returns:
true
if this VideoMasteringDisplayInfo was successfully set tocaps
-
fromCaps
Parsecaps
and update this VideoMasteringDisplayInfo- Parameters:
caps
- aGstCaps
- Returns:
true
ifcaps
hasGstVideoMasteringDisplayInfo
and could be parsed
-
init
public void init()Initialize this VideoMasteringDisplayInfo -
isEqual
Checks equality between this VideoMasteringDisplayInfo andother
.- Parameters:
other
- aGstVideoMasteringDisplayInfo
- Returns:
true
if this VideoMasteringDisplayInfo andother
are equal.
-
toString
-