Package org.freedesktop.gstreamer.video
Class VideoAncillary
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoAncillary
- All Implemented Interfaces:
Proxy
Video Ancillary data, according to SMPTE-291M specification.
Note that the contents of the data are always stored as 8bit data (i.e. do not contain the parity check bits).
-
Constructor Summary
ConstructorDescriptionAllocate a new VideoAncillary.VideoAncillary
(byte DID, byte SDIDBlockNumber, byte dataCount, byte[] data) Allocate a new VideoAncillary with the fields set to the provided values.VideoAncillary
(byte DID, byte SDIDBlockNumber, byte dataCount, byte[] data, Arena arena) Allocate a new VideoAncillary with the fields set to the provided values.VideoAncillary
(Arena arena) Allocate a new VideoAncillary.VideoAncillary
(MemorySegment address) Create a VideoAncillary proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.byte[]
readData()
Read the value of the fielddata
.byte
Read the value of the fielddata_count
.byte
readDID()
Read the value of the fieldDID
.byte
Read the value of the fieldSDID_block_number
.void
Write a value in the fielddata
.void
writeDataCount
(byte dataCount) Write a value in the fielddata_count
.void
writeDID
(byte DID) Write a value in the fieldDID
.void
writeSDIDBlockNumber
(byte SDIDBlockNumber) Write a value in the fieldSDID_block_number
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoAncillary
Create a VideoAncillary proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
VideoAncillary
Allocate a new VideoAncillary.- Parameters:
arena
- to control the memory allocation scope
-
VideoAncillary
public VideoAncillary()Allocate a new VideoAncillary. The memory is allocated withArena.ofAuto()
. -
VideoAncillary
Allocate a new VideoAncillary with the fields set to the provided values.- Parameters:
DID
- value for the fieldDID
SDIDBlockNumber
- value for the fieldSDIDBlockNumber
dataCount
- value for the fielddataCount
data
- value for the fielddata
arena
- to control the memory allocation scope
-
VideoAncillary
public VideoAncillary(byte DID, byte SDIDBlockNumber, byte dataCount, byte[] data) Allocate a new VideoAncillary with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
DID
- value for the fieldDID
SDIDBlockNumber
- value for the fieldSDIDBlockNumber
dataCount
- value for the fielddataCount
data
- value for the fielddata
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readDID
public byte readDID()Read the value of the fieldDID
.- Returns:
- The value of the field
DID
-
writeDID
public void writeDID(byte DID) Write a value in the fieldDID
.- Parameters:
DID
- The new value for the fieldDID
-
readSDIDBlockNumber
public byte readSDIDBlockNumber()Read the value of the fieldSDID_block_number
.- Returns:
- The value of the field
SDID_block_number
-
writeSDIDBlockNumber
public void writeSDIDBlockNumber(byte SDIDBlockNumber) Write a value in the fieldSDID_block_number
.- Parameters:
SDIDBlockNumber
- The new value for the fieldSDID_block_number
-
readDataCount
public byte readDataCount()Read the value of the fielddata_count
.- Returns:
- The value of the field
data_count
-
writeDataCount
public void writeDataCount(byte dataCount) Write a value in the fielddata_count
.- Parameters:
dataCount
- The new value for the fielddata_count
-
readData
public byte[] readData()Read the value of the fielddata
.- Returns:
- The value of the field
data
-
writeData
Write a value in the fielddata
.- Parameters:
data
- The new value for the fielddata
_arena
- to control the memory allocation scope
-