Class IBufferSource

    • Constructor Detail

      • IBufferSource

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

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

      • getCPtr

        public static long getCPtr​(IBufferSource 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.
      • addAudioSamples

        public int addAudioSamples​(IAudioSamples samples)
        Adds audio samples to this filter

        Parameters:
        samples - the audio samples to add
        Returns:
        0 on success or <0 if an error occurs
      • addVideoPicture

        public int addVideoPicture​(IVideoPicture picture)
        Adds picture to this filter

        Parameters:
        picture - the picture to add
        Returns:
        0 on success or <0 if an error occurs