Package org.freedesktop.gstreamer.base
Class BaseParseFrame
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.base.BaseParseFrame
- All Implemented Interfaces:
Proxy
Frame (context) data passed to each frame parsing virtual methods. In
addition to providing the data to be checked for a valid frame or an already
identified frame, it conveys additional metadata or control information
from and to the subclass w.r.t. the particular frame in question (rather
than global parameters). Some of these may apply to each parsing stage, others
only to some a particular one. These parameters are effectively zeroed at start
of each frame's processing, i.e. parsing virtual method invocation sequence.
-
Constructor Summary
ConstructorDescriptionBaseParseFrame
(MemorySegment address) Create a BaseParseFrame proxy instance for the provided memory address.BaseParseFrame
(Buffer buffer, Set<BaseParseFrameFlags> flags, int overhead) Allocates a newGstBaseParseFrame
.BaseParseFrame
(Buffer buffer, BaseParseFrameFlags flags, int overhead) Allocates a newGstBaseParseFrame
. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies aGstBaseParseFrame
.void
free()
Frees the provided this BaseParseFrame.static MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the BaseParseFrame classvoid
init()
Sets aGstBaseParseFrame
to initial state.Read the value of the fieldbuffer
.int
Read the value of the fieldflags
.long
Read the value of the fieldoffset
.Read the value of the fieldout_buffer
.int
Read the value of the fieldoverhead
.int
Read the value of the field_private_flags
.int
readSize()
Read the value of the fieldsize
.void
writeBuffer
(Buffer buffer) Write a value in the fieldbuffer
.void
writeFlags
(int flags) Write a value in the fieldflags
.void
writeOffset
(long offset) Write a value in the fieldoffset
.void
writeOutBuffer
(Buffer outBuffer) Write a value in the fieldout_buffer
.void
writeOverhead
(int overhead) Write a value in the fieldoverhead
.void
writePrivateFlags
(int PrivateFlags) Write a value in the field_private_flags
.void
writeSize
(int size) Write a value in the fieldsize
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
BaseParseFrame
Create a BaseParseFrame proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
BaseParseFrame
Allocates a newGstBaseParseFrame
. This function is mainly for bindings, elements written in C should usually allocate the frame on the stack and then use gst_base_parse_frame_init() to initialise it.- Parameters:
buffer
- aGstBuffer
flags
- the flagsoverhead
- number of bytes in this frame which should be counted as metadata overhead, ie. not used to calculate the average bitrate. Set to -1 to mark the entire frame as metadata. If in doubt, set to 0.
-
BaseParseFrame
Allocates a newGstBaseParseFrame
. This function is mainly for bindings, elements written in C should usually allocate the frame on the stack and then use gst_base_parse_frame_init() to initialise it.- Parameters:
buffer
- aGstBuffer
flags
- the flagsoverhead
- number of bytes in this frame which should be counted as metadata overhead, ie. not used to calculate the average bitrate. Set to -1 to mark the entire frame as metadata. If in doubt, set to 0.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
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
-
readOutBuffer
Read the value of the fieldout_buffer
.- Returns:
- The value of the field
out_buffer
-
writeOutBuffer
Write a value in the fieldout_buffer
.- Parameters:
outBuffer
- The new value for the fieldout_buffer
-
readFlags
public int readFlags()Read the value of the fieldflags
.- Returns:
- The value of the field
flags
-
writeFlags
public void writeFlags(int flags) Write a value in the fieldflags
.- Parameters:
flags
- The new value for the fieldflags
-
readOffset
public long readOffset()Read the value of the fieldoffset
.- Returns:
- The value of the field
offset
-
writeOffset
public void writeOffset(long offset) Write a value in the fieldoffset
.- Parameters:
offset
- The new value for the fieldoffset
-
readOverhead
public int readOverhead()Read the value of the fieldoverhead
.- Returns:
- The value of the field
overhead
-
writeOverhead
public void writeOverhead(int overhead) Write a value in the fieldoverhead
.- Parameters:
overhead
- The new value for the fieldoverhead
-
readSize
public int readSize()Read the value of the fieldsize
.- Returns:
- The value of the field
size
-
writeSize
public void writeSize(int size) Write a value in the fieldsize
.- Parameters:
size
- The new value for the fieldsize
-
readPrivateFlags
public int readPrivateFlags()Read the value of the field_private_flags
.- Returns:
- The value of the field
_private_flags
-
writePrivateFlags
public void writePrivateFlags(int PrivateFlags) Write a value in the field_private_flags
.- Parameters:
PrivateFlags
- The new value for the field_private_flags
-
copy
-
free
public void free()Frees the provided this BaseParseFrame. -
init
public void init()Sets aGstBaseParseFrame
to initial state. Currently this means all public fields are zero-ed and a private flag is set to make sure gst_base_parse_frame_free() only frees the contents but not the actual frame. Use this function to initialise aGstBaseParseFrame
allocated on the stack.
-