| 402 | } |
| 403 | |
| 404 | CMP_ERROR CMP_API CMP_SetComputeOptions(ComputeOptions* options) |
| 405 | { |
| 406 | options->plugin_compute = plugin_encoder_codec; |
| 407 | if (g_ComputeBase) |
| 408 | { |
| 409 | g_ComputeBase->TC_SetComputeOptions(options); |
| 410 | } |
| 411 | else |
| 412 | return CMP_ERR_UNABLE_TO_INIT_COMPUTELIB; |
| 413 | |
| 414 | return CMP_OK; |
| 415 | } |
| 416 | |
| 417 | //=========================================================================================================== |
| 418 | // This is a high level API that locks calling thread with mutex, blocking if necessary until completed |