Package org.freedesktop.gstreamer.video
Class VideoRegionOfInterestMeta
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoRegionOfInterestMeta
-
Constructor Summary
ConstructorDescriptionAllocate a new VideoRegionOfInterestMeta.VideoRegionOfInterestMeta
(Arena arena) Allocate a new VideoRegionOfInterestMeta.VideoRegionOfInterestMeta
(MemorySegment address) Create a VideoRegionOfInterestMeta proxy instance for the provided memory address.VideoRegionOfInterestMeta
(Meta meta, Quark roiType, int id, int parentId, int x, int y, int w, int h) Allocate a new VideoRegionOfInterestMeta with the fields set to the provided values.VideoRegionOfInterestMeta
(Meta meta, Quark roiType, int id, int parentId, int x, int y, int w, int h, Arena arena) Allocate a new VideoRegionOfInterestMeta with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Attach element-specific parameters to this VideoRegionOfInterestMeta meant to be used by downstream elements which may handle this ROI.static MetaInfo
getInfo()
static MemoryLayout
The memory layout of the native struct.Retrieve the parameter for this VideoRegionOfInterestMeta havingname
as structure name, ornull
if there is none.int
readH()
Read the value of the fieldh
.int
readId()
Read the value of the fieldid
.readMeta()
Read the value of the fieldmeta
.int
Read the value of the fieldparent_id
.Read the value of the fieldroi_type
.int
readW()
Read the value of the fieldw
.int
readX()
Read the value of the fieldx
.int
readY()
Read the value of the fieldy
.void
writeH
(int h) Write a value in the fieldh
.void
writeId
(int id) Write a value in the fieldid
.void
Write a value in the fieldmeta
.void
writeParentId
(int parentId) Write a value in the fieldparent_id
.void
writeRoiType
(Quark roiType) Write a value in the fieldroi_type
.void
writeW
(int w) Write a value in the fieldw
.void
writeX
(int x) Write a value in the fieldx
.void
writeY
(int y) Write a value in the fieldy
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoRegionOfInterestMeta
Create a VideoRegionOfInterestMeta proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
VideoRegionOfInterestMeta
Allocate a new VideoRegionOfInterestMeta.- Parameters:
arena
- to control the memory allocation scope
-
VideoRegionOfInterestMeta
public VideoRegionOfInterestMeta()Allocate a new VideoRegionOfInterestMeta. The memory is allocated withArena.ofAuto()
. -
VideoRegionOfInterestMeta
public VideoRegionOfInterestMeta(Meta meta, Quark roiType, int id, int parentId, int x, int y, int w, int h, Arena arena) Allocate a new VideoRegionOfInterestMeta with the fields set to the provided values.- Parameters:
meta
- value for the fieldmeta
roiType
- value for the fieldroiType
id
- value for the fieldid
parentId
- value for the fieldparentId
x
- value for the fieldx
y
- value for the fieldy
w
- value for the fieldw
h
- value for the fieldh
arena
- to control the memory allocation scope
-
VideoRegionOfInterestMeta
public VideoRegionOfInterestMeta(Meta meta, Quark roiType, int id, int parentId, int x, int y, int w, int h) Allocate a new VideoRegionOfInterestMeta with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
meta
- value for the fieldmeta
roiType
- value for the fieldroiType
id
- value for the fieldid
parentId
- value for the fieldparentId
x
- value for the fieldx
y
- value for the fieldy
w
- value for the fieldw
h
- value for the fieldh
-
-
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
-
readRoiType
Read the value of the fieldroi_type
.- Returns:
- The value of the field
roi_type
-
writeRoiType
Write a value in the fieldroi_type
.- Parameters:
roiType
- The new value for the fieldroi_type
-
readId
public int readId()Read the value of the fieldid
.- Returns:
- The value of the field
id
-
writeId
public void writeId(int id) Write a value in the fieldid
.- Parameters:
id
- The new value for the fieldid
-
readParentId
public int readParentId()Read the value of the fieldparent_id
.- Returns:
- The value of the field
parent_id
-
writeParentId
public void writeParentId(int parentId) Write a value in the fieldparent_id
.- Parameters:
parentId
- The new value for the fieldparent_id
-
readX
public int readX()Read the value of the fieldx
.- Returns:
- The value of the field
x
-
writeX
public void writeX(int x) Write a value in the fieldx
.- Parameters:
x
- The new value for the fieldx
-
readY
public int readY()Read the value of the fieldy
.- Returns:
- The value of the field
y
-
writeY
public void writeY(int y) Write a value in the fieldy
.- Parameters:
y
- The new value for the fieldy
-
readW
public int readW()Read the value of the fieldw
.- Returns:
- The value of the field
w
-
writeW
public void writeW(int w) Write a value in the fieldw
.- Parameters:
w
- The new value for the fieldw
-
readH
public int readH()Read the value of the fieldh
.- Returns:
- The value of the field
h
-
writeH
public void writeH(int h) Write a value in the fieldh
.- Parameters:
h
- The new value for the fieldh
-
getInfo
-
addParam
Attach element-specific parameters to this VideoRegionOfInterestMeta meant to be used by downstream elements which may handle this ROI. The name ofs
is used to identify the element these parameters are meant for.This is typically used to tell encoders how they should encode this specific region. For example, a structure named "roi/x264enc" could be used to give the QP offsets this encoder should use when encoding the region described in this VideoRegionOfInterestMeta. Multiple parameters can be defined for the same meta so different encoders can be supported by cross platform applications).
- Parameters:
s
- aGstStructure
-
getParam
-