Package org.freedesktop.gstreamer.video
Class VideoColorPrimariesInfo
java.lang.Object
org.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.
- Since:
- 1.6
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.doublereadBx()Read the value of the fieldBx.doublereadBy()Read the value of the fieldBy.doublereadGx()Read the value of the fieldGx.doublereadGy()Read the value of the fieldGy.Read the value of the fieldprimaries.doublereadRx()Read the value of the fieldRx.doublereadRy()Read the value of the fieldRy.doublereadWx()Read the value of the fieldWx.doublereadWy()Read the value of the fieldWy.voidwriteBx(double Bx) Write a value in the fieldBx.voidwriteBy(double By) Write a value in the fieldBy.voidwriteGx(double Gx) Write a value in the fieldGx.voidwriteGy(double Gy) Write a value in the fieldGy.voidwritePrimaries(VideoColorPrimaries primaries) Write a value in the fieldprimaries.voidwriteRx(double Rx) Write a value in the fieldRx.voidwriteRy(double Ry) Write a value in the fieldRy.voidwriteWx(double Wx) Write a value in the fieldWx.voidwriteWy(double Wy) Write a value in the fieldWy.Methods inherited from class org.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 fieldprimariesWx- value for the fieldWxWy- value for the fieldWyRx- value for the fieldRxRy- value for the fieldRyGx- value for the fieldGxGy- value for the fieldGyBx- value for the fieldBxBy- value for the fieldByarena- 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 fieldprimariesWx- value for the fieldWxWy- value for the fieldWyRx- value for the fieldRxRy- value for the fieldRyGx- value for the fieldGxGy- value for the fieldGyBx- value for the fieldBxBy- 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
-