Package org.freedesktop.gstreamer.video
Class VideoColorPrimariesInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoColorPrimariesInfo
- All Implemented Interfaces:
Proxy
Structure describing the chromaticity coordinates of an RGB system. These
values can be used to construct a matrix to transform RGB to and from the
XYZ colorspace.
-
Constructor Summary
ConstructorDescriptionAllocate a new VideoColorPrimariesInfo.VideoColorPrimariesInfo
(Arena arena) Allocate a new VideoColorPrimariesInfo.VideoColorPrimariesInfo
(MemorySegment address) Create a VideoColorPrimariesInfo proxy instance for the provided memory address.VideoColorPrimariesInfo
(VideoColorPrimaries primaries, double Wx, double Wy, double Rx, double Ry, double Gx, double Gy, double Bx, double By) Allocate a new VideoColorPrimariesInfo with the fields set to the provided values.VideoColorPrimariesInfo
(VideoColorPrimaries primaries, double Wx, double Wy, double Rx, double Ry, double Gx, double Gy, double Bx, double By, Arena arena) Allocate a new VideoColorPrimariesInfo with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.double
readBx()
Read the value of the fieldBx
.double
readBy()
Read the value of the fieldBy
.double
readGx()
Read the value of the fieldGx
.double
readGy()
Read the value of the fieldGy
.Read the value of the fieldprimaries
.double
readRx()
Read the value of the fieldRx
.double
readRy()
Read the value of the fieldRy
.double
readWx()
Read the value of the fieldWx
.double
readWy()
Read the value of the fieldWy
.void
writeBx
(double Bx) Write a value in the fieldBx
.void
writeBy
(double By) Write a value in the fieldBy
.void
writeGx
(double Gx) Write a value in the fieldGx
.void
writeGy
(double Gy) Write a value in the fieldGy
.void
writePrimaries
(VideoColorPrimaries primaries) Write a value in the fieldprimaries
.void
writeRx
(double Rx) Write a value in the fieldRx
.void
writeRy
(double Ry) Write a value in the fieldRy
.void
writeWx
(double Wx) Write a value in the fieldWx
.void
writeWy
(double Wy) Write a value in the fieldWy
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoColorPrimariesInfo
Create a VideoColorPrimariesInfo proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
VideoColorPrimariesInfo
Allocate a new VideoColorPrimariesInfo.- Parameters:
arena
- to control the memory allocation scope
-
VideoColorPrimariesInfo
public VideoColorPrimariesInfo()Allocate a new VideoColorPrimariesInfo. The memory is allocated withArena.ofAuto()
. -
VideoColorPrimariesInfo
public VideoColorPrimariesInfo(VideoColorPrimaries primaries, double Wx, double Wy, double Rx, double Ry, double Gx, double Gy, double Bx, double By, Arena arena) Allocate a new VideoColorPrimariesInfo with the fields set to the provided values.- Parameters:
primaries
- value for the fieldprimaries
Wx
- value for the fieldWx
Wy
- value for the fieldWy
Rx
- value for the fieldRx
Ry
- value for the fieldRy
Gx
- value for the fieldGx
Gy
- value for the fieldGy
Bx
- value for the fieldBx
By
- value for the fieldBy
arena
- to control the memory allocation scope
-
VideoColorPrimariesInfo
public VideoColorPrimariesInfo(VideoColorPrimaries primaries, double Wx, double Wy, double Rx, double Ry, double Gx, double Gy, double Bx, double By) Allocate a new VideoColorPrimariesInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
primaries
- value for the fieldprimaries
Wx
- value for the fieldWx
Wy
- value for the fieldWy
Rx
- value for the fieldRx
Ry
- value for the fieldRy
Gx
- value for the fieldGx
Gy
- value for the fieldGy
Bx
- value for the fieldBx
By
- value for the fieldBy
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readPrimaries
Read the value of the fieldprimaries
.- Returns:
- The value of the field
primaries
-
writePrimaries
Write a value in the fieldprimaries
.- Parameters:
primaries
- The new value for the fieldprimaries
-
readWx
public double readWx()Read the value of the fieldWx
.- Returns:
- The value of the field
Wx
-
writeWx
public void writeWx(double Wx) Write a value in the fieldWx
.- Parameters:
Wx
- The new value for the fieldWx
-
readWy
public double readWy()Read the value of the fieldWy
.- Returns:
- The value of the field
Wy
-
writeWy
public void writeWy(double Wy) Write a value in the fieldWy
.- Parameters:
Wy
- The new value for the fieldWy
-
readRx
public double readRx()Read the value of the fieldRx
.- Returns:
- The value of the field
Rx
-
writeRx
public void writeRx(double Rx) Write a value in the fieldRx
.- Parameters:
Rx
- The new value for the fieldRx
-
readRy
public double readRy()Read the value of the fieldRy
.- Returns:
- The value of the field
Ry
-
writeRy
public void writeRy(double Ry) Write a value in the fieldRy
.- Parameters:
Ry
- The new value for the fieldRy
-
readGx
public double readGx()Read the value of the fieldGx
.- Returns:
- The value of the field
Gx
-
writeGx
public void writeGx(double Gx) Write a value in the fieldGx
.- Parameters:
Gx
- The new value for the fieldGx
-
readGy
public double readGy()Read the value of the fieldGy
.- Returns:
- The value of the field
Gy
-
writeGy
public void writeGy(double Gy) Write a value in the fieldGy
.- Parameters:
Gy
- The new value for the fieldGy
-
readBx
public double readBx()Read the value of the fieldBx
.- Returns:
- The value of the field
Bx
-
writeBx
public void writeBx(double Bx) Write a value in the fieldBx
.- Parameters:
Bx
- The new value for the fieldBx
-
readBy
public double readBy()Read the value of the fieldBy
.- Returns:
- The value of the field
By
-
writeBy
public void writeBy(double By) Write a value in the fieldBy
.- Parameters:
By
- The new value for the fieldBy
-