Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e4fd97d3 authored by Elian Dib's avatar Elian Dib
Browse files

Test

parent d82af145
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,8 @@ precision = [writePrecision '=>' readPrecision];
%% Recover yuv size
m = utils.getMat(recDir,name,false);
yuvSize = m.yuvSize;
imgRes = yuvSize(1:2);
imgSize = yuvSize(3:end);
imgSize = yuvSize(1:3);
imgRes = yuvSize(4:end);
%% YUV 400/420/422: define interpolation sampling grids
[xq,xgv] = deal(1:imgSize(1));
......
......@@ -34,7 +34,8 @@ outColSpace = p.Results.outColSpace;
imgRes = size(frames);
imgSize = size(frames{1});
yuvSize = [imgRes,imgSize];
imgSize(end+1:3) = 1;
yuvSize = [imgSize,imgRes];
%% Save parameters to read yuv file back
m = utils.getMat(refDir,name,true);
......@@ -50,7 +51,7 @@ m.bitDepth = bitDepth;
frames = yuv.convert(frames,outColSpace,inColSpace,bitDepth);
%% Incompatibility (needs better handling)
if (~strcmp(subSamp,'400')&&numel(imgSize)~=3)
if (~strcmp(subSamp,'400')&&imgSize(3)~=3)
error('Incompatible frame size and subsampling');
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment