Class SampleExtractor.SampleBitsExtractor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int bitsPerSample  
      private byte mask  
    • Constructor Summary

      Constructors 
      Constructor Description
      SampleBitsExtractor​(int bitsPerSample)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long extract​(byte[] samples, int position)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bitsPerSample

        private final int bitsPerSample
      • mask

        private final byte mask
    • Constructor Detail

      • SampleBitsExtractor

        public SampleBitsExtractor​(int bitsPerSample)
    • Method Detail

      • extract

        public long extract​(byte[] samples,
                            int position)
        Specified by:
        extract in class SampleExtractor