block16.m
来自「将一幅多媒体图像根据各个块的不同特性蔡用不同的编码方式」· M 代码 · 共 28 行
M
28 行
function block16(oiv16)
global bit_count point cell_count total_cell %total_val total_decode
ovic16=reshape(oiv16,1,256);
for i=1:255
if ovic16(i)~=ovic16(i+1)
flag='1';
break
end
flag='0';
end
if flag=='0'
bit_count=bit_count+9;
point=cell_count;
total_cell(point+1)=uint8(0);
point=point+1;
total_cell(point+1)=uint8(ovic16(1));
cell_count=cell_count+2;
return
end
if flag=='1'
for mm=1:2
for nn=1:2
oiv88=oiv16((mm*8-7):(mm*8),(nn*8-7):(nn*8));
block8(oiv88);
end
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?