Package org.freedesktop.gstreamer.video
Class VideoMasteringDisplayInfo
java.lang.Object
org.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).
- Since:
- 1.18
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 TypeMethodDescriptionbooleanSet string representation of this VideoMasteringDisplayInfo tocapsbooleanParsecapsand update this VideoMasteringDisplayInfostatic booleanfromString(VideoMasteringDisplayInfo minfo, String mastering) ExtractGstVideoMasteringDisplayInfofrommasteringstatic MemoryLayoutThe memory layout of the native struct.voidinit()Initialize this VideoMasteringDisplayInfobooleanisEqual(VideoMasteringDisplayInfo other) Checks equality between this VideoMasteringDisplayInfo andother.@Nullable VideoMasteringDisplayInfoCoordinates @Nullable []Read the value of the fielddisplay_primaries.intRead the value of the fieldmax_display_mastering_luminance.intRead the value of the fieldmin_display_mastering_luminance.@Nullable VideoMasteringDisplayInfoCoordinatesRead the value of the fieldwhite_point.toString()Convert this VideoMasteringDisplayInfo to its string representationvoidwriteDisplayPrimaries(@Nullable VideoMasteringDisplayInfoCoordinates @Nullable [] displayPrimaries, Arena _arena) Write a value in the fielddisplay_primaries.voidwriteMaxDisplayMasteringLuminance(int maxDisplayMasteringLuminance) Write a value in the fieldmax_display_mastering_luminance.voidwriteMinDisplayMasteringLuminance(int minDisplayMasteringLuminance) Write a value in the fieldmin_display_mastering_luminance.voidwriteWhitePoint(@Nullable VideoMasteringDisplayInfoCoordinates whitePoint) Write a value in the fieldwhite_point.Methods inherited from class org.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 fielddisplayPrimarieswhitePoint- value for the fieldwhitePointmaxDisplayMasteringLuminance- value for the fieldmaxDisplayMasteringLuminanceminDisplayMasteringLuminance- value for the fieldminDisplayMasteringLuminancearena- 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 fielddisplayPrimarieswhitePoint- value for the fieldwhitePointmaxDisplayMasteringLuminance- value for the fieldmaxDisplayMasteringLuminanceminDisplayMasteringLuminance- 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(@Nullable VideoMasteringDisplayInfoCoordinates @Nullable [] displayPrimaries, Arena _arena) Write a value in the fielddisplay_primaries.- Parameters:
displayPrimaries- The new value for the fielddisplay_primaries
-
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
ExtractGstVideoMasteringDisplayInfofrommastering- Parameters:
minfo- aGstVideoMasteringDisplayInfomastering- aGstStructurerepresentingGstVideoMasteringDisplayInfo- Returns:
trueifminfowas filled withmastering- Since:
- 1.18
-
addToCaps
Set string representation of this VideoMasteringDisplayInfo tocaps- Parameters:
caps- aGstCaps- Returns:
trueif this VideoMasteringDisplayInfo was successfully set tocaps- Since:
- 1.18
-
fromCaps
Parsecapsand update this VideoMasteringDisplayInfo- Parameters:
caps- aGstCaps- Returns:
trueifcapshasGstVideoMasteringDisplayInfoand could be parsed- Since:
- 1.18
-
init
public void init()Initialize this VideoMasteringDisplayInfo- Since:
- 1.18
-
isEqual
Checks equality between this VideoMasteringDisplayInfo andother.- Parameters:
other- aGstVideoMasteringDisplayInfo- Returns:
trueif this VideoMasteringDisplayInfo andotherare equal.- Since:
- 1.18
-
toString
-