00001 /* 00002 Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. 00003 00004 Redistribution and use in source and binary forms, with or without 00005 modification, are permitted provided that the following conditions are met: 00006 00007 * Redistributions of source code must retain the above copyright notice, this 00008 list of conditions and the following disclaimer. 00009 * Redistributions in binary form must reproduce the above copyright notice, 00010 this list of conditions and the following disclaimer in the documentation 00011 and/or other materials provided with the distribution. 00012 * Neither the name of Nokia Corporation nor the names of its contributors 00013 may be used to endorse or promote products derived from this software 00014 without specific prior written permission. 00015 00016 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00017 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00018 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00019 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00020 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00021 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00022 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00023 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00024 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00025 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00026 00027 Description: 00028 */ 00029 00030 00031 #include <registryinfo.rh> 00032 #include "uids.h" 00033 00034 RESOURCE REGISTRY_INFO theInfo 00035 { 00036 // UID for the DLL providing the encoder/decoder -- matches that in the .mmp file 00037 dll_uid = KExPNGCodecDllUidValue; 00038 interfaces = 00039 { 00040 // Decoder ECom registry information 00041 INTERFACE_INFO 00042 { 00043 // Standard UID of the ICL decoder interface 00044 interface_uid = 0x101F45AD; 00045 implementations = 00046 { 00047 // Single implementation of the decoder interface in this DLL 00048 BINARY_IMPLEMENTATION_INFO 00049 { 00050 // UID of this specific decoder implementation 00051 implementation_uid = KExPNGDecoderImplementationUidValue; 00052 version_no = 1; 00053 display_name = "EXPNG"; 00054 // Default data is binary data that can be matched against image header 00055 default_data = {0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A}; 00056 /* Opaque data defines: 00057 Version (1 byte) 00058 Image type Uid (4 bytes) 00059 Image sub-type Uid (4 bytes) 00060 Number of extensions (1 byte) 00061 { ".XXX" \r } (x number extensions) 00062 Number mime types (1 byte) 00063 [ "mimetype" \r ] (for each mimetype) */ 00064 opaque_data = {0, 0x10, 0x1F, 0x45, 0xC9, 0, 0, 0, 0, 1, 0x2E, 0x70, 0x6E, 0x67, 0x0D, 1, 0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 0x70, 0x6E, 0x67, 0x0D}; 00065 // i.e. 0 0x101F45C9 0x00000000 1 .png 1 image/png 00066 } 00067 }; 00068 }, 00069 // Encoder ECom registry information 00070 INTERFACE_INFO 00071 { 00072 // Standard UID of the ICL encoder interface 00073 interface_uid = 0x101F45B4; 00074 implementations = 00075 { 00076 // Single implementation of the decoder interface in this DLL 00077 BINARY_IMPLEMENTATION_INFO 00078 { 00079 // UID of this specific encoder implementation 00080 implementation_uid = KExPNGEncoderImplementationUidValue; 00081 version_no = 1; 00082 display_name = "EXPNG"; 00083 default_data = {0x3F}; // "?" - Won't match 00084 opaque_data = {0, 0x10, 0x1F, 0x45, 0xC9, 0, 0, 0, 0, 1, 0x2E, 0x70, 0x6E, 0x67, 0x0D, 1, 0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 0x70, 0x6E, 0x67, 0x0D}; 00085 // 0 0x101F45C9 0x00000000 1 .png 1 image/png 00086 } 00087 }; 00088 } 00089 }; 00090 } 00091