Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d82af145 authored by DIB Elian's avatar DIB Elian
Browse files

Save bit depth

parent 65b145a3
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ defRefDir = fullfile(pwd,'Ref'); ...@@ -12,6 +12,7 @@ defRefDir = fullfile(pwd,'Ref');
p = inputParser; p.StructExpand = true; p.KeepUnmatched = true; p = inputParser; p.StructExpand = true; p.KeepUnmatched = true;
p.addParameter('name' , 'sequence' , @ischar); p.addParameter('name' , 'sequence' , @ischar);
p.addParameter('refDir' , defRefDir , @ischar);
p.addParameter( 'readPrecision', class(frames{1}), @ischar); p.addParameter( 'readPrecision', class(frames{1}), @ischar);
p.addParameter('writePrecision', class(frames{1}), @ischar); p.addParameter('writePrecision', class(frames{1}), @ischar);
p.addParameter('bitDepth' , defBitDepth , @isnumeric); p.addParameter('bitDepth' , defBitDepth , @isnumeric);
...@@ -43,6 +44,7 @@ m.subSamp = subSamp; ...@@ -43,6 +44,7 @@ m.subSamp = subSamp;
m.writePrecision = writePrecision; m.writePrecision = writePrecision;
m.readPrecision = readPrecision; m.readPrecision = readPrecision;
m.yuvSize = yuvSize; m.yuvSize = yuvSize;
m.bitDepth = bitDepth;
%% Perform color space transform %% Perform color space transform
frames = yuv.convert(frames,outColSpace,inColSpace,bitDepth); frames = yuv.convert(frames,outColSpace,inColSpace,bitDepth);
...@@ -110,4 +112,4 @@ fclose(fileID); ...@@ -110,4 +112,4 @@ fclose(fileID);
writeFrame(U({xq,yq})); writeFrame(U({xq,yq}));
writeFrame(V({xq,yq})); writeFrame(V({xq,yq}));
end end
end end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment