| 182 | } |
| 183 | |
| 184 | void decoderVVDec::resolveLibraryFunctionPointers() |
| 185 | { |
| 186 | if (!resolve(this->lib.vvdec_get_version, "vvdec_get_version")) |
| 187 | return; |
| 188 | |
| 189 | if (!resolve(this->lib.vvdec_accessUnit_alloc, "vvdec_accessUnit_alloc")) |
| 190 | return; |
| 191 | if (!resolve(this->lib.vvdec_accessUnit_free, "vvdec_accessUnit_free")) |
| 192 | return; |
| 193 | if (!resolve(this->lib.vvdec_accessUnit_alloc_payload, "vvdec_accessUnit_alloc_payload")) |
| 194 | return; |
| 195 | if (!resolve(this->lib.vvdec_accessUnit_free_payload, "vvdec_accessUnit_free_payload")) |
| 196 | return; |
| 197 | if (!resolve(this->lib.vvdec_accessUnit_default, "vvdec_accessUnit_default")) |
| 198 | return; |
| 199 | |
| 200 | if (!resolve(this->lib.vvdec_params_default, "vvdec_params_default")) |
| 201 | return; |
| 202 | if (!resolve(this->lib.vvdec_params_alloc, "vvdec_params_alloc")) |
| 203 | return; |
| 204 | if (!resolve(this->lib.vvdec_params_alloc, "vvdec_params_alloc")) |
| 205 | return; |
| 206 | if (!resolve(this->lib.vvdec_params_free, "vvdec_params_free")) |
| 207 | return; |
| 208 | |
| 209 | if (!resolve(this->lib.vvdec_decoder_open, "vvdec_decoder_open")) |
| 210 | return; |
| 211 | if (!resolve(this->lib.vvdec_decoder_close, "vvdec_decoder_close")) |
| 212 | return; |
| 213 | |
| 214 | if (!resolve(this->lib.vvdec_set_logging_callback, "vvdec_set_logging_callback")) |
| 215 | return; |
| 216 | if (!resolve(this->lib.vvdec_decode, "vvdec_decode")) |
| 217 | return; |
| 218 | if (!resolve(this->lib.vvdec_flush, "vvdec_flush")) |
| 219 | return; |
| 220 | if (!resolve(this->lib.vvdec_frame_unref, "vvdec_frame_unref")) |
| 221 | return; |
| 222 | |
| 223 | if (!resolve(this->lib.vvdec_get_hash_error_count, "vvdec_get_hash_error_count")) |
| 224 | return; |
| 225 | if (!resolve(this->lib.vvdec_get_dec_information, "vvdec_get_dec_information")) |
| 226 | return; |
| 227 | if (!resolve(this->lib.vvdec_get_last_error, "vvdec_get_last_error")) |
| 228 | return; |
| 229 | if (!resolve(this->lib.vvdec_get_last_additional_error, "vvdec_get_last_additional_error")) |
| 230 | return; |
| 231 | if (!resolve(this->lib.vvdec_get_error_msg, "vvdec_get_error_msg")) |
| 232 | return; |
| 233 | } |
| 234 | |
| 235 | template <typename T> T decoderVVDec::resolve(T &fun, const char *symbol, bool optional) |
| 236 | { |