Revision 4f833a04
Added by David Sorber over 9 years ago
| software/photo_compress_archiver/PhotoCompressArchiver.cc | ||
|---|---|---|
|
<< std::endl;)
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#ifdef __linux__
|
||
|
#error MAC OS is not supported dumbass!
|
||
|
#endif
|
||
|
|
||
|
|
||
|
uint32_t argv_size = file_sublist->size() + 5;
|
||
|
const char **exec_argv = new const char* [argv_size];
|
||
| ... | ... | |
|
exec_argv[argv_size - 1] = nullptr;
|
||
|
|
||
|
|
||
|
// --- temp idea horribleness
|
||
|
// Build a list of the output files names for use in output file monitoring
|
||
|
// below. Output file names have ".jpg" or ".jpeg" replaced with ".pjg"
|
||
|
std::vector<std::string*> output_filenames;
|
||
|
for (auto& filepath : *file_sublist)
|
||
|
{
|
||
| ... | ... | |
|
|
||
|
output_filenames.push_back(filename);
|
||
|
}
|
||
|
//--------------------------
|
||
|
|
||
|
#if 0
|
||
|
for (auto output_filename : output_filenames)
|
||
|
{
|
||
|
OUT(std::cout << *output_filename << std::endl;)
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
// Create a pipe to hold stdout from child process
|
||
|
int filedes[2];
|
||
| ... | ... | |
|
{
|
||
|
delete output_filename;
|
||
|
}
|
||
|
|
||
|
//~ OUT(std::cout << "T[" << tid << "] terminating" << std::endl;)
|
||
|
}
|
||
|
|
||
|
double PhotoCompressArchiver::get_global_percent_done()
|
||
A tiny bit of cleanup from my previous commit...