diff -r 000000000000 -r 40261b775718 mmplugins/imagingplugins/codecs/JPEGCodec/JpegConsts.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmplugins/imagingplugins/codecs/JPEGCodec/JpegConsts.h Tue Feb 02 01:56:55 2010 +0200 @@ -0,0 +1,134 @@ +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __JPEGCONSTS_H__ +#define __JPEGCONSTS_H__ + + +// Constants. +const TUint16 KJpgMarker = 0xff00; +const TUint16 KJpgMarkerMask = 0xff00; +const TUint16 KJpgSOISignature = 0xffd8; +const TUint16 KJpgApp0Signature = 0xffe0; +const TUint16 KJpgApp1Signature = 0xffe1; +const TUint16 KJpgAppESignature = 0xffee; +const TUint16 KJpgDHTSignature = 0xffc4; +const TUint16 KJpgDQTSignature = 0xffdb; +const TUint16 KJpgBaselineDCTSOFSignature = 0xffc0; +const TUint16 KJpgExtendedDCTSOFSignature = 0xffc1; +const TUint16 KJpgProgressiveDCTSOFSignature = 0xffc2; +const TUint16 KJpgLosslessDCTSOFSignature = 0xffc3; +const TUint16 KJpgSOSSignature = 0xffda; +const TUint16 KJpgRestartIntervalSignature = 0xffdd; +const TUint16 KJpgEOISignature = 0xffd9; +const TUint16 KJpgCommentSignature = 0xfffe; +const TUint16 KJpgAppSignatureMask = 0xfff0; +const TInt KJpgPixelRatio = 1; +const TUint8 KJpgMarkerByte = ( KJpgMarker >> 8 ); + +const TInt KJpgHuffmanLookAhead = 8; +const TInt KJpgHuffmanMaxCodeSize = 16; +const TUint32 KJpgHuffmanLookAheadMask = (1<