Package org.freedesktop.gstreamer.video
Class VideoBarMeta
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoBarMeta
- All Implemented Interfaces:
Proxy
Bar data should be included in video user data
whenever the rectangular picture area containing useful information
does not extend to the full height or width of the coded frame
and AFD alone is insufficient to describe the extent of the image.
Note: either vertical or horizontal bars are specified, but not both.
For more details, see:
https://www.atsc.org/wp-content/uploads/2015/03/a_53-Part-4-2009.pdf
and SMPTE ST2016-1
-
Constructor Summary
ConstructorDescriptionAllocate a new VideoBarMeta.VideoBarMeta
(Arena arena) Allocate a new VideoBarMeta.VideoBarMeta
(MemorySegment address) Create a VideoBarMeta proxy instance for the provided memory address.VideoBarMeta
(Meta meta, byte field, boolean isLetterbox, int barData1, int barData2) Allocate a new VideoBarMeta with the fields set to the provided values.VideoBarMeta
(Meta meta, byte field, boolean isLetterbox, int barData1, int barData2, Arena arena) Allocate a new VideoBarMeta with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetaInfo
getInfo()
static MemoryLayout
The memory layout of the native struct.int
Read the value of the fieldbar_data1
.int
Read the value of the fieldbar_data2
.byte
Read the value of the fieldfield
.boolean
Read the value of the fieldis_letterbox
.readMeta()
Read the value of the fieldmeta
.void
writeBarData1
(int barData1) Write a value in the fieldbar_data1
.void
writeBarData2
(int barData2) Write a value in the fieldbar_data2
.void
writeField
(byte field) Write a value in the fieldfield
.void
writeIsLetterbox
(boolean isLetterbox) Write a value in the fieldis_letterbox
.void
Write a value in the fieldmeta
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoBarMeta
Create a VideoBarMeta proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
VideoBarMeta
Allocate a new VideoBarMeta.- Parameters:
arena
- to control the memory allocation scope
-
VideoBarMeta
public VideoBarMeta()Allocate a new VideoBarMeta. The memory is allocated withArena.ofAuto()
. -
VideoBarMeta
public VideoBarMeta(Meta meta, byte field, boolean isLetterbox, int barData1, int barData2, Arena arena) Allocate a new VideoBarMeta with the fields set to the provided values.- Parameters:
meta
- value for the fieldmeta
field
- value for the fieldfield
isLetterbox
- value for the fieldisLetterbox
barData1
- value for the fieldbarData1
barData2
- value for the fieldbarData2
arena
- to control the memory allocation scope
-
VideoBarMeta
Allocate a new VideoBarMeta 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
isLetterbox
- value for the fieldisLetterbox
barData1
- value for the fieldbarData1
barData2
- value for the fieldbarData2
-
-
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
public byte readField()Read the value of the fieldfield
.- Returns:
- The value of the field
field
-
writeField
public void writeField(byte field) Write a value in the fieldfield
.- Parameters:
field
- The new value for the fieldfield
-
readIsLetterbox
public boolean readIsLetterbox()Read the value of the fieldis_letterbox
.- Returns:
- The value of the field
is_letterbox
-
writeIsLetterbox
public void writeIsLetterbox(boolean isLetterbox) Write a value in the fieldis_letterbox
.- Parameters:
isLetterbox
- The new value for the fieldis_letterbox
-
readBarData1
public int readBarData1()Read the value of the fieldbar_data1
.- Returns:
- The value of the field
bar_data1
-
writeBarData1
public void writeBarData1(int barData1) Write a value in the fieldbar_data1
.- Parameters:
barData1
- The new value for the fieldbar_data1
-
readBarData2
public int readBarData2()Read the value of the fieldbar_data2
.- Returns:
- The value of the field
bar_data2
-
writeBarData2
public void writeBarData2(int barData2) Write a value in the fieldbar_data2
.- Parameters:
barData2
- The new value for the fieldbar_data2
-
getInfo
-