Closes the Compute library allocation
| 124 | // Closes the Compute library allocation |
| 125 | // |
| 126 | CMP_ERROR CMP_API CMP_DestroyComputeLibrary(bool forceclose = false) |
| 127 | { |
| 128 | if (g_ComputeBase && forceclose) |
| 129 | { |
| 130 | if (plugin_encoder_codec) |
| 131 | { |
| 132 | delete plugin_encoder_codec; |
| 133 | plugin_encoder_codec = NULL; |
| 134 | } |
| 135 | |
| 136 | g_ComputeBase->TC_Close(); |
| 137 | //free(g_ComputeBase); |
| 138 | delete g_ComputeBase; |
| 139 | g_ComputeBase = NULL; |
| 140 | } |
| 141 | |
| 142 | return CMP_OK; |
| 143 | } |
| 144 | |
| 145 | const CMP_CHAR* GetEncodeWithDesc(CMP_Compute_type nFormat) |
| 146 | { |