Package org.freedesktop.gstreamer.video
Class VideoCodecAlphaMeta
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoCodecAlphaMeta
- All Implemented Interfaces:
Proxy
This meta is primarily for internal use in GStreamer elements to support
VP8/VP9 transparent video stored into WebM or Matroska containers, or
transparent static AV1 images. Nothing prevents you from using this meta
for custom purposes, but it generally can't be used to easily to add support
for alpha channels to CODECs or formats that don't support that out of the
box.
-
Constructor Summary
ConstructorDescriptionAllocate a new VideoCodecAlphaMeta.VideoCodecAlphaMeta
(Arena arena) Allocate a new VideoCodecAlphaMeta.VideoCodecAlphaMeta
(MemorySegment address) Create a VideoCodecAlphaMeta proxy instance for the provided memory address.VideoCodecAlphaMeta
(Meta meta, Buffer buffer) Allocate a new VideoCodecAlphaMeta with the fields set to the provided values.VideoCodecAlphaMeta
(Meta meta, Buffer buffer, Arena arena) Allocate a new VideoCodecAlphaMeta with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetaInfo
getInfo()
static MemoryLayout
The memory layout of the native struct.Read the value of the fieldbuffer
.readMeta()
Read the value of the fieldmeta
.void
writeBuffer
(Buffer buffer) Write a value in the fieldbuffer
.void
Write a value in the fieldmeta
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoCodecAlphaMeta
Create a VideoCodecAlphaMeta proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
VideoCodecAlphaMeta
Allocate a new VideoCodecAlphaMeta.- Parameters:
arena
- to control the memory allocation scope
-
VideoCodecAlphaMeta
public VideoCodecAlphaMeta()Allocate a new VideoCodecAlphaMeta. The memory is allocated withArena.ofAuto()
. -
VideoCodecAlphaMeta
-
VideoCodecAlphaMeta
Allocate a new VideoCodecAlphaMeta with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
meta
- value for the fieldmeta
buffer
- value for the fieldbuffer
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readMeta
-
writeMeta
Write a value in the fieldmeta
.- Parameters:
meta
- The new value for the fieldmeta
-
readBuffer
Read the value of the fieldbuffer
.- Returns:
- The value of the field
buffer
-
writeBuffer
Write a value in the fieldbuffer
.- Parameters:
buffer
- The new value for the fieldbuffer
-
getInfo
-