Package org.freedesktop.gstreamer.video
Class VideoAncillary
java.lang.Object
org.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).
- Since:
- 1.16
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.@org.jspecify.annotations.Nullable byte @Nullable []readData()Read the value of the fielddata.byteRead the value of the fielddata_count.bytereadDID()Read the value of the fieldDID.byteRead the value of the fieldSDID_block_number.voidWrite a value in the fielddata.voidwriteDataCount(byte dataCount) Write a value in the fielddata_count.voidwriteDID(byte DID) Write a value in the fieldDID.voidwriteSDIDBlockNumber(byte SDIDBlockNumber) Write a value in the fieldSDID_block_number.Methods inherited from class org.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 fieldDIDSDIDBlockNumber- value for the fieldSDIDBlockNumberdataCount- value for the fielddataCountdata- value for the fielddataarena- 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 fieldDIDSDIDBlockNumber- value for the fieldSDIDBlockNumberdataCount- value for the fielddataCountdata- 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 @org.jspecify.annotations.Nullable byte @Nullable [] 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
-