mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
CI: Update to clang-format 16
This commit also modifies UI, libobs, and plugins.
This commit is contained in:
@@ -618,4 +618,4 @@ const CardEntries::iterator CardManager::end()
|
||||
return mCardEntries.end();
|
||||
}
|
||||
|
||||
} // aja
|
||||
} // namespace aja
|
||||
|
||||
@@ -103,4 +103,4 @@ private:
|
||||
mutable std::mutex mMutex;
|
||||
};
|
||||
|
||||
} // aja
|
||||
} // namespace aja
|
||||
|
||||
@@ -1183,4 +1183,4 @@ std::vector<NTV2DeviceID> MultiViewCards()
|
||||
return {DEVICE_ID_IOX3};
|
||||
}
|
||||
|
||||
} // aja
|
||||
} // namespace aja
|
||||
|
||||
@@ -110,4 +110,4 @@ extern VPIDStandard DetermineVPIDStandard(IOSelection io, NTV2VideoFormat vf,
|
||||
SDITransport4K t4k);
|
||||
extern std::vector<NTV2DeviceID> MultiViewCards();
|
||||
|
||||
} // aja
|
||||
} // namespace aja
|
||||
|
||||
@@ -1836,4 +1836,4 @@ bool RoutingConfigurator::FindFirstPreset(ConnectionKind kind, NTV2DeviceID id,
|
||||
return false;
|
||||
}
|
||||
|
||||
} // aja
|
||||
} // namespace aja
|
||||
|
||||
@@ -46,4 +46,4 @@ private:
|
||||
RoutingPresetMap m_presets;
|
||||
};
|
||||
|
||||
} // aja
|
||||
} // namespace aja
|
||||
|
||||
@@ -608,4 +608,4 @@ void Routing::LogRoutingPreset(const RoutingPreset &rp)
|
||||
}
|
||||
}
|
||||
|
||||
} // aja
|
||||
} // namespace aja
|
||||
|
||||
@@ -62,4 +62,4 @@ public:
|
||||
static void LogRoutingPreset(const RoutingPreset &rp);
|
||||
};
|
||||
|
||||
} // aja
|
||||
} // namespace aja
|
||||
|
||||
@@ -125,7 +125,7 @@ struct ca_encoder {
|
||||
};
|
||||
typedef struct ca_encoder ca_encoder;
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
||||
namespace std {
|
||||
|
||||
@@ -152,7 +152,7 @@ template<> struct default_delete<remove_pointer<AudioConverterRef>::type> {
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace std
|
||||
|
||||
template<typename T>
|
||||
using cf_ptr = unique_ptr<typename remove_pointer<T>::type>;
|
||||
@@ -1405,8 +1405,7 @@ bool obs_module_load(void)
|
||||
CA_LOG(LOG_INFO, "Adding CoreAudio AAC encoder");
|
||||
#endif
|
||||
|
||||
struct obs_encoder_info aac_info {
|
||||
};
|
||||
struct obs_encoder_info aac_info {};
|
||||
aac_info.id = "CoreAudio_AAC";
|
||||
aac_info.type = OBS_ENCODER_AUDIO;
|
||||
aac_info.codec = "aac";
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace std {
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace std
|
||||
|
||||
#define TEXT_AVCAPTURE obs_module_text("AVCapture")
|
||||
#define TEXT_DEVICE obs_module_text("Device")
|
||||
@@ -111,7 +111,7 @@ namespace {
|
||||
bool video_params_valid = false;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
||||
struct av_capture {
|
||||
OBSAVCaptureDelegate *delegate;
|
||||
@@ -303,7 +303,7 @@ namespace {
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
||||
static av_capture_ref get_ref(obs_properties_t *props)
|
||||
{
|
||||
|
||||
@@ -60,4 +60,4 @@ private:
|
||||
T data[2] = {{}, {}};
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace left_right
|
||||
|
||||
@@ -58,7 +58,7 @@ operator+(detail::ScopeGuardOnExit, FunctionType &&fn)
|
||||
std::forward<FunctionType>(fn));
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace detail
|
||||
|
||||
} // namespace scope_guard_util
|
||||
|
||||
|
||||
@@ -139,5 +139,5 @@ enum type {
|
||||
};
|
||||
}
|
||||
class Logger;
|
||||
}
|
||||
} // namespace srt_logging
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user