📄 decode8_4val.asv
字号:
function decode8_4val(total_cell)
global point0 cell_count0 total_decode mi mj mi1 ni1 mi2 ni2 total_cell
%point0=point0+1;
total=0;
while total<64
position=total_cell(point0+1);val=total_cell(point0+2);youch=total_cell(point0+3);
temp1(1,position:position+youch-1)=val;
total=total+youch;point0=point0+3;
end
total2=0
while total2<64
position2=total_cell(point0+1);val2=total_cell(point0+2);youch2=total_cell(point0+3);
temp2(1,position2:position2+youch2-1)=val2;
total2=total2+youch2;point0=point0+3;
end
data1=total_cell(point0+1);data2=total_cell(point0+2);data3=total_cell(point0+3);data4=total_cell(point0+4);
for i=1:64
if(temp1(i)==0 && temp2(i)==0)
value(i)=data1;
elseif(temp1(i)==0 && temp2(i)==1)
value(i)=data2;
elseif(temp1(i)==1 && temp2(i)==0)
value(i)=data3;
else
value(i)=data4;
end
end
tmpval=reshape(value,8,8); total_decode((16*mi-15+(mi1-1)*8):(16*mi-15+(mi1-1)*8+7),(16*n-15+(ni1-1)*8):(16*ni-15+(ni1-1)*8+7))=tmpval;
point0=point0+4;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -