Class DCTCodec

java.lang.Object
com.helger.base.codec.impl.DCTCodec
All Implemented Interfaces:
IByteArrayDecoder, IDecoder<byte[],byte[]>

public class DCTCodec extends Object implements IByteArrayDecoder
Decoder for Discrete Cosinus Transformation (DCT)
Author:
Philip Helger
  • Constructor Details

    • DCTCodec

      public DCTCodec()
      Constructor.
  • Method Details

    • getDecoded

      @ReturnsMutableCopy public byte @Nullable [] getDecoded(byte @Nullable [] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)
      Decode the passed DCT encoded buffer.
      Specified by:
      getDecoded in interface IByteArrayDecoder
      Parameters:
      aEncodedBuffer - The DCT encoded buffer to be decoded. May be null.
      nOfs - The offset in the buffer to start decoding from.
      nLen - The number of bytes to decode.
      Returns:
      The decoded byte array or null if the input was null.
    • getDecodedDCT

      @ReturnsMutableCopy public static byte @Nullable [] getDecodedDCT(byte @Nullable [] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)
      Decode the passed DCT encoded buffer using static method.
      Parameters:
      aEncodedBuffer - The DCT encoded buffer to be decoded. May be null.
      nOfs - The offset in the buffer to start decoding from.
      nLen - The number of bytes to decode.
      Returns:
      The decoded byte array or null if the input was null.