Class VideoResampler

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoResampler
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class VideoResampler extends ProxyInstance
GstVideoResampler is a structure which holds the information required to perform various kinds of resampling filtering.
Since:
1.6
  • Constructor Details

    • VideoResampler

      public VideoResampler(MemorySegment address)
      Create a VideoResampler proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • VideoResampler

      public VideoResampler(Arena arena)
      Allocate a new VideoResampler.
      Parameters:
      arena - to control the memory allocation scope
    • VideoResampler

      public VideoResampler()
      Allocate a new VideoResampler. The memory is allocated with Arena.ofAuto().
    • VideoResampler

      public VideoResampler(int inSize, int outSize, int maxTaps, int nPhases, MemorySegment offset, MemorySegment phase, MemorySegment nTaps, MemorySegment taps, Arena arena)
      Allocate a new VideoResampler with the fields set to the provided values.
      Parameters:
      inSize - value for the field inSize
      outSize - value for the field outSize
      maxTaps - value for the field maxTaps
      nPhases - value for the field nPhases
      offset - value for the field offset
      phase - value for the field phase
      nTaps - value for the field nTaps
      taps - value for the field taps
      arena - to control the memory allocation scope
    • VideoResampler

      public VideoResampler(int inSize, int outSize, int maxTaps, int nPhases, MemorySegment offset, MemorySegment phase, MemorySegment nTaps, MemorySegment taps)
      Allocate a new VideoResampler with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      inSize - value for the field inSize
      outSize - value for the field outSize
      maxTaps - value for the field maxTaps
      nPhases - value for the field nPhases
      offset - value for the field offset
      phase - value for the field phase
      nTaps - value for the field nTaps
      taps - value for the field taps
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readInSize

      public int readInSize()
      Read the value of the field in_size.
      Returns:
      The value of the field in_size
    • writeInSize

      public void writeInSize(int inSize)
      Write a value in the field in_size.
      Parameters:
      inSize - The new value for the field in_size
    • readOutSize

      public int readOutSize()
      Read the value of the field out_size.
      Returns:
      The value of the field out_size
    • writeOutSize

      public void writeOutSize(int outSize)
      Write a value in the field out_size.
      Parameters:
      outSize - The new value for the field out_size
    • readMaxTaps

      public int readMaxTaps()
      Read the value of the field max_taps.
      Returns:
      The value of the field max_taps
    • writeMaxTaps

      public void writeMaxTaps(int maxTaps)
      Write a value in the field max_taps.
      Parameters:
      maxTaps - The new value for the field max_taps
    • readNPhases

      public int readNPhases()
      Read the value of the field n_phases.
      Returns:
      The value of the field n_phases
    • writeNPhases

      public void writeNPhases(int nPhases)
      Write a value in the field n_phases.
      Parameters:
      nPhases - The new value for the field n_phases
    • readOffset

      public MemorySegment readOffset()
      Read the value of the field offset.
      Returns:
      The value of the field offset
    • writeOffset

      public void writeOffset(MemorySegment offset)
      Write a value in the field offset.
      Parameters:
      offset - The new value for the field offset
    • readPhase

      public MemorySegment readPhase()
      Read the value of the field phase.
      Returns:
      The value of the field phase
    • writePhase

      public void writePhase(MemorySegment phase)
      Write a value in the field phase.
      Parameters:
      phase - The new value for the field phase
    • readNTaps

      public MemorySegment readNTaps()
      Read the value of the field n_taps.
      Returns:
      The value of the field n_taps
    • writeNTaps

      public void writeNTaps(MemorySegment nTaps)
      Write a value in the field n_taps.
      Parameters:
      nTaps - The new value for the field n_taps
    • readTaps

      public MemorySegment readTaps()
      Read the value of the field taps.
      Returns:
      The value of the field taps
    • writeTaps

      public void writeTaps(MemorySegment taps)
      Write a value in the field taps.
      Parameters:
      taps - The new value for the field taps
    • clear

      public void clear()
      Clear a previously initialized GstVideoResampler resampler.
      Since:
      1.6
    • init

      public boolean init(VideoResamplerMethod method, Set<VideoResamplerFlags> flags, int nPhases, int nTaps, double shift, int inSize, int outSize, Structure options)
    • init

      public boolean init(VideoResamplerMethod method, VideoResamplerFlags flags, int nPhases, int nTaps, double shift, int inSize, int outSize, Structure options)