imagingandcamerafws/imaginginttest/Codecs/PPM1/Ppm1Convert.inl
branchRCL_3
changeset 50 948c7f65f6d4
parent 0 40261b775718
equal deleted inserted replaced
49:735348f59235 50:948c7f65f6d4
       
     1 
       
     2 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 
       
    17 inline TBool CPpmDecoder::Compressed() const
       
    18 	{
       
    19 	return (iFlags&EFlagCompressed);
       
    20 	}
       
    21 
       
    22 inline void CPpmDecoder::SetCompressed(TBool aCompressed)
       
    23 	{
       
    24 	if (aCompressed)
       
    25 		{
       
    26 		iFlags |= EFlagCompressed;
       
    27 		}		
       
    28 	else
       
    29 		{
       
    30 		iFlags &= ~EFlagCompressed;	
       
    31 		}		
       
    32 	}
       
    33 
       
    34 inline TBool CPpmDecoder::InComment() const
       
    35 	{
       
    36 	return (iFlags&EFlagInComment);
       
    37 	}
       
    38 
       
    39 inline void CPpmDecoder::SetInComment(TBool aInComment)
       
    40 	{
       
    41 	if (aInComment)
       
    42 		{
       
    43 		iFlags |= EFlagInComment;
       
    44 		}		
       
    45 	else
       
    46 		{
       
    47 		iFlags &= ~EFlagInComment;
       
    48 		}		
       
    49 	}
       
    50 
       
    51 inline TInt CPpmDecoder::DataShift() const
       
    52 	{
       
    53 	return iDataShift;
       
    54 	}