| 133 | } // namespace |
| 134 | |
| 135 | decoderVVDec::decoderVVDec(int signalID, bool cachingDecoder) : decoderBaseSingleLib(cachingDecoder) |
| 136 | { |
| 137 | // For now we don't support different signals (like prediction, residual) |
| 138 | (void)signalID; |
| 139 | |
| 140 | this->rawFormat = video::RawFormat::YUV; |
| 141 | |
| 142 | // Try to load the decoder library (.dll on Windows, .so on Linux, .dylib on Mac) |
| 143 | QSettings settings; |
| 144 | settings.beginGroup("Decoders"); |
| 145 | this->loadDecoderLibrary(settings.value("libVVDecFile", "").toString()); |
| 146 | settings.endGroup(); |
| 147 | |
| 148 | if (this->decoderState != DecoderState::Error) |
| 149 | this->allocateNewDecoder(); |
| 150 | } |
| 151 | |
| 152 | decoderVVDec::~decoderVVDec() |
| 153 | { |
nothing calls this directly
no test coverage detected