get_BPP.m
317 Bytes
function result=get_BPP(path, width, height, channel, numFrame)
Target_File = path;
fileId=fopen(Target_File);
fseek(fileId, -200, 'eof');
C=textscan(fileId, '%s');
B=flip(C{1});
A = B{7};
A = str2double(A);
result = A *8 / (width*height*channel*numFrame);
fclose(fileId);
end