MCPcopy Create free account
hub / github.com/clangen/musikcube / getTypedEncoder

Function getTypedEncoder

src/plugins/server/Transcoder.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63template <typename T>
64static 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
76static size_t lastWriteTime(const fs::path& path) {
77 std::error_code ec;

Callers

nothing calls this directly

Calls 2

getEncoderFunction · 0.85
ReleaseMethod · 0.45

Tested by

no test coverage detected