imaging/imagingfws/src/ImageCodecBody.cpp
changeset 0 5752a19fdefe
equal deleted inserted replaced
-1:000000000000 0:5752a19fdefe
       
     1 
       
     2 // CImageCodecBody.cpp
       
     3 //   Support for the Codec Body classes
       
     4 
       
     5 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     6 // All rights reserved.
       
     7 // This component and the accompanying materials are made available
       
     8 // under the terms of "Eclipse Public License v1.0"
       
     9 // which accompanies this distribution, and is available
       
    10 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    11 //
       
    12 // Initial Contributors:
       
    13 // Nokia Corporation - initial contribution.
       
    14 //
       
    15 // Contributors:
       
    16 //
       
    17 // Description:
       
    18 //
       
    19 
       
    20 #include "ImageConversion.h"
       
    21 #include "icl/ImageCodec.h"
       
    22 #include "ImageCodecBody.h"
       
    23 #include "icl/imageprocessor.h"
       
    24 
       
    25 //
       
    26 // CImageProcessorReadCodecBody
       
    27 
       
    28 CImageProcessorReadCodecBody::~CImageProcessorReadCodecBody()
       
    29 	{
       
    30 	delete iImageProc;
       
    31 	}
       
    32 
       
    33 CImageProcessorReadCodecBody* CImageProcessorReadCodecBody::NewL()
       
    34 	{
       
    35 	CImageProcessorReadCodecBody* result = new (ELeave) CImageProcessorReadCodecBody;
       
    36 	return result;
       
    37 	}
       
    38 
       
    39 void CImageProcessorReadCodecBody::SetImageProcessor(CImageProcessor* aImageProc)
       
    40 	{
       
    41 	delete iImageProc; iImageProc = NULL;
       
    42 	iImageProc = aImageProc;
       
    43 	}
       
    44 
       
    45 //
       
    46 // CImageMaskProcessorReadCodecBody
       
    47 
       
    48 CImageMaskProcessorReadCodecBody::~CImageMaskProcessorReadCodecBody()
       
    49 	{
       
    50 	delete iMaskProc;
       
    51 	}
       
    52 
       
    53 CImageMaskProcessorReadCodecBody* CImageMaskProcessorReadCodecBody::NewL()
       
    54 	{
       
    55 	CImageMaskProcessorReadCodecBody* result = new (ELeave) CImageMaskProcessorReadCodecBody;
       
    56 	return result;
       
    57 	}
       
    58 
       
    59 void CImageMaskProcessorReadCodecBody::SetMaskProcessor(CImageProcessor* aMaskProc)
       
    60 	{
       
    61 	delete iMaskProc; iMaskProc = NULL;
       
    62 	iMaskProc = aMaskProc;
       
    63 	}
       
    64