Class VideoChromaResample

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

@Generated("org.javagi.JavaGI") public class VideoChromaResample extends ProxyInstance
  • Constructor Details

    • VideoChromaResample

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

    • getMemoryLayout

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

      public static VideoChromaResample new_(VideoChromaMethod method, Set<VideoChromaSite> site, Set<VideoChromaFlags> flags, VideoFormat format, int hFactor, int vFactor)
      Create a new resampler object for the given parameters. When hFactor or vFactor is > 0, upsampling will be used, otherwise subsampling is performed.
      Parameters:
      method - a GstVideoChromaMethod
      site - a GstVideoChromaSite
      flags - GstVideoChromaFlags
      format - the GstVideoFormat
      hFactor - horizontal resampling factor
      vFactor - vertical resampling factor
      Returns:
      a new GstVideoChromaResample that should be freed with gst_video_chroma_resample_free() after usage.
    • new_

      public static VideoChromaResample new_(VideoChromaMethod method, VideoChromaSite site, VideoChromaFlags flags, VideoFormat format, int hFactor, int vFactor)
      Create a new resampler object for the given parameters. When hFactor or vFactor is > 0, upsampling will be used, otherwise subsampling is performed.
      Parameters:
      method - a GstVideoChromaMethod
      site - a GstVideoChromaSite
      flags - GstVideoChromaFlags
      format - the GstVideoFormat
      hFactor - horizontal resampling factor
      vFactor - vertical resampling factor
      Returns:
      a new GstVideoChromaResample that should be freed with gst_video_chroma_resample_free() after usage.
    • videoChromaResample

      public void videoChromaResample(@Nullable MemorySegment lines, int width)
      Perform resampling of width chroma pixels in lines.
      Parameters:
      lines - pixel lines
      width - the number of pixels on one line
    • free

      public void free()
      Free this VideoChromaResample
    • getInfo

      public void getInfo(@Nullable Out<Integer> nLines, @Nullable Out<Integer> offset)
      The resampler must be fed nLines at a time. The first line should be at offset.
      Parameters:
      nLines - the number of input lines
      offset - the first line