Package org.freedesktop.gstreamer.video
Class VideoContentLightLevel
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoContentLightLevel
- All Implemented Interfaces:
Proxy
Content light level information specified in CEA-861.3, Appendix A.
-
Constructor Summary
ConstructorDescriptionAllocate 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 TypeMethodDescriptionboolean
Parsecaps
and update this VideoContentLightLevelboolean
Parsecaps
and update this VideoContentLightLevelboolean
fromString
(String level) Parse the value of content-light-level caps field and updateminfo
with the parsed values.static MemoryLayout
The memory layout of the native struct.void
init()
Initialize this VideoContentLightLevelboolean
isEqual
(VideoContentLightLevel other) Checks equality between this VideoContentLightLevel andother
.short
Read the value of the fieldmax_content_light_level
.short
Read the value of the fieldmax_frame_average_light_level
.toString()
Convert this VideoContentLightLevel to its string representation.void
writeMaxContentLightLevel
(short maxContentLightLevel) Write a value in the fieldmax_content_light_level
.void
writeMaxFrameAverageLightLevel
(short maxFrameAverageLightLevel) Write a value in the fieldmax_frame_average_light_level
.Methods inherited from class io.github.jwharm.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 fieldmaxContentLightLevel
maxFrameAverageLightLevel
- value for the fieldmaxFrameAverageLightLevel
arena
- 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 fieldmaxContentLightLevel
maxFrameAverageLightLevel
- 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
Parsecaps
and update this VideoContentLightLevel- Parameters:
caps
- aGstCaps
- Returns:
true
if this VideoContentLightLevel was successfully set tocaps
-
fromCaps
Parsecaps
and update this VideoContentLightLevel- Parameters:
caps
- aGstCaps
- Returns:
- if
caps
hasGstVideoContentLightLevel
and could be parsed
-
fromString
Parse the value of content-light-level caps field and updateminfo
with the parsed values.- Parameters:
level
- a content-light-level string from caps- Returns:
true
if this VideoContentLightLevel points to validGstVideoContentLightLevel
.
-
init
public void init()Initialize this VideoContentLightLevel -
isEqual
Checks equality between this VideoContentLightLevel andother
.- Parameters:
other
- aGstVideoContentLightLevel
- Returns:
true
if this VideoContentLightLevel andother
are equal.
-
toString
-