| 62 | |
| 63 | template <typename T> |
| 64 | static T* getTypedEncoder(Context& context, const std::string& format) { |
| 65 | IEncoder* encoder = getEncoder(context, format); |
| 66 | if (encoder) { |
| 67 | T* typedEncoder = dynamic_cast<T*>(encoder); |
| 68 | if (typedEncoder) { |
| 69 | return typedEncoder; |
| 70 | } |
| 71 | encoder->Release(); |
| 72 | } |
| 73 | return nullptr; |
| 74 | } |
| 75 | |
| 76 | static size_t lastWriteTime(const fs::path& path) { |
| 77 | std::error_code ec; |
nothing calls this directly
no test coverage detected