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