Package org.freedesktop.gstreamer.video
Class VideoContentLightLevel
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoContentLightLevel
- All Implemented Interfaces:
Proxy
Content light level information specified in CEA-861.3, Appendix A.
- Since:
- 1.18
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new VideoContentLightLevel.VideoContentLightLevel(short maxContentLightLevel, short maxFrameAverageLightLevel) Allocate a new VideoContentLightLevel with the fields set to the provided values.VideoContentLightLevel(short maxContentLightLevel, short maxFrameAverageLightLevel, Arena arena) Allocate a new VideoContentLightLevel with the fields set to the provided values.VideoContentLightLevel(Arena arena) Allocate a new VideoContentLightLevel.VideoContentLightLevel(MemorySegment address) Create a VideoContentLightLevel proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionbooleanParsecapsand update this VideoContentLightLevelbooleanParsecapsand update this VideoContentLightLevelbooleanfromString(String level) Parse the value of content-light-level caps field and updateminfowith the parsed values.static MemoryLayoutThe memory layout of the native struct.voidinit()Initialize this VideoContentLightLevelbooleanisEqual(VideoContentLightLevel other) Checks equality between this VideoContentLightLevel andother.shortRead the value of the fieldmax_content_light_level.shortRead the value of the fieldmax_frame_average_light_level.toString()Convert this VideoContentLightLevel to its string representation.voidwriteMaxContentLightLevel(short maxContentLightLevel) Write a value in the fieldmax_content_light_level.voidwriteMaxFrameAverageLightLevel(short maxFrameAverageLightLevel) Write a value in the fieldmax_frame_average_light_level.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoContentLightLevel
Create a VideoContentLightLevel proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
VideoContentLightLevel
Allocate a new VideoContentLightLevel.- Parameters:
arena- to control the memory allocation scope
-
VideoContentLightLevel
public VideoContentLightLevel()Allocate a new VideoContentLightLevel. The memory is allocated withArena.ofAuto(). -
VideoContentLightLevel
public VideoContentLightLevel(short maxContentLightLevel, short maxFrameAverageLightLevel, Arena arena) Allocate a new VideoContentLightLevel with the fields set to the provided values.- Parameters:
maxContentLightLevel- value for the fieldmaxContentLightLevelmaxFrameAverageLightLevel- value for the fieldmaxFrameAverageLightLevelarena- to control the memory allocation scope
-
VideoContentLightLevel
public VideoContentLightLevel(short maxContentLightLevel, short maxFrameAverageLightLevel) Allocate a new VideoContentLightLevel with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
maxContentLightLevel- value for the fieldmaxContentLightLevelmaxFrameAverageLightLevel- value for the fieldmaxFrameAverageLightLevel
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readMaxContentLightLevel
public short readMaxContentLightLevel()Read the value of the fieldmax_content_light_level.- Returns:
- The value of the field
max_content_light_level
-
writeMaxContentLightLevel
public void writeMaxContentLightLevel(short maxContentLightLevel) Write a value in the fieldmax_content_light_level.- Parameters:
maxContentLightLevel- The new value for the fieldmax_content_light_level
-
readMaxFrameAverageLightLevel
public short readMaxFrameAverageLightLevel()Read the value of the fieldmax_frame_average_light_level.- Returns:
- The value of the field
max_frame_average_light_level
-
writeMaxFrameAverageLightLevel
public void writeMaxFrameAverageLightLevel(short maxFrameAverageLightLevel) Write a value in the fieldmax_frame_average_light_level.- Parameters:
maxFrameAverageLightLevel- The new value for the fieldmax_frame_average_light_level
-
addToCaps
Parsecapsand update this VideoContentLightLevel- Parameters:
caps- aGstCaps- Returns:
trueif this VideoContentLightLevel was successfully set tocaps- Since:
- 1.18
-
fromCaps
Parsecapsand update this VideoContentLightLevel- Parameters:
caps- aGstCaps- Returns:
- if
capshasGstVideoContentLightLeveland could be parsed - Since:
- 1.18
-
fromString
Parse the value of content-light-level caps field and updateminfowith the parsed values.- Parameters:
level- a content-light-level string from caps- Returns:
trueif this VideoContentLightLevel points to validGstVideoContentLightLevel.- Since:
- 1.18
-
init
public void init()Initialize this VideoContentLightLevel- Since:
- 1.18
-
isEqual
Checks equality between this VideoContentLightLevel andother.- Parameters:
other- aGstVideoContentLightLevel- Returns:
trueif this VideoContentLightLevel andotherare equal.- Since:
- 1.20
-
toString
-