imagingandcamerafws/imaginginttest/Codecs/PPM1/101F45F1.rss
branchRCL_3
changeset 50 948c7f65f6d4
parent 0 40261b775718
equal deleted inserted replaced
49:735348f59235 50:948c7f65f6d4
       
     1 // Copyright (c) 2001-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 // Registry file for the PPM example 1
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <ecom/registryinfo.rh>
       
    19 #include "PPM1Uids.hrh"
       
    20 #include <icl/icl_uids.hrh>		// for KDecoderInterfaceUidValue, etc
       
    21 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    22 #include <icl/icl_uids_const.hrh>
       
    23 #include <icl/icl_uids_def.hrh>
       
    24 #endif
       
    25 
       
    26 #define CR 0x0D
       
    27 
       
    28 RESOURCE REGISTRY_INFO theInfo
       
    29 	{
       
    30 	dll_uid = KPpm1DecoderDllUidValue;
       
    31 	interfaces = 
       
    32 		{
       
    33 		INTERFACE_INFO
       
    34 			{
       
    35 			interface_uid = KDecoderInterfaceUidValue;
       
    36 			implementations = 
       
    37 				{
       
    38 				BINARY_IMPLEMENTATION_INFO
       
    39 					{
       
    40 					implementation_uid = KPpm1DecoderImplementationUidValue;
       
    41 					version_no = 1;
       
    42 					display_name = "PPM";
       
    43 					default_data = {0x50, 0x3F}; // "P?" - internally will match P3 and P6
       
    44 					opaque_data =
       
    45 								{	0x02, 
       
    46 									0, 0, // main codec
       
    47 									0x10, 0x1F, 0x45, 0xF7,	// KImageTypePpmUid
       
    48 									0, 0, 0, 0, // image-subtype
       
    49 									0, 0, 0, 0, // class UID
       
    50 									1, 
       
    51 									0x2E, 0x70, 0x70, 0x6D, 0x0D, // .ppm
       
    52 									1,
       
    53 									0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 
       
    54 									0x78, 0x2D, 0x70, 0x6F, 0x72, 0x74,
       
    55 									0x61, 0x62, 0x6C, 0x65, 0x2D, 0x70,
       
    56 									0x69, 0x78, 0x6D, 0x61, 0x70, 0x0D // image/x-portable-pixmap
       
    57 								};
       
    58 					},
       
    59 				
       
    60 				BINARY_IMPLEMENTATION_INFO
       
    61 					{
       
    62 					implementation_uid = KPpm1DecoderRAWImplementationUidValue;
       
    63 					version_no = 1;
       
    64 					display_name = "PPM";
       
    65 					default_data = {0x50, 0x36}; // "P6" - internally will match P6 for RAW
       
    66 					opaque_data =
       
    67 								{	0x02, 
       
    68 									0, 1, // sub-codec
       
    69 									0x10, 0x1F, 0x45, 0xF7,	// KImageTypePpmUid
       
    70 									0, 0, 0, 0, // image-subtype
       
    71 									0, 0, 0, 0, // class UID
       
    72 									1, 
       
    73 									0x2E, 0x70, 0x70, 0x6D, 0x0D, // .ppm
       
    74 									1,
       
    75 									0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 
       
    76 									0x78, 0x2D, 0x70, 0x6F, 0x72, 0x74,
       
    77 									0x61, 0x62, 0x6C, 0x65, 0x2D, 0x70,
       
    78 									0x69, 0x78, 0x6D, 0x61, 0x70, 0x0D, // image/x-portable-pixmap
       
    79 									2,
       
    80 									0x10, 0x28, 0x33, 0xD8, // KUidICLExtension
       
    81 									0x00, 0x00, 0x3D, 0x00  // Extensions: Crop | Rotation | MirrorHA | MirrorVA | Scaling
       
    82 								};
       
    83 					},
       
    84 					
       
    85 				BINARY_IMPLEMENTATION_INFO
       
    86 					{
       
    87 					implementation_uid = KPpm1DecoderASCIIImplementationUidValue;
       
    88 					version_no = 1;
       
    89 					display_name = "PPM";
       
    90 					default_data = {0x50, 0x33}; // "P3" - internally will match P3 for ASCII
       
    91 					opaque_data =
       
    92 								{	0x02, 
       
    93 									0, 1, // sub-codec
       
    94 									0x10, 0x1F, 0x45, 0xF7,	// KImageTypePpmUid
       
    95 									0, 0, 0, 0, // image-subtype
       
    96 									0, 0, 0, 0, // class UID
       
    97 									1, 
       
    98 									0x2E, 0x70, 0x70, 0x6D, 0x0D, // .ppm
       
    99 									1,
       
   100 									0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 
       
   101 									0x78, 0x2D, 0x70, 0x6F, 0x72, 0x74,
       
   102 									0x61, 0x62, 0x6C, 0x65, 0x2D, 0x70,
       
   103 									0x69, 0x78, 0x6D, 0x61, 0x70, 0x0D // image/x-portable-pixmap
       
   104 									
       
   105 									// No extension support
       
   106 								};
       
   107 					}
       
   108 				};
       
   109 			},
       
   110 		INTERFACE_INFO
       
   111 			{
       
   112 			interface_uid = KEncoderInterfaceUidValue;
       
   113 			implementations = 
       
   114 				{
       
   115 				BINARY_IMPLEMENTATION_INFO
       
   116 					{
       
   117 					implementation_uid = KPpm1EncoderImplementationUidValud;
       
   118 					version_no = 1;
       
   119 					display_name = "PPM";
       
   120 					default_data = {0x3F}; // "?" - Won't match
       
   121 					opaque_data = {0x00, 0x10, 0x1F, 0x45, 0xF7, 0, 0, 0, 0, 1, 0x2E, 0x70, 0x70, 0x6D, CR, 1, 0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 0x78, 0x2D, 0x70, 0x6F, 0x72, 0x74, 0x61, 0x62, 0x6C, 0x65, 0x2D, 0x70, 0x69, 0x78, 0x6D, 0x61, 0x70, CR};
       
   122 					// 0 0x101F45F7 0x00000000 1 .ppm 1 image/x-portable-pixmap
       
   123 					}
       
   124 				};
       
   125 			}
       
   126 		};
       
   127 
       
   128 	}
       
   129 
       
   130