📄 make_ctc_mapdec.m
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Property of Freescale
% Freescale Confidential Proprietary
% Freescale Copyright (C) 2005 All rights reserved
% ----------------------------------------------------------------------------
% $RCSfile: make_CTC_MAPDec.m.rca $
% Tag $Name: $
% $Revision: 1.1 $
% $Date: Fri Jan 26 13:27:52 2007 $
% Target: Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This function should be used to build the MEX object files. Simply type
%
% make_CTC_MAPDec(system)
%
%
% Matlab 7 Release 14 SP2
% Include path:
% The include path is given as follows
% -I'../source'
%
% Optimized MEX-function:
% The option -O can be used.
%
% Debug information:
% The option -g can be used.
%
% Output file name:
% The output MEX object should have the same name as the M-file implementation.
% (just with an appropriate file extension). The following option can used to
% achieve this
% -output module_name
%
% Note:
% Only the wrapper is compiled, i.e. other required files must be included in
% the wrapper ".c".
%
%-- Matlab files used by this file
% FindRevision
% CreateReportMEX
%-- End of list
function make_CTC_MAPDec
ModuleName='CTC_MAPDec';
if ispc
%Windows PC
DLL = [ModuleName,'.dll'];
if exist(DLL,'file')
s=sprintf('Overwriting MEX object (PC): %s ...',DLL);
disp(s);
else
s=sprintf('Creating MEX object (PC): %s ...',DLL);
disp(s);
end
else
%Unix/Linux
type=computer;
switch type
case 'SOL2' %Solaris 2
MEXSOL = [ModuleName,'.mexsol'];
if exist(MEXSOL,'file')
s=sprintf('Overwriting MEX object (Solaris): %s ...',MEXSOL);
disp(s);
else
s=sprintf('Creating MEX object (Solaris): %s ...',MEXSOL);
disp(s);
end
case 'GLNX86' %Linux 32-bit
MEXGLX = [ModuleName,'.mexglx'];
if exist(MEXGLX,'file')
s=sprintf('Overwriting MEX object (Linux 32-bit): %s ...',MEXGLX);
disp(s);
else
s=sprintf('Creating MEX object (Linux 32-bit): %s ...',MEXGLX);
disp(s);
end
case 'GLNXA64' %Linux AMD 64-bit
MEXA64 = [ModuleName,'.mexa64'];
if exist(MEXA64,'file')
s=sprintf('Overwriting MEX object (Linux AMD64): %s ...',MEXA64);
disp(s);
else
s=sprintf('Creating MEX object (Linux AMD64): %s ...',MEXA64);
disp(s);
end
otherwise
s='Error: UNIX/Linux computer type not supported.';
error(s);
end
end
% create object
mex -I../../source -I../../../../../../../CM/source -I../../../../../../../CM/header -I../../../../../../../CM/utility/matlab -I../../../../../../../CM/matlab -I../../header -I../../../../../../CM/header -O -output CTC_MAPDec CTC_MAPDec.c
movefile('CTC_MAPDec.dll','./..','f') %move the dll in the matlab level
% %-- Create report
% %-- Addpath for FindRevision.m and CreateReportMEX.m
% addpath('../../../../../../CM/matlab');
% sM=FindRevision('../mCEIntraTile.m');
% sC=FindRevision('../../source/SBX_FPULSPK_CEIntraTile.c');
% CreateReportMEX(ModuleName,s,sM,sC);
% rmpath('../../../../../../CM/matlab');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -