Package org.freedesktop.gstreamer.video
Class VideoCodecState
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoCodecState
- All Implemented Interfaces:
Proxy
Structure representing the state of an incoming or outgoing video
stream for encoders and decoders.
Decoders and encoders will receive such a state through their
respective setFormat
vmethods.
Decoders and encoders can set the downstream state, by using the gst_video_decoder_set_output_state() or gst_video_encoder_set_output_state() methods.
-
Constructor Summary
ConstructorDescriptionAllocate a new VideoCodecState.VideoCodecState
(int refCount, VideoInfo info, Caps caps, Buffer codecData, Caps allocationCaps, VideoMasteringDisplayInfo masteringDisplayInfo, VideoContentLightLevel contentLightLevel) Allocate a new VideoCodecState with the fields set to the provided values.VideoCodecState
(int refCount, VideoInfo info, Caps caps, Buffer codecData, Caps allocationCaps, VideoMasteringDisplayInfo masteringDisplayInfo, VideoContentLightLevel contentLightLevel, Arena arena) Allocate a new VideoCodecState with the fields set to the provided values.VideoCodecState
(Arena arena) Allocate a new VideoCodecState.VideoCodecState
(MemorySegment address) Create a VideoCodecState proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the VideoCodecState classRead the value of the fieldallocation_caps
.readCaps()
Read the value of the fieldcaps
.Read the value of the fieldcodec_data
.Read the value of the fieldcontent_light_level
.readInfo()
Read the value of the fieldinfo
.Read the value of the fieldmastering_display_info
.int
Read the value of the fieldref_count
.ref()
Increases the refcount of the given state by one.void
unref()
Decreases the refcount of the state.void
writeAllocationCaps
(Caps allocationCaps) Write a value in the fieldallocation_caps
.void
Write a value in the fieldcaps
.void
writeCodecData
(Buffer codecData) Write a value in the fieldcodec_data
.void
writeContentLightLevel
(VideoContentLightLevel contentLightLevel) Write a value in the fieldcontent_light_level
.void
Write a value in the fieldinfo
.void
writeMasteringDisplayInfo
(VideoMasteringDisplayInfo masteringDisplayInfo) Write a value in the fieldmastering_display_info
.void
writeRefCount
(int refCount) Write a value in the fieldref_count
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoCodecState
Create a VideoCodecState proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
VideoCodecState
Allocate a new VideoCodecState.- Parameters:
arena
- to control the memory allocation scope
-
VideoCodecState
public VideoCodecState()Allocate a new VideoCodecState. The memory is allocated withArena.ofAuto()
. -
VideoCodecState
public VideoCodecState(int refCount, VideoInfo info, Caps caps, Buffer codecData, Caps allocationCaps, VideoMasteringDisplayInfo masteringDisplayInfo, VideoContentLightLevel contentLightLevel, Arena arena) Allocate a new VideoCodecState with the fields set to the provided values.- Parameters:
refCount
- value for the fieldrefCount
info
- value for the fieldinfo
caps
- value for the fieldcaps
codecData
- value for the fieldcodecData
allocationCaps
- value for the fieldallocationCaps
masteringDisplayInfo
- value for the fieldmasteringDisplayInfo
contentLightLevel
- value for the fieldcontentLightLevel
arena
- to control the memory allocation scope
-
VideoCodecState
public VideoCodecState(int refCount, VideoInfo info, Caps caps, Buffer codecData, Caps allocationCaps, VideoMasteringDisplayInfo masteringDisplayInfo, VideoContentLightLevel contentLightLevel) Allocate a new VideoCodecState with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
refCount
- value for the fieldrefCount
info
- value for the fieldinfo
caps
- value for the fieldcaps
codecData
- value for the fieldcodecData
allocationCaps
- value for the fieldallocationCaps
masteringDisplayInfo
- value for the fieldmasteringDisplayInfo
contentLightLevel
- value for the fieldcontentLightLevel
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readRefCount
public int readRefCount()Read the value of the fieldref_count
.- Returns:
- The value of the field
ref_count
-
writeRefCount
public void writeRefCount(int refCount) Write a value in the fieldref_count
.- Parameters:
refCount
- The new value for the fieldref_count
-
readInfo
-
writeInfo
Write a value in the fieldinfo
.- Parameters:
info
- The new value for the fieldinfo
-
readCaps
-
writeCaps
Write a value in the fieldcaps
.- Parameters:
caps
- The new value for the fieldcaps
-
readCodecData
Read the value of the fieldcodec_data
.- Returns:
- The value of the field
codec_data
-
writeCodecData
Write a value in the fieldcodec_data
.- Parameters:
codecData
- The new value for the fieldcodec_data
-
readAllocationCaps
Read the value of the fieldallocation_caps
.- Returns:
- The value of the field
allocation_caps
-
writeAllocationCaps
Write a value in the fieldallocation_caps
.- Parameters:
allocationCaps
- The new value for the fieldallocation_caps
-
readMasteringDisplayInfo
Read the value of the fieldmastering_display_info
.- Returns:
- The value of the field
mastering_display_info
-
writeMasteringDisplayInfo
Write a value in the fieldmastering_display_info
.- Parameters:
masteringDisplayInfo
- The new value for the fieldmastering_display_info
-
readContentLightLevel
Read the value of the fieldcontent_light_level
.- Returns:
- The value of the field
content_light_level
-
writeContentLightLevel
Write a value in the fieldcontent_light_level
.- Parameters:
contentLightLevel
- The new value for the fieldcontent_light_level
-
ref
-
unref
public void unref()Decreases the refcount of the state. If the refcount reaches 0, the state will be freed.
-