Package org.freedesktop.gstreamer.video
Class AncillaryMeta
java.lang.Object
org.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.- Since:
- 1.24
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MetaInfogetInfo()static MemoryLayoutThe memory layout of the native struct.shortRead the value of the fieldchecksum.booleanRead the value of the fieldc_not_y_channel.readData()Read the value of the fielddata.shortRead the value of the fielddata_count.shortreadDID()Read the value of the fieldDID.Read the value of the fieldfield.shortreadLine()Read the value of the fieldline.@Nullable MetareadMeta()Read the value of the fieldmeta.shortRead the value of the fieldoffset.shortRead the value of the fieldSDID_block_number.voidwriteChecksum(short checksum) Write a value in the fieldchecksum.voidwriteCNotYChannel(boolean cNotYChannel) Write a value in the fieldc_not_y_channel.voidwriteData(MemorySegment data) Write a value in the fielddata.voidwriteDataCount(short dataCount) Write a value in the fielddata_count.voidwriteDID(short DID) Write a value in the fieldDID.voidwriteField(AncillaryMetaField field) Write a value in the fieldfield.voidwriteLine(short line) Write a value in the fieldline.voidWrite a value in the fieldmeta.voidwriteOffset(short offset) Write a value in the fieldoffset.voidwriteSDIDBlockNumber(short SDIDBlockNumber) Write a value in the fieldSDID_block_number.Methods inherited from class org.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 fieldmetafield- value for the fieldfieldcNotYChannel- value for the fieldcNotYChannelline- value for the fieldlineoffset- value for the fieldoffsetDID- value for the fieldDIDSDIDBlockNumber- value for the fieldSDIDBlockNumberdataCount- value for the fielddataCountdata- value for the fielddatachecksum- value for the fieldchecksumarena- 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 fieldmetafield- value for the fieldfieldcNotYChannel- value for the fieldcNotYChannelline- value for the fieldlineoffset- value for the fieldoffsetDID- value for the fieldDIDSDIDBlockNumber- value for the fieldSDIDBlockNumberdataCount- value for the fielddataCountdata- value for the fielddatachecksum- value for the fieldchecksum
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readMeta
Read the value of the fieldmeta.- Returns:
- The value of the field
meta
-
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
-