imaging/imagingfws/src/fwextensionparams.cpp
changeset 0 5752a19fdefe
equal deleted inserted replaced
-1:000000000000 0:5752a19fdefe
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <icl/icl_uids.hrh>
       
    17 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    18 #include <icl/icl_uids_const.hrh>
       
    19 #include <icl/icl_uids_def.hrh>
       
    20 #endif
       
    21 #include "fwextensionparams.h"
       
    22 #include <imageframe.h>
       
    23 
       
    24 TExecuteCommandParamsBase::TExecuteCommandParamsBase(TUid aUid, TUint aCmd)
       
    25 :iUid(aUid), iCmdNum(aCmd)
       
    26 	{
       
    27 	}
       
    28 	
       
    29 TExecuteCommandParamsAsyncBase::TExecuteCommandParamsAsyncBase(TUid aUid, TUint aCmd, TRequestStatus* aRequestStatus)
       
    30 :TExecuteCommandParamsBase(aUid, aCmd), iRequestStatus(aRequestStatus)
       
    31 	{
       
    32 	}
       
    33 
       
    34 // Base extension param classes
       
    35 TUidExecCmdParams::TUidExecCmdParams(TUid aUid, TImgConvExtCmd aCmd)
       
    36 :TExecuteCommandParamsBase(aUid, aCmd), iReturn(TUid::Null())
       
    37 	{
       
    38 	}
       
    39 
       
    40 // Transform param classes
       
    41 TCapabilitiesExecCmdParams::TCapabilitiesExecCmdParams(TUid aUid, TImgConvTransformExtCmd aCmd)
       
    42 :TExecuteCommandParamsBase(aUid, aCmd)
       
    43 	{
       
    44 	}
       
    45 	
       
    46 TAddOperationLExecCmdParams::TAddOperationLExecCmdParams(TUid aUid, TImgConvTransformExtCmd aCmd, TImageConvOperation::TOperation aOperation)
       
    47 :TExecuteCommandParamsBase(aUid, aCmd), iOperation(aOperation)
       
    48 	{
       
    49 	}
       
    50 	
       
    51 TClearOperationStackExecCmdParams::TClearOperationStackExecCmdParams(TUid aUid, TImgConvTransformExtCmd aCmd)
       
    52 :TExecuteCommandParamsBase(aUid, aCmd)
       
    53 	{
       
    54 	}
       
    55 
       
    56 // Scaler param classes	
       
    57 TGetCapabilitiesScalerExecCmdParams::TGetCapabilitiesScalerExecCmdParams(TUid aUid, TImgConvScalerExtCmd aCmd, TScalerCaps& aCaps)
       
    58 :TExecuteCommandParamsBase(aUid, aCmd), iCaps(&aCaps)
       
    59 	{
       
    60 	}
       
    61 	
       
    62 TSetScalingLSizeExecCmdParams::TSetScalingLSizeExecCmdParams(TUid aUid, TImgConvScalerExtCmd aCmd, const TSize& aDesiredSize, TImageConvScaler::TScalerQuality aQuality, TBool aLockAspectRatio)
       
    63 :TExecuteCommandParamsBase(aUid, aCmd), iDesiredSize(&aDesiredSize), iQuality(aQuality), iLockAspectRatio(aLockAspectRatio)
       
    64 	{
       
    65 	}
       
    66 	
       
    67 TSetScalingLCoeffExecCmdParams::TSetScalingLCoeffExecCmdParams(TUid aUid, TImgConvScalerExtCmd aCmd, TInt aScalingCoeff, TImageConvScaler::TScalerQuality aScalingQuality)
       
    68 :TExecuteCommandParamsBase(aUid, aCmd), iScalingCoeff(aScalingCoeff), iScalingQuality(aScalingQuality)
       
    69 	{
       
    70 	}
       
    71 	
       
    72 // Streamed decode param classes
       
    73 TGetBlocksExecCmdParams::TGetBlocksExecCmdParams(TUid aUid, TImgConvStreamedDecodeExtCmd aCmd, TRequestStatus* aRequestStatus, CImageFrame* aFrame, TInt aSeqPosition, TInt aNumBlocksToGet, TInt* aNumBlocksRead)
       
    74 :TExecuteCommandParamsAsyncBase(aUid, aCmd, aRequestStatus), iFrame(aFrame), iSeqPosition(aSeqPosition), iNumBlocksToGet(aNumBlocksToGet), iNumBlocksRead(aNumBlocksRead)
       
    75 	{
       
    76 	}
       
    77 	
       
    78 TGetBufferSizeExecCmdParams::TGetBufferSizeExecCmdParams(TUid aUid, TImgConvStreamedDecodeExtCmd aCmd, TUid aFormat, TSize& aBlockSizeInPixels, TInt aNumBlocks)
       
    79 :TExecuteCommandParamsBase(aUid, aCmd), iReturn(KErrGeneral), iFormat(aFormat), iBlockSizeInPixels(&aBlockSizeInPixels), iNumBlocks(aNumBlocks)
       
    80 	{
       
    81 	}
       
    82 	
       
    83 TGetNextBlocksExecCmdParams::TGetNextBlocksExecCmdParams(TUid aUid, TImgConvStreamedDecodeExtCmd aCmd, TRequestStatus* aRequestStatus, CImageFrame* aFrame, TInt aNumBlocksToGet, TInt* aNumBlocksRead, TBool* aHaveMoreBlocks)
       
    84 :TExecuteCommandParamsAsyncBase(aUid, aCmd, aRequestStatus), iFrame(aFrame), iNumBlocksToGet(aNumBlocksToGet), iNumBlocksRead(aNumBlocksRead), iHaveMoreBlocks(aHaveMoreBlocks)
       
    85 	{
       
    86 	}
       
    87 	
       
    88 TGetCapabilitiesStrDecExecCmdParams::TGetCapabilitiesStrDecExecCmdParams(TUid aUid, TImgConvStreamedDecodeExtCmd aCmd, TUid aFormat, TInt aFrameNumber, TDecodeStreamCaps& aCaps)
       
    89 :TExecuteCommandParamsBase(aUid, aCmd), iFormat(aFormat), iFrameNumber(aFrameNumber), iCaps(&aCaps)
       
    90 	{
       
    91 	}
       
    92 
       
    93 TGetSupportedFormatsLStrDecExecCmdParams::TGetSupportedFormatsLStrDecExecCmdParams(TUid aUid, TImgConvStreamedDecodeExtCmd aCmd, RArray<TUid>& aFormats, TUid& aOptimalFormat)
       
    94 :TExecuteCommandParamsBase(aUid, aCmd), iFormats(&aFormats), iOptimalFormat(&aOptimalFormat)
       
    95 	{
       
    96 	}
       
    97 	
       
    98 TInitFrameLStrDecExecCmdParams::TInitFrameLStrDecExecCmdParams(TUid aUid, TImgConvStreamedDecodeExtCmd aCmd, TUid aFormat, TInt aFrameNumber, TDecodeStreamCaps::TNavigation aNavigation)
       
    99 :TExecuteCommandParamsBase(aUid, aCmd), iFormat(aFormat), iFrameNumber(aFrameNumber), iNavigation(aNavigation)
       
   100 	{
       
   101 	}
       
   102 
       
   103 // Streamed encode param classes
       
   104 TGetCapabilitiesStrEncExecCmdParams::TGetCapabilitiesStrEncExecCmdParams(TUid aUid, TImgConvStreamedEncodeExtCmd aCmd, TUid aFormat, TEncodeStreamCaps& aCaps)
       
   105 :TExecuteCommandParamsBase(aUid, aCmd), iFormat(aFormat), iCaps(&aCaps)
       
   106 	{
       
   107 	}
       
   108 
       
   109 TGetSupportedFormatsLStrEncExecCmdParams::TGetSupportedFormatsLStrEncExecCmdParams(TUid aUid, TImgConvStreamedEncodeExtCmd aCmd, RArray<TUid>& aFormats, TUid& aOptimalFormat)
       
   110 :TExecuteCommandParamsBase(aUid, aCmd), iFormats(&aFormats), iOptimalFormat(&aOptimalFormat)
       
   111 	{
       
   112 	}
       
   113 
       
   114 TInitFrameLStrEncExecCmdParams::TInitFrameLStrEncExecCmdParams(TUid aUid, TImgConvStreamedEncodeExtCmd aCmd, TUid aFormat, TInt aFrameNumber, const TSize& aFrameSizeInPixels, const TSize& aBlockSizeInPixels, TEncodeStreamCaps::TNavigation aNavigation, const CFrameImageData* aFrameImageData)
       
   115 :TExecuteCommandParamsBase(aUid, aCmd), iFormat(aFormat), iFrameNumber(aFrameNumber)
       
   116 , iFrameSizeInPixels(aFrameSizeInPixels), iBlockSizeInPixels(aBlockSizeInPixels), iNavigation(aNavigation), iFrameImageData(aFrameImageData)
       
   117 	{
       
   118 	}
       
   119 
       
   120 TAppendBlocksExecCmdParams::TAppendBlocksExecCmdParams(TUid aUid, TImgConvStreamedEncodeExtCmd aCmd, TRequestStatus* aStatus, const CImageFrame& aBlocks, TInt aNumBlocksToAdd)
       
   121 :TExecuteCommandParamsAsyncBase(aUid, aCmd, aStatus), iBlocks(&aBlocks), iNumBlocksToAdd(aNumBlocksToAdd)
       
   122 	{
       
   123 	}
       
   124 
       
   125 TAddBlocksExecCmdParams::TAddBlocksExecCmdParams(TUid aUid, TImgConvStreamedEncodeExtCmd aCmd, TRequestStatus* aStatus, const CImageFrame& aBlocks, const TInt& aSeqPosition)
       
   126 :TExecuteCommandParamsAsyncBase(aUid, aCmd, aStatus), iBlocks(&aBlocks), iSeqPosition(&aSeqPosition)
       
   127 	{
       
   128 	}
       
   129 
       
   130 TCompleteExecCmdParams::TCompleteExecCmdParams(TUid aUid, TImgConvStreamedEncodeExtCmd aCmd, TRequestStatus* aStatus)
       
   131 :TExecuteCommandParamsAsyncBase(aUid, aCmd, aStatus)
       
   132 	{
       
   133 	}
       
   134 
       
   135 TPrepareExecCmdParams::TPrepareExecCmdParams(TUid aUid, TImgConvPrepareExtCmd aCmd, TRequestStatus* aStatus)
       
   136 :TExecuteCommandParamsAsyncBase(aUid, aCmd, aStatus)
       
   137 	{
       
   138 	}
       
   139 
       
   140