www.pudn.com > vcmatlab20060426WaterMark.zip > images_private_iptprefs.cpp


// 
// MATLAB Compiler: 2.2 
// Date: Tue May 10 11:47:30 2005 
// Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" 
// "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" 
// "array_indexing:on" "-O" "optimize_conditionals:on" "-B" "sglcpp" "-p" "-W" 
// "main" "-L" "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-W" "mainhg" 
// "libmwsglm.mlib" "huatu"  
// 
#include "images_private_iptprefs.hpp" 
#include "libmatlbm.hpp" 
 
static mxChar _array1_[164] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ', 
                                'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i', 
                                'l', 'e', ':', ' ', 'i', 'm', 'a', 'g', 'e', 
                                's', '/', 'p', 'r', 'i', 'v', 'a', 't', 'e', 
                                '/', 'i', 'p', 't', 'p', 'r', 'e', 'f', 's', 
                                ' ', 'L', 'i', 'n', 'e', ':', ' ', '1', ' ', 
                                'C', 'o', 'l', 'u', 'm', 'n', ':', ' ', '1', 
                                ' ', 'T', 'h', 'e', ' ', 'f', 'u', 'n', 'c', 
                                't', 'i', 'o', 'n', ' ', '"', 'i', 'm', 'a', 
                                'g', 'e', 's', '/', 'p', 'r', 'i', 'v', 'a', 
                                't', 'e', '/', 'i', 'p', 't', 'p', 'r', 'e', 
                                'f', 's', '"', ' ', 'w', 'a', 's', ' ', 'c', 
                                'a', 'l', 'l', 'e', 'd', ' ', 'w', 'i', 't', 
                                'h', ' ', 'm', 'o', 'r', 'e', ' ', 't', 'h', 
                                'a', 'n', ' ', 't', 'h', 'e', ' ', 'd', 'e', 
                                'c', 'l', 'a', 'r', 'e', 'd', ' ', 'n', 'u', 
                                'm', 'b', 'e', 'r', ' ', 'o', 'f', ' ', 'o', 
                                'u', 't', 'p', 'u', 't', 's', ' ', '(', '1', 
                                ')', '.' }; 
static mwArray _mxarray0_ = mclInitializeString(164, _array1_); 
 
static mxChar _array3_[163] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ', 
                                'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i', 
                                'l', 'e', ':', ' ', 'i', 'm', 'a', 'g', 'e', 
                                's', '/', 'p', 'r', 'i', 'v', 'a', 't', 'e', 
                                '/', 'i', 'p', 't', 'p', 'r', 'e', 'f', 's', 
                                ' ', 'L', 'i', 'n', 'e', ':', ' ', '1', ' ', 
                                'C', 'o', 'l', 'u', 'm', 'n', ':', ' ', '1', 
                                ' ', 'T', 'h', 'e', ' ', 'f', 'u', 'n', 'c', 
                                't', 'i', 'o', 'n', ' ', '"', 'i', 'm', 'a', 
                                'g', 'e', 's', '/', 'p', 'r', 'i', 'v', 'a', 
                                't', 'e', '/', 'i', 'p', 't', 'p', 'r', 'e', 
                                'f', 's', '"', ' ', 'w', 'a', 's', ' ', 'c', 
                                'a', 'l', 'l', 'e', 'd', ' ', 'w', 'i', 't', 
                                'h', ' ', 'm', 'o', 'r', 'e', ' ', 't', 'h', 
                                'a', 'n', ' ', 't', 'h', 'e', ' ', 'd', 'e', 
                                'c', 'l', 'a', 'r', 'e', 'd', ' ', 'n', 'u', 
                                'm', 'b', 'e', 'r', ' ', 'o', 'f', ' ', 'i', 
                                'n', 'p', 'u', 't', 's', ' ', '(', '0', ')', 
                                '.' }; 
static mwArray _mxarray2_ = mclInitializeString(163, _array3_); 
 
static mxChar _array7_[12] = { 'I', 'm', 's', 'h', 'o', 'w', 
                               'B', 'o', 'r', 'd', 'e', 'r' }; 
static mxArray * _mxarray6_ = mclInitializeString(12, _array7_); 
 
static mxChar _array9_[17] = { 'I', 'm', 's', 'h', 'o', 'w', 'A', 'x', 'e', 
                               's', 'V', 'i', 's', 'i', 'b', 'l', 'e' }; 
static mxArray * _mxarray8_ = mclInitializeString(17, _array9_); 
 
static mxChar _array11_[14] = { 'I', 'm', 's', 'h', 'o', 'w', 'T', 
                                'r', 'u', 'e', 's', 'i', 'z', 'e' }; 
static mxArray * _mxarray10_ = mclInitializeString(14, _array11_); 
 
static mxChar _array13_[15] = { 'T', 'r', 'u', 'e', 's', 'i', 'z', 'e', 
                                'W', 'a', 'r', 'n', 'i', 'n', 'g' }; 
static mxArray * _mxarray12_ = mclInitializeString(15, _array13_); 
 
static mxChar _array17_[5] = { 't', 'i', 'g', 'h', 't' }; 
static mxArray * _mxarray16_ = mclInitializeString(5, _array17_); 
 
static mxChar _array19_[5] = { 'l', 'o', 'o', 's', 'e' }; 
static mxArray * _mxarray18_ = mclInitializeString(5, _array19_); 
 
static mxArray * _array15_[2] = { _mxarray16_, _mxarray18_ }; 
static mxArray * _mxarray14_ = mclInitializeCellVector(2, 1, _array15_); 
 
static mxChar _array23_[2] = { 'o', 'n' }; 
static mxArray * _mxarray22_ = mclInitializeString(2, _array23_); 
 
static mxChar _array25_[3] = { 'o', 'f', 'f' }; 
static mxArray * _mxarray24_ = mclInitializeString(3, _array25_); 
 
static mxArray * _array21_[2] = { _mxarray22_, _mxarray24_ }; 
static mxArray * _mxarray20_ = mclInitializeCellVector(2, 1, _array21_); 
 
static mxChar _array29_[4] = { 'a', 'u', 't', 'o' }; 
static mxArray * _mxarray28_ = mclInitializeString(4, _array29_); 
 
static mxChar _array31_[6] = { 'm', 'a', 'n', 'u', 'a', 'l' }; 
static mxArray * _mxarray30_ = mclInitializeString(6, _array31_); 
 
static mxArray * _array27_[2] = { _mxarray28_, _mxarray30_ }; 
static mxArray * _mxarray26_ = mclInitializeCellVector(2, 1, _array27_); 
static mxArray * _mxarray32_ = mclInitializeCell(_mxarray18_); 
static mxArray * _mxarray33_ = mclInitializeCell(_mxarray24_); 
static mxArray * _mxarray34_ = mclInitializeCell(_mxarray28_); 
static mxArray * _mxarray35_ = mclInitializeCell(_mxarray22_); 
 
static mxArray * _array5_[12] = { _mxarray6_, _mxarray8_, _mxarray10_, 
                                  _mxarray12_, _mxarray14_, _mxarray20_, 
                                  _mxarray26_, _mxarray20_, _mxarray32_, 
                                  _mxarray33_, _mxarray34_, _mxarray35_ }; 
static mwArray _mxarray4_ = mclInitializeCellVector(4, 3, _array5_); 
 
void InitializeModule_images_private_iptprefs() { 
} 
 
void TerminateModule_images_private_iptprefs() { 
    mxDestroyArray(_mxarray35_); 
    mxDestroyArray(_mxarray34_); 
    mxDestroyArray(_mxarray33_); 
    mxDestroyArray(_mxarray32_); 
    mxDestroyArray(_mxarray26_); 
    mxDestroyArray(_mxarray30_); 
    mxDestroyArray(_mxarray28_); 
    mxDestroyArray(_mxarray20_); 
    mxDestroyArray(_mxarray24_); 
    mxDestroyArray(_mxarray22_); 
    mxDestroyArray(_mxarray14_); 
    mxDestroyArray(_mxarray18_); 
    mxDestroyArray(_mxarray16_); 
    mxDestroyArray(_mxarray12_); 
    mxDestroyArray(_mxarray10_); 
    mxDestroyArray(_mxarray8_); 
    mxDestroyArray(_mxarray6_); 
} 
 
static mwArray Mimages_private_iptprefs(int nargout_); 
 
_mexLocalFunctionTable _local_function_table_images_private_iptprefs 
  = { 0, (mexFunctionTableEntry *)NULL }; 
 
// 
// The function "images_private_iptprefs" contains the normal interface for the 
// "images/private/iptprefs" M-function from file 
// "D:\matlab\matlab\toolbox\images\images\private\iptprefs.m" (lines 1-30). 
// This function processes any input arguments and passes them to the 
// implementation version of the function, appearing above. 
// 
mwArray images_private_iptprefs() { 
    int nargout(1); 
    mwArray preferences(mclGetUninitializedArray()); 
    preferences = Mimages_private_iptprefs(nargout); 
    return preferences; 
} 
 
// 
// The function "mlxImages_private_iptprefs" contains the feval interface for 
// the "images/private/iptprefs" M-function from file 
// "D:\matlab\matlab\toolbox\images\images\private\iptprefs.m" (lines 1-30). 
// The feval function calls the implementation version of 
// images/private/iptprefs through this function. This function processes any 
// input arguments and passes them to the implementation version of the 
// function, appearing above. 
// 
void mlxImages_private_iptprefs(int nlhs, 
                                mxArray * plhs[], 
                                int nrhs, 
                                mxArray * prhs[]) { 
    MW_BEGIN_MLX(); 
    { 
        mwArray mplhs[1]; 
        mclCppUninitializeArrays(1, mplhs); 
        if (nlhs > 1) { 
            error(_mxarray0_); 
        } 
        if (nrhs > 0) { 
            error(_mxarray2_); 
        } 
        mplhs[0] = Mimages_private_iptprefs(nlhs); 
        plhs[0] = mplhs[0].FreezeData(); 
    } 
    MW_END_MLX(); 
} 
 
// 
// The function "Mimages_private_iptprefs" is the implementation version of the 
// "images/private/iptprefs" M-function from file 
// "D:\matlab\matlab\toolbox\images\images\private\iptprefs.m" (lines 1-30). It 
// contains the actual compiled code for that M-function. It is a static 
// function and must only be called from one of the interface functions, 
// appearing below. 
// 
// 
// function preferences = iptprefs 
// 
static mwArray Mimages_private_iptprefs(int nargout_) { 
    mwLocalFunctionTable save_local_function_table_ 
      (&_local_function_table_images_private_iptprefs); 
    mwArray preferences(mclGetUninitializedArray()); 
    // 
    // %IPTPREFS Image Processing Toolbox preference settings. 
    // %   IPTPREFS returns a 3-column cell array containing the Image 
    // %   Processing Toolbox preference settings.  Each row contains 
    // %   information about a single preference.   
    // %    
    // %   The first column of each row contains a string indicating the 
    // %   name of the preference.  The second column of each row is a 
    // %   cell array containing the set of acceptable values for that 
    // %   preference setting.  An empty cell array indicates that the 
    // %   preference does not have a fixed set of values.   
    // % 
    // %   The third column of each row contains a single-element cell 
    // %   array containing the default value for the preference.  An 
    // %   empy cell array indicates that the preference does not have a 
    // %   default value. 
    // % 
    // %   See also IPTSETPREF, IPTGETPREF. 
    //  
    // %   Copyright 1993-2001 The MathWorks, Inc.   
    // %   $Revision: 1.13 $  $Date: 2001/01/18 15:51:23 $ 
    //  
    // preferences = { ... 
    // 
    preferences = _mxarray4_; 
    mwValidateOutput( 
      preferences, 1, nargout_, "preferences", "images/private/iptprefs"); 
    return preferences; 
    // 
    // 'ImshowBorder',        {'tight'; 'loose'},        {'loose'} 
    // 'ImshowAxesVisible',   {'on'; 'off'},             {'off'} 
    // 'ImshowTruesize',      {'auto'; 'manual'},        {'auto'} 
    // 'TruesizeWarning',     {'on'; 'off'},             {'on'} 
    // }; 
    //  
    // 
}