| 972 | } |
| 973 | |
| 974 | std::string zeroPadding(const unsigned int number, const unsigned int length) |
| 975 | { |
| 976 | ostringstream out; |
| 977 | out << std::internal << std::setfill('0') << std::setw(length) << number; |
| 978 | return out.str(); |
| 979 | } |
| 980 | |
| 981 | /** Substitute the placeholder in the file name with the current frame number. |
| 982 | */ |