MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / needs_encoder_reenumeration

Function needs_encoder_reenumeration

src/platform/linux/misc.cpp:950–953  ·  view source on GitHub ↗

* @brief Returns if GPUs/drivers have changed since the last call to this function. * @return `true` if a change has occurred or if it is unknown whether a change occurred. */

Source from the content-addressed store, hash-verified

948 * @return `true` if a change has occurred or if it is unknown whether a change occurred.
949 */
950 bool needs_encoder_reenumeration() {
951 // We don't track GPU state, so we will always reenumerate. Fortunately, it is fast on Linux.
952 return true;
953 }
954
955 std::shared_ptr<display_t> display(mem_type_e hwdevice_type, const std::string &display_name, const video::config_t &config) {
956#ifdef SUNSHINE_BUILD_CUDA

Callers 1

probe_encodersFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected