Package com.helger.base.codec.impl
Class DCTCodec
java.lang.Object
com.helger.base.codec.impl.DCTCodec
- All Implemented Interfaces:
IByteArrayDecoder,IDecoder<byte[],byte[]>
Decoder for Discrete Cosinus Transformation (DCT)
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte @Nullable []getDecoded(byte @Nullable [] aEncodedBuffer, int nOfs, int nLen) Decode the passed DCT encoded buffer.static byte @Nullable []getDecodedDCT(byte @Nullable [] aEncodedBuffer, int nOfs, int nLen) Decode the passed DCT encoded buffer using static method.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.base.codec.IByteArrayDecoder
getDecoded, getDecoded, getMaximumDecodedLength
-
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:
getDecodedin interfaceIByteArrayDecoder- Parameters:
aEncodedBuffer- The DCT encoded buffer to be decoded. May benull.nOfs- The offset in the buffer to start decoding from.nLen- The number of bytes to decode.- Returns:
- The decoded byte array or
nullif the input wasnull.
-
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 benull.nOfs- The offset in the buffer to start decoding from.nLen- The number of bytes to decode.- Returns:
- The decoded byte array or
nullif the input wasnull.
-