jp1_reset_psot.m

来自「用matlab实现的JPEG算法」· M 代码 · 共 22 行

M
22
字号
% ----------------------------------------
% [pos] = jp1_reset_Psot(fid,pos,pos_Psot);
%
%
%
function  [pos] = jp1_reset_Psot(fid,pos,pos_Psot)

fin = pos ; % mem position
% calcul taille (header + data tuile)
%

taille_tile = fin - pos_Psot +6 ; 

fseek(fid,pos_Psot,'bof');

fwrite(fid,taille_tile,'uint32');

pos = fin ; % update
fseek(fid,pos,'bof');


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?