Package org.freedesktop.gstreamer.video
Class AncillaryMeta
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.AncillaryMeta
- All Implemented Interfaces:
Proxy
GstMeta
for carrying SMPTE-291M Ancillary data. Note that all the ADF fields
(DID
to checksum
) are 10bit values with parity/non-parity high-bits set.-
Constructor Summary
ConstructorDescriptionAllocate a new AncillaryMeta.AncillaryMeta
(Arena arena) Allocate a new AncillaryMeta.AncillaryMeta
(MemorySegment address) Create a AncillaryMeta proxy instance for the provided memory address.AncillaryMeta
(Meta meta, AncillaryMetaField field, boolean cNotYChannel, short line, short offset, short DID, short SDIDBlockNumber, short dataCount, MemorySegment data, short checksum) Allocate a new AncillaryMeta with the fields set to the provided values.AncillaryMeta
(Meta meta, AncillaryMetaField field, boolean cNotYChannel, short line, short offset, short DID, short SDIDBlockNumber, short dataCount, MemorySegment data, short checksum, Arena arena) Allocate a new AncillaryMeta with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetaInfo
getInfo()
static MemoryLayout
The memory layout of the native struct.short
Read the value of the fieldchecksum
.boolean
Read the value of the fieldc_not_y_channel
.readData()
Read the value of the fielddata
.short
Read the value of the fielddata_count
.short
readDID()
Read the value of the fieldDID
.Read the value of the fieldfield
.short
readLine()
Read the value of the fieldline
.readMeta()
Read the value of the fieldmeta
.short
Read the value of the fieldoffset
.short
Read the value of the fieldSDID_block_number
.void
writeChecksum
(short checksum) Write a value in the fieldchecksum
.void
writeCNotYChannel
(boolean cNotYChannel) Write a value in the fieldc_not_y_channel
.void
writeData
(MemorySegment data) Write a value in the fielddata
.void
writeDataCount
(short dataCount) Write a value in the fielddata_count
.void
writeDID
(short DID) Write a value in the fieldDID
.void
writeField
(AncillaryMetaField field) Write a value in the fieldfield
.void
writeLine
(short line) Write a value in the fieldline
.void
Write a value in the fieldmeta
.void
writeOffset
(short offset) Write a value in the fieldoffset
.void
writeSDIDBlockNumber
(short SDIDBlockNumber) Write a value in the fieldSDID_block_number
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AncillaryMeta
Create a AncillaryMeta proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AncillaryMeta
Allocate a new AncillaryMeta.- Parameters:
arena
- to control the memory allocation scope
-
AncillaryMeta
public AncillaryMeta()Allocate a new AncillaryMeta. The memory is allocated withArena.ofAuto()
. -
AncillaryMeta
public AncillaryMeta(Meta meta, AncillaryMetaField field, boolean cNotYChannel, short line, short offset, short DID, short SDIDBlockNumber, short dataCount, MemorySegment data, short checksum, Arena arena) Allocate a new AncillaryMeta with the fields set to the provided values.- Parameters:
meta
- value for the fieldmeta
field
- value for the fieldfield
cNotYChannel
- value for the fieldcNotYChannel
line
- value for the fieldline
offset
- value for the fieldoffset
DID
- value for the fieldDID
SDIDBlockNumber
- value for the fieldSDIDBlockNumber
dataCount
- value for the fielddataCount
data
- value for the fielddata
checksum
- value for the fieldchecksum
arena
- to control the memory allocation scope
-
AncillaryMeta
public AncillaryMeta(Meta meta, AncillaryMetaField field, boolean cNotYChannel, short line, short offset, short DID, short SDIDBlockNumber, short dataCount, MemorySegment data, short checksum) Allocate a new AncillaryMeta with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
meta
- value for the fieldmeta
field
- value for the fieldfield
cNotYChannel
- value for the fieldcNotYChannel
line
- value for the fieldline
offset
- value for the fieldoffset
DID
- value for the fieldDID
SDIDBlockNumber
- value for the fieldSDIDBlockNumber
dataCount
- value for the fielddataCount
data
- value for the fielddata
checksum
- value for the fieldchecksum
-
-
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
-
readField
Read the value of the fieldfield
.- Returns:
- The value of the field
field
-
writeField
Write a value in the fieldfield
.- Parameters:
field
- The new value for the fieldfield
-
readCNotYChannel
public boolean readCNotYChannel()Read the value of the fieldc_not_y_channel
.- Returns:
- The value of the field
c_not_y_channel
-
writeCNotYChannel
public void writeCNotYChannel(boolean cNotYChannel) Write a value in the fieldc_not_y_channel
.- Parameters:
cNotYChannel
- The new value for the fieldc_not_y_channel
-
readLine
public short readLine()Read the value of the fieldline
.- Returns:
- The value of the field
line
-
writeLine
public void writeLine(short line) Write a value in the fieldline
.- Parameters:
line
- The new value for the fieldline
-
readOffset
public short readOffset()Read the value of the fieldoffset
.- Returns:
- The value of the field
offset
-
writeOffset
public void writeOffset(short offset) Write a value in the fieldoffset
.- Parameters:
offset
- The new value for the fieldoffset
-
readDID
public short readDID()Read the value of the fieldDID
.- Returns:
- The value of the field
DID
-
writeDID
public void writeDID(short DID) Write a value in the fieldDID
.- Parameters:
DID
- The new value for the fieldDID
-
readSDIDBlockNumber
public short readSDIDBlockNumber()Read the value of the fieldSDID_block_number
.- Returns:
- The value of the field
SDID_block_number
-
writeSDIDBlockNumber
public void writeSDIDBlockNumber(short SDIDBlockNumber) Write a value in the fieldSDID_block_number
.- Parameters:
SDIDBlockNumber
- The new value for the fieldSDID_block_number
-
readDataCount
public short readDataCount()Read the value of the fielddata_count
.- Returns:
- The value of the field
data_count
-
writeDataCount
public void writeDataCount(short dataCount) Write a value in the fielddata_count
.- Parameters:
dataCount
- The new value for the fielddata_count
-
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
-
readChecksum
public short readChecksum()Read the value of the fieldchecksum
.- Returns:
- The value of the field
checksum
-
writeChecksum
public void writeChecksum(short checksum) Write a value in the fieldchecksum
.- Parameters:
checksum
- The new value for the fieldchecksum
-
getInfo
-