Package org.freedesktop.gstreamer.video
Class VideoCodecState
java.lang.Object
org.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
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()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.@Nullable VideoInforeadInfo()Read the value of the fieldinfo.Read the value of the fieldmastering_display_info.intRead the value of the fieldref_count.ref()Increases the refcount of the given state by one.voidunref()Decreases the refcount of the state.voidwriteAllocationCaps(Caps allocationCaps) Write a value in the fieldallocation_caps.voidWrite a value in the fieldcaps.voidwriteCodecData(Buffer codecData) Write a value in the fieldcodec_data.voidwriteContentLightLevel(VideoContentLightLevel contentLightLevel) Write a value in the fieldcontent_light_level.voidWrite a value in the fieldinfo.voidwriteMasteringDisplayInfo(VideoMasteringDisplayInfo masteringDisplayInfo) Write a value in the fieldmastering_display_info.voidwriteRefCount(int refCount) Write a value in the fieldref_count.Methods inherited from class org.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 fieldrefCountinfo- value for the fieldinfocaps- value for the fieldcapscodecData- value for the fieldcodecDataallocationCaps- value for the fieldallocationCapsmasteringDisplayInfo- value for the fieldmasteringDisplayInfocontentLightLevel- value for the fieldcontentLightLevelarena- 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 fieldrefCountinfo- value for the fieldinfocaps- value for the fieldcapscodecData- value for the fieldcodecDataallocationCaps- value for the fieldallocationCapsmasteringDisplayInfo- value for the fieldmasteringDisplayInfocontentLightLevel- value for the fieldcontentLightLevel
-
-
Method Details
-
getType
Get the GType of the VideoCodecState class- Returns:
- the GType
-
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
Read the value of the fieldinfo.- Returns:
- The value of the field
info
-
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.
-