move ffmpeg into its own class, Renderer can now create jobs when in clusterizer mode

This commit is contained in:
2025-02-24 00:52:10 +01:00
parent 31358ff2c9
commit fcc6f8266b
13 changed files with 268 additions and 133 deletions

View File

@ -6,7 +6,7 @@
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/20 18:24:39 by tomoron #+# #+# */
/* Updated: 2025/02/21 21:45:24 by tomoron ### ########.fr */
/* Updated: 2025/02/23 22:41:07 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -18,6 +18,7 @@ Clusterizer::Clusterizer(Arguments &args)
_isServer = 0;
_error = 0;
_serverSocket = 0;
_sceneName = args.getSceneName();
if(args.getBoolean("server"))
{
@ -53,3 +54,13 @@ bool Clusterizer::getError(void)
{
return(_error);
}
bool Clusterizer::isServer(void)
{
return(_isServer);
}
bool Clusterizer::hasJobs(void)
{
return(_jobs[WAITING].size() || _jobs[IN_PROGRESS].size());
}