Package org.freedesktop.gstreamer.video
Class VideoRegionOfInterestMeta
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoRegionOfInterestMeta
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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, List<MemorySegment> params) 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, List<MemorySegment> params, Arena arena) Allocate a new VideoRegionOfInterestMeta with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionvoidAttach element-specific parameters to this VideoRegionOfInterestMeta meant to be used by downstream elements which may handle this ROI.static MetaInfogetInfo()static MemoryLayoutThe memory layout of the native struct.@Nullable StructureRetrieve the parameter for this VideoRegionOfInterestMeta havingnameas structure name, ornullif there is none.intreadH()Read the value of the fieldh.intreadId()Read the value of the fieldid.@Nullable MetareadMeta()Read the value of the fieldmeta.Read the value of the fieldparams.intRead the value of the fieldparent_id.Read the value of the fieldroi_type.intreadW()Read the value of the fieldw.intreadX()Read the value of the fieldx.intreadY()Read the value of the fieldy.voidwriteH(int h) Write a value in the fieldh.voidwriteId(int id) Write a value in the fieldid.voidWrite a value in the fieldmeta.voidwriteParams(List<MemorySegment> params) Write a value in the fieldparams.voidwriteParentId(int parentId) Write a value in the fieldparent_id.voidwriteRoiType(Quark roiType) Write a value in the fieldroi_type.voidwriteW(int w) Write a value in the fieldw.voidwriteX(int x) Write a value in the fieldx.voidwriteY(int y) Write a value in the fieldy.Methods inherited from class org.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, List<MemorySegment> params, Arena arena) Allocate a new VideoRegionOfInterestMeta with the fields set to the provided values.- Parameters:
meta- value for the fieldmetaroiType- value for the fieldroiTypeid- value for the fieldidparentId- value for the fieldparentIdx- value for the fieldxy- value for the fieldyw- value for the fieldwh- value for the fieldhparams- value for the fieldparamsarena- 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, List<MemorySegment> params) Allocate a new VideoRegionOfInterestMeta with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
meta- value for the fieldmetaroiType- value for the fieldroiTypeid- value for the fieldidparentId- value for the fieldparentIdx- value for the fieldxy- value for the fieldyw- value for the fieldwh- value for the fieldhparams- value for the fieldparams
-
-
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
-
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
-
readParams
Read the value of the fieldparams.- Returns:
- The value of the field
params
-
writeParams
Write a value in the fieldparams.- Parameters:
params- The new value for the fieldparams
-
getInfo
-
addParam
Attach element-specific parameters to this VideoRegionOfInterestMeta meant to be used by downstream elements which may handle this ROI. The name ofsis 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
meta.Multiple parameters can be defined for the same meta so different encoders can be supported by cross platform applications).- Parameters:
s- aGstStructure- Since:
- 1.14
-
getParam
-