⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diagnctxt.cpp

📁 这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.
💻 CPP
📖 第 1 页 / 共 3 页
字号:
/* ////////////////////////////////////////////////////////////////////////////                  INTEL CORPORATION PROPRIETARY INFORMATION//     This software is supplied under the terms of a license agreement or//     nondisclosure agreement with Intel Corporation and may not be copied//     or disclosed except in accordance with the terms of that agreement.//          Copyright(c) 2004-2005 Intel Corporation. All Rights Reserved.//////*/#include <stdio.h>#include "ddibwarning.h"#include "cmdoptionswarning.h"#include "debcotwarning.h"#include "djp2boxwarning.h"#include "djp2cswarning.h"#include "djp2filewarning.h"#include "djp2markerwarning.h"#include "dphwarning.h"#include "dpnmwarning.h"#include "edibwarning.h"#include "medibwarning.h"#include "mepnmwarning.h"#include "byteinputexception.h"#include "cmdoptionsexception.h"#include "ddibexception.h"#include "djp2boxexception.h"#include "djp2csexception.h"#include "djp2csunsuppexception.h"#include "djp2fileexception.h"#include "djp2markerexception.h"#include "dpnmexception.h"#include "memexception.h"#include "sysexception.h"#include "transcodingexception.h"#ifdef XSCALE#include "medibexception.h"#include "mepnmexception.h"#endif#include "diagnctxt.h"#define CT_TXT(ENUM, CODE, TEXT) \template<> DiagnCtxt DiagnDescrCT<ENUM, CODE>::Context() const { return TEXT; }#define TXT_DIB_WARN(       CODE, TEXT) CT_TXT(DDIBWarning,       CODE, TEXT)#define TXT_DEBCOT_WARN(    CODE, TEXT) CT_TXT(DEBCOTWarning,     CODE, TEXT)#define TXT_DJP2BOX_WARN(   CODE, TEXT) CT_TXT(DJP2BoxWarning,    CODE, TEXT)#define TXT_DJP2CS_WARN(    CODE, TEXT) CT_TXT(DJP2CSWarning,     CODE, TEXT)#define TXT_DJP2FILE_WARN(  CODE, TEXT) CT_TXT(DJP2FileWarning,   CODE, TEXT)#define TXT_DJP2MARKER_WARN(CODE, TEXT) CT_TXT(DJP2MarkerWarning, CODE, TEXT)#define TXT_DPH_WARN(       CODE, TEXT) CT_TXT(DPHWarning,        CODE, TEXT)#define TXT_DPNM_WARN(      CODE, TEXT) CT_TXT(DPNMWarning,       CODE, TEXT)#define TXT_EDIB_WARN(      CODE, TEXT) CT_TXT(EDIBWarning,       CODE, TEXT)#define TXT_MEDIB_WARN(     CODE, TEXT) CT_TXT(MEDIBWarning,      CODE, TEXT)#define TXT_MEPNM_WARN(     CODE, TEXT) CT_TXT(MEPNMWarning,      CODE, TEXT)#define FMT_CMDOPTIONSQUANT_WARN(CODE, FMT_TXT) \template<> DiagnCtxt DIAGN_DESCR_RT(CmdOptionsQuantWarning, CODE)::Context() const  { \    DiagnCtxt ctxt; \    sprintf (ctxt.EngText(), FMT_TXT, m_param.DeltaQuant()); \    return ctxt; \}#define TXT_MEMORY_EXCEPT(      CODE, TEXT) CT_TXT(MemoryException,      CODE, TEXT)#define TXT_DISPLAY_EXCEPT(     CODE, TEXT) CT_TXT(DisplayException,     CODE, TEXT)#define TXT_TRANSCODING_EXCEPT( CODE, TEXT) CT_TXT(TranscodingException, CODE, TEXT)#define TXT_CMDOPTIONS_EXCEPT(  CODE, TEXT) CT_TXT(CmdOptionsException,  CODE, TEXT)#define TXT_BYTEINPUT_EXCEPT(   CODE, TEXT) CT_TXT(ByteInputException,   CODE, TEXT)#define TXT_DPNM_EXCEPT(        CODE, TEXT) CT_TXT(DPNMException,        CODE, TEXT)#define TXT_DDIB_EXCEPT(        CODE, TEXT) CT_TXT(DDIBException,        CODE, TEXT)#define TXT_DJP2MARKER_EXCEPT(  CODE, TEXT) CT_TXT(DJP2MarkerException,  CODE, TEXT)#define TXT_DJP2FILE_EXCEPT(    CODE, TEXT) CT_TXT(DJP2FileException,    CODE, TEXT)#define TXT_DJP2CSUNSUPP_EXCEPT(CODE, TEXT) CT_TXT(DJP2CSUnsuppException,CODE, TEXT)#define TXT_DJP2CS_EXCEPT(      CODE, TEXT) CT_TXT(DJP2CSException,      CODE, TEXT)#define TXT_DJP2BOX_EXCEPT(     CODE, TEXT) CT_TXT(DJP2BoxException,     CODE, TEXT)#ifdef XSCALE#define TXT_MEDIB_EXCEPT(       CODE, TEXT) CT_TXT(MEDIBException,       CODE, TEXT)#define TXT_MEPNM_EXCEPT(       CODE, TEXT) CT_TXT(MEPNMException,       CODE, TEXT)#endif#define FMT_FILE_EXCEPT(CODE, FMT_TXT) \template<> DiagnCtxt DIAGN_DESCR_RT(FileException, CODE)::Context() const  { \    DiagnCtxt ctxt; \    sprintf (ctxt.EngText(), FMT_TXT, m_param.FileName()); \    return ctxt; \}#define FMT_MAPFILE_EXCEPT(CODE, FMT_TXT) \template<> DiagnCtxt DIAGN_DESCR_RT(MapFileException, CODE)::Context() const  { \    DiagnCtxt ctxt; \    sprintf (ctxt.EngText(), FMT_TXT, m_param.FileName()); \    return ctxt; \}TXT_DIB_WARN(DIBFileWrongIdentifier,        "Wrong DIB (BMP) file identifier was found. "        "DIB decoder will try to ignore and continue decoding.");TXT_DIB_WARN(DIBInfoWrongNOfPlanes,        "Wrong DIB (BMP) core info structure 'the number of planes for the target device' field was found. "        "It should be equal to one. "        "DIB decoder will try to ignore and continue decoding.");TXT_DIB_WARN(DIBImageDataOffsetMismatch,        "DIB (BMP) image data offset specified in file header mismatchs to "        "actual total size of DIB header structures. "        "DIB decoder will try to ignore and continue decoding.");TXT_DEBCOT_WARN(CodeBlockLayerDamage,        "Data damage was detected during decode of some code block layer. "        "Correct decoding can be impossible. "        "Decoder will try to ignore and continue decoding.");TXT_DEBCOT_WARN(CodeBlockLayerNOfPassesMissmatch,        "Number of passes mismatch was detected for some code block layer. "        "Correct decoding can be impossible. "        "Decoder will try to ignore and continue decoding.");TXT_DEBCOT_WARN(CodeBlockNOfSignificantBitsExceedImplementationLimit,        "Number of code-block significant (non-sign) bits exceeds "        "31 bits that is implementation limit. "        "The reason could be in wide dynamic range of input "        "image actual data or in high number of guard bits. "        "It could be also the result of increasing of dynamic "        "range during applaying of relatively small quantization step "        "in irreversible wavelet transform mode. "        "Correct decoding can be impossible. "        "Decoder will try to ignore and continue decoding.");TXT_DEBCOT_WARN(CodeBlockNOfSignificantBitsBelowZero,        "Number of code-block significant (non-sign) bits is below zero. "        "The reason could be in inconsistency of dynamic range and "        "number of zero bit planes for individual code-block."        "It could be the result of incorrect encoding or data damage. "        "Decoder will try to ignore and continue decoding.");TXT_DJP2BOX_WARN(UnknownSubBoxInHeaderBox,        "Unknown sub-box was found in the header superbox. "        "Decoder will try to ignore unknown box and continue decoding.");TXT_DJP2BOX_WARN(UnknownSubBoxInResolutionBox,        "Unknown sub-box was found in the resolution superbox. "        "Decoder will try to ignore unknown box and continue decoding.");TXT_DJP2BOX_WARN(ActualBoxLengthBelowSpecified,        "Some of the boxes has actual length less then specified "        "in marker length field. "        "Decoder will try to ignore box body padding and continue decoding. "        "But it can be a damage in box length field and in that case the "        "successful decoding will be impossible.");TXT_DJP2BOX_WARN(SpecifiedBoxLengthExceedContainerTail,        "The length specified for some of the boxes exceeds tail space "        "available in its container."        "Decoder will try to ignore and continue decoding use available box body. "        "But the data damage can be so that successful decoding will be impossible.");TXT_DJP2BOX_WARN(ExtraPaletteBox,        "Extra Palette boxes was found. "        "Decoder will try to ignore all previous box instances and continue decoding.");TXT_DJP2BOX_WARN(ExtraCompMappingBox,        "Extra Component Mapping boxes was found. "        "Decoder will try to ignore all previous box instances and continue decoding.");TXT_DJP2BOX_WARN(ExtraColourSpecBox,        "Extra Colour Specification boxes was found. "        "Decoder will try to ignore all previous box instances and continue decoding.");TXT_DJP2BOX_WARN(ExtraBitsPerCompBox,        "Extra Bits Per Component boxes was found. "        "Decoder will try to ignore all previous box instances and continue decoding.");TXT_DJP2BOX_WARN(ExtraCaptureResolutionBox,        "Extra Capture Resolution boxes was found. "        "Decoder will try to ignore all previous box instances and continue decoding.");TXT_DJP2BOX_WARN(ExtraDisplayResolutionBox,        "Extra Display Resolution boxes was found. "        "Decoder will try to ignore all previous box instances and continue decoding.");TXT_DJP2BOX_WARN(BoxImageHeaderBitDepthExceedBounds,        "Bit depth specified in image header box "        "exceed 38 bit limit defined by standard. "        "Decoder will try to ignore and continue decoding.");TXT_DJP2BOX_WARN(BoxImageHeaderUnknownColorspace,        "Unknown colourspace specified in Image Header box.");TXT_DJP2BOX_WARN(BoxColourSpecUnknownMeth,        "Unknown specification method field value "        "was found in Colour Specifiaction box. "        "Colour specification box will be ignored.");TXT_DJP2BOX_WARN(BoxColourSpecUnknownEnumeratedColourspace,        "Unknown enumerated colourspace field value "        "was found in Colour Specifiaction box. "        "Colour specification box will be ignored.");TXT_DJP2BOX_WARN(BoxPalleteBitDepthExceedBounds,        "Bit depth specified in pallete box "        "exceed 38 bit limit defined by standard. "        "Decoder will try to ignore and continue decoding.");TXT_DJP2BOX_WARN(BoxBitsPerCompBitDepthExceedBounds,        "Bit depth specified in bits per component box "        "exceed 38 bit limit defined by standard. "        "Decoder will try to ignore and continue decoding.");TXT_DJP2BOX_WARN(BoxPalleteZeroNOfEntries,        "Zero number of pallete entires specified in palette box. "        "Decoder will try to ignore and continue decoding.");TXT_DJP2BOX_WARN(BoxPalleteNOfEntriesExceedBounds,        "Number of pallete entires specified in palette box "        "exceed 1024 limit defined by standard. "        "Decoder will try to ignore and continue decoding.");TXT_DJP2BOX_WARN(BoxComponentMappingPaletteColumnExceedBoxPaletteNOfColumns,        "It's impossible to interpret palette box "        "because palette component specified in component mapping box. "        "exceeds the number of palette columns specified in palette box. "        "Decoder will try to ignore and continue decoding. "        "The palette data loss is possible.");TXT_DJP2BOX_WARN(BoxComponentMappingNonPaletteMapping,        "It's impossible to interpret palette box "        "because palette mapping does not specified in component mapping box. "        "Decoder will try to ignore and continue decoding. "        "The palette data loss is possible.");TXT_DJP2BOX_WARN(SuperfluousBitsPerCompBox,        "Superfluous bits per component box.");TXT_DJP2BOX_WARN(NOfChannelsMismatchColourSpecAndCompMappingBoxes,        "Number of colour channels specified in colour specification box "        "and in component mapping boxes are different. "        "Decoder will try to ignore and continue decoding.");TXT_DJP2BOX_WARN(BoxColourSpecIsNotEnumeratedColourspace,        "Not enumerated colourspace specified in colour specification box. "        "We support only enumerated colourspaces (ICC profiles NOT supported). "        "Decoder will try to ignore and continue decoding.");TXT_DJP2BOX_WARN(BoxPaletteAbsence,        "Palette box is absent. Palette box is required "        "when component mapping box is present in the stream. "        "Decoder will try to ignore and continue decoding.");TXT_DJP2BOX_WARN(BoxCompMappingAbsence,        "Component box is absent. Component mapping box is "        "required to decode palette box appropriately. "        "Decoder will try to ignore and continue decoding.");TXT_DJP2BOX_WARN(BitsPerCompMismatchImageHeaderAndBitsPerCompBoxes,        "Bits per component value specified in image header box "        "and another one specified in bits per component boxes are different. "        "Decoder will try to ignore and continue decoding.");TXT_DJP2CS_WARN(UnknownQuantStyle,        "Quantization style defined by QCD or QCC is unknown. "        "The 'no quantization' styel will be used.");TXT_DJP2CS_WARN(MCTIsNotApplicableForNOfComponents,        "Multichannel component transformation (MCT) is specified in COD marker "        "and number of channels is not 3, so it's impossible to use any MCT defined in standard. "        "Decoder will try do not use MCT.");TXT_DJP2CS_WARN(MCTIsNotApplicableForMixedWTTypes,        "Multichannel component transformation (MCT) is specified in COD marker "        "and different wavelet transforms used for different channels, "        "so it's impossible to use any MCT defined in standard. "        "Decoder will try do not use MCT.");TXT_DJP2CS_WARN(ResamplingUsed,        "Colour component specified as resampled. "        "Our implementation designed to decode final image as equally sampled for all of components. "        "There is no exactly unambiguous conversion from resampled data in this case. "        "Decoder will try to resample (with filtering) each tile separately, "        "This is mostly looks like image resizing and "        "you should remember that lossless conversion is impossible.");TXT_DJP2CS_WARN(MainHeaderUnknownMarker,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -