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()
  • Method Details

    • getDecoded

      @Nullable @ReturnsMutableCopy public byte[] getDecoded(@Nullable byte[] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)
      Description copied from interface: IByteArrayDecoder
      Decode a byte array.
      Specified by:
      getDecoded in interface IByteArrayDecoder
      Parameters:
      aEncodedBuffer - The byte array to be decoded. May be null.
      nOfs - Offset into the byte array to start from.
      nLen - Number of bytes starting from offset to consider.
      Returns:
      The decoded byte array or null if the parameter was null.
    • getDecodedDCT

      @Nullable @ReturnsMutableCopy public static byte[] getDecodedDCT(@Nullable byte[] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)