| 105 | } // namespace |
| 106 | |
| 107 | decoderVTM::decoderVTM(int, bool cachingDecoder) : decoderBaseSingleLib(cachingDecoder) |
| 108 | { |
| 109 | // For now we don't support different signals (like prediction, residual) |
| 110 | |
| 111 | // Try to load the decoder library (.dll on Windows, .so on Linux, .dylib on Mac) |
| 112 | QSettings settings; |
| 113 | settings.beginGroup("Decoders"); |
| 114 | loadDecoderLibrary(settings.value("libVTMFile", "").toString()); |
| 115 | settings.endGroup(); |
| 116 | |
| 117 | if (decoderState != DecoderState::Error) |
| 118 | allocateNewDecoder(); |
| 119 | } |
| 120 | |
| 121 | decoderVTM::~decoderVTM() |
| 122 | { |