Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HEVC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
LightFieldCodingLibrary
HEVC
Commits
e42c9061
Commit
e42c9061
authored
5 years ago
by
DIB Elian
Browse files
Options
Downloads
Patches
Plain Diff
Simplified piping, removed unnecessary fallback option
parent
990d3bc9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
codec.m
+7
-15
7 additions, 15 deletions
codec.m
with
7 additions
and
15 deletions
codec.m
+
7
−
15
View file @
e42c9061
...
...
@@ -78,7 +78,7 @@ LogFileEnc = fullfile(LogFolder,[LogName,'_enc.rtf']);
LogFileDec
=
fullfile
(
LogFolder
,[
LogName
,
'_dec.rtf'
]);
%% Execute command
HEVCArgList
=
paramToArgList
(
HEVCParams
);
HEVCArgList
=
paramToArgList
(
HEVCParams
);
extraHEVCArgList
=
paramToArgList
(
extraHEVCParams
);
% Prompt in terminal and write in log file
...
...
@@ -88,28 +88,20 @@ elseif isunix
redirect
=
@
(
logfile
)
[
'| tee "'
,
logfile
,
'"'
];
end
% Execute command
if
encode
command
=
[
'"'
TApp
,
'" '
,
HEVCArgList
,
' '
,
extraHEVCArgList
,
' '
,
redirect
(
LogFileEnc
)
]
;
redirectLog
=
redirect
(
LogFileEnc
);
elseif
decode
command
=
[
'"'
TApp
,
'" '
,
HEVCArgList
,
redirect
(
LogFileDec
)
]
;
redirectLog
=
redirect
(
LogFileDec
);
end
command
=
[
'"'
TApp
,
'" '
,
HEVCArgList
,
' '
,
extraHEVCArgList
,
' '
,
redirectLog
];
% Execute command
disp
(
command
)
status
=
system
(
command
);
% Try without extra HEVC parameters if HEVC error
if
status
if
encode
command
=
[
'"'
TApp
,
'" '
,
HEVCArgList
,
' '
,
redirect
(
LogFileEnc
)];
end
disp
(
command
)
status
=
system
(
command
);
if
status
error
(
'HEVC Error'
);
end
error
(
'HEVC Error'
);
end
% Read compression statistics from log file
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment