imagehandlingutilities/thumbnailmanager/thumbnailserver/traces/thumbnailscaletaskTraces.h
changeset 51 3baa1be38e89
child 46 292fa3105576
equal deleted inserted replaced
42:2e2a89493e2b 51:3baa1be38e89
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  Task for scaling thumbnails.
       
    15  *
       
    16 */
       
    17 // Created by TraceCompiler 2.3.0
       
    18 // DO NOT EDIT, CHANGES WILL BE LOST
       
    19 
       
    20 #ifndef __THUMBNAILSCALETASKTRACES_H__
       
    21 #define __THUMBNAILSCALETASKTRACES_H__
       
    22 
       
    23 #define KOstTraceComponentID 0x102830ab
       
    24 
       
    25 #define CTHUMBNAILSCALETASK_CTHUMBNAILSCALETASK 0x86004a
       
    26 #define DUP1_CTHUMBNAILSCALETASK_CTHUMBNAILSCALETASK 0x86004b
       
    27 #define CTHUMBNAILSCALETASK_STARTL 0x86004c
       
    28 #define DUP1_CTHUMBNAILSCALETASK_STARTL 0x86004d
       
    29 #define DUP2_CTHUMBNAILSCALETASK_STARTL 0x86004e
       
    30 #define DUP3_CTHUMBNAILSCALETASK_STARTL 0x86004f
       
    31 #define DUP4_CTHUMBNAILSCALETASK_STARTL 0x860050
       
    32 #define DUP5_CTHUMBNAILSCALETASK_STARTL 0x860051
       
    33 #define DUP6_CTHUMBNAILSCALETASK_STARTL 0x860052
       
    34 #define CTHUMBNAILSCALETASK_RUNL 0x860053
       
    35 #define DUP1_CTHUMBNAILSCALETASK_RUNL 0x860054
       
    36 #define DUP2_CTHUMBNAILSCALETASK_RUNL 0x860055
       
    37 #define CTHUMBNAILSCALETASK_DOCANCEL 0x860056
       
    38 #define CTHUMBNAILSCALETASK_STOREANDCOMPLETEL 0x860057
       
    39 #define DUP1_CTHUMBNAILSCALETASK_STOREANDCOMPLETEL 0x860058
       
    40 #define DUP2_CTHUMBNAILSCALETASK_STOREANDCOMPLETEL 0x860059
       
    41 #define DUP3_CTHUMBNAILSCALETASK_STOREANDCOMPLETEL 0x86005a
       
    42 #define DUP4_CTHUMBNAILSCALETASK_STOREANDCOMPLETEL 0x86005b
       
    43 #define DUP5_CTHUMBNAILSCALETASK_STOREANDCOMPLETEL 0x86005c
       
    44 #define DUP6_CTHUMBNAILSCALETASK_STOREANDCOMPLETEL 0x86005d
       
    45 #define DUP7_CTHUMBNAILSCALETASK_STOREANDCOMPLETEL 0x86005e
       
    46 #define DUP8_CTHUMBNAILSCALETASK_STOREANDCOMPLETEL 0x86005f
       
    47 #define DUP9_CTHUMBNAILSCALETASK_STOREANDCOMPLETEL 0x860060
       
    48 #define CTHUMBNAILSCALETASK_ENCODEL 0x8601e3
       
    49 #define DUP1_CTHUMBNAILSCALETASK_ENCODEL 0x8601e4
       
    50 #define DUP2_CTHUMBNAILSCALETASK_ENCODEL 0x8601e5
       
    51 #define DUP3_CTHUMBNAILSCALETASK_ENCODEL 0x8601e6
       
    52 #define DUP4_CTHUMBNAILSCALETASK_ENCODEL 0x8601e7
       
    53 #define DUP5_CTHUMBNAILSCALETASK_ENCODEL 0x8601e8
       
    54 #define DUP6_CTHUMBNAILSCALETASK_ENCODEL 0x8601e9
       
    55 #define DUP7_CTHUMBNAILSCALETASK_ENCODEL 0x8601ea
       
    56 #define DUP8_CTHUMBNAILSCALETASK_ENCODEL 0x8601eb
       
    57 #define DUP10_CTHUMBNAILSCALETASK_STOREANDCOMPLETEL 0x8601ec
       
    58 
       
    59 
       
    60 #ifndef __KERNEL_MODE__
       
    61 #ifndef __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__
       
    62 #define __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__
       
    63 
       
    64 inline TBool OstTraceGen1( TUint32 aTraceID, const TDesC16& aParam1 )
       
    65     {
       
    66     TBool retval;
       
    67     TInt size = aParam1.Size();
       
    68     // BTrace assumes that parameter size is atleast 4 bytes
       
    69     if (size % 4 == 0)
       
    70         {
       
    71         TUint8* ptr = ( TUint8* )aParam1.Ptr();
       
    72         // Data is written directly and length is determined from trace message length
       
    73         retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, size );
       
    74         }
       
    75     else
       
    76         {
       
    77         TUint8 data[ KOstMaxDataLength ];
       
    78         TUint8* ptr = data;
       
    79         if (size > KOstMaxDataLength)
       
    80             {
       
    81             size = KOstMaxDataLength;
       
    82             }
       
    83         TInt sizeAligned = ( size + 3 ) & ~3;
       
    84         memcpy( ptr, aParam1.Ptr(), size );
       
    85         ptr += size;
       
    86         // Fillers are written to get 32-bit alignment
       
    87         while ( size++ < sizeAligned )
       
    88             {
       
    89             *ptr++ = 0;
       
    90             }
       
    91         ptr -= sizeAligned;
       
    92         size = sizeAligned;
       
    93         // Data is written directly and length is determined from trace message length
       
    94         retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, size );
       
    95         }
       
    96     return retval;
       
    97     }
       
    98 
       
    99 #endif // __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__
       
   100 
       
   101 #endif
       
   102 
       
   103 
       
   104 #endif
       
   105 
       
   106 // End of file
       
   107