Class IBufferSink

    • Constructor Detail

      • IBufferSink

        protected IBufferSink​(long cPtr,
                              boolean cMemoryOwn)
        Internal Only.
      • IBufferSink

        protected IBufferSink​(long cPtr,
                              boolean cMemoryOwn,
                              java.util.concurrent.atomic.AtomicLong ref)
        Internal Only.
    • Method Detail

      • getCPtr

        public static long getCPtr​(IBufferSink obj)
        Internal Only. Not part of public API. Get the raw value of the native object that obj is proxying for.
        Parameters:
        obj - The java proxy object for a native object.
        Returns:
        The raw pointer obj is proxying for.
      • getMyCPtr

        public long getMyCPtr()
        Internal Only. Not part of public API. Get the raw value of the native object that we're proxying for.
        Overrides:
        getMyCPtr in class IMediaFilter
        Returns:
        The raw pointer we're proxying for.
      • equals

        public boolean equals​(java.lang.Object obj)
        Compares two values, returning true if the underlying objects in native code are the same object. That means you can have two different Java objects, but when you do a comparison, you'll find out they are the EXACT same object.
        Overrides:
        equals in class IMediaFilter
        Returns:
        True if the underlying native object is the same. False otherwise.
      • hashCode

        public int hashCode()
        Get a hashable value for this object.
        Overrides:
        hashCode in class IMediaFilter
        Returns:
        the hashable value.
      • getSampleRate

        public int getSampleRate()
        Returns the sample rate of output filtered samples.

        Returns:
        the sample rate
      • getChannels

        public int getChannels()
        Returns the channel number of output filtered samples.

        Returns:
        the channel number
      • getWidth

        public int getWidth()
        Returns the width of output filtered picture.

        Returns:
        the width
      • getHeight

        public int getHeight()
        Returns the height of output filtered picture.

        Returns:
        the height
      • getFrameRate

        public IRational getFrameRate()
        Returns the frame rate output filtered picture.

        Returns:
        the frame rate
      • getTimeBase

        public IRational getTimeBase()
        Returns the frame rate output filtered picture.

        Returns:
        the frame rate
      • setNumSamples

        public void setNumSamples​(int frameSize)
        Sets the number of samples for each output filtered samples.
        The last buffer will be padded with 0.

        Parameters:
        frameSize - the number of samples of output
      • fillAudioSamples

        public int fillAudioSamples​(IAudioSamples samples)
        Fills this audio samples with filtered data

        Parameters:
        samples - the audio samples filled with filtered data

        Returns:
        0 on success or <0 if an error occurs
      • fillVideoPicture

        public int fillVideoPicture​(IVideoPicture picture)
        Fills this video picture with filtered data



        Returns:
        0 on success or <0 if an error occurs