📄 decode_blocs.m
字号:
% --------------------------------------------------------
% nom : dedecode_blocs.m
% utilisation :
%-------------
%
% [M_sb] = decode_blocs(paquet,txcb,tycb,type_sb) ;
%
% d閏odage en par blocs d'une sous-bande M_sb
%
% txcb : largeur d'un bloc
% tycb : hauteur d'un bloc
% type_sb : type de sous-bande:
% - LL = 0
% - LH = 1
% - HL = 2
% - HH = 3
%
%
% -------voir aussi 'decode_blocs' 'jp1_get_sb' 'jp1_add_sb'
function [nM_sb] = decode_blocs(npaquet,ntxcb,ntycb,nM,nN,ntype_sb)
% typage et appel de la routine C,
% permet d'avoir une aide sous MATLAB
if ntxcb > 64
ntxcb= 32 ;
end
if ntycb > 64
ntycb= 32 ;
end
if ntxcb < 4
ntxcb = 4 ;
end
if ntycb < 4
ntycb = 4 ;
end
txcb = uint16(ntxcb);
tycb = uint16(ntycb);
type_sb = uint16(ntype_sb);
tM = uint16(nM);
tN = uint16(nN);
Mpaquet = uint16(npaquet);
%sprintf('decode_blocs.m->type_sb= %d',double(type_sb))
[M_sb] = fct_decode_blocs(Mpaquet,txcb,tycb,tM,tN,type_sb) ;
nM_sb = int16(M_sb);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -