New upstream version 24.0.1+dfsg1

This commit is contained in:
Sebastian Ramacher 2019-09-22 23:19:10 +02:00
parent b14f9eae6d
commit 5a730d6ec3
842 changed files with 42245 additions and 33385 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,14 +1,14 @@
AVCapture="Dispositivo de captura de vídeo"
Device="Dispositivo"
UsePreset="Usar valores predefinidos"
Preset="Valores predefinidos"
Buffering="Utilizar o almacenamento no búfer"
FrameRate="Velocidade de fotogramas"
UsePreset="Usar valor predefinido"
Preset="Predefinido"
Buffering="Usar o almacenamento na memoria temporal"
FrameRate="Taxa de fotogramas"
InputFormat="Formato de entrada"
ColorSpace="Espazo de cor"
VideoRange="Rango de video"
VideoRange="Intervalo de vídeo"
VideoRange.Partial="Parcial"
VideoRange.Full="Completo"
VideoRange.Full="Total"
Auto="Automático"
Unknown="Descoñecido ($1)"

View file

@ -1,4 +1,4 @@
AVCapture="ვიდეოს გადამღები მოწყობილობა"
AVCapture="ვიდეოჩამწერი მოწყობილობა"
Device="მოწყობილობა"
UsePreset="მზა პარამეტრებით სარგებლობა"
Preset="მზა პარამეტრები"

View file

@ -12,10 +12,8 @@
namespace left_right {
template <typename T>
struct left_right {
template <typename Func>
void update(Func &&f)
template<typename T> struct left_right {
template<typename Func> void update(Func &&f)
{
std::lock_guard<std::mutex> lock(write_mutex);
auto cur = current.load();
@ -56,8 +54,8 @@ struct left_right {
private:
std::atomic_uint_fast8_t current;
std::atomic_long readers[2];
std::mutex write_mutex;
std::atomic_long readers[2];
std::mutex write_mutex;
T data[2] = {{}, {}};
};

View file

@ -8,21 +8,13 @@
namespace scope_guard_util {
template <typename FunctionType>
class ScopeGuard {
template<typename FunctionType> class ScopeGuard {
public:
void dismiss() noexcept
{
dismissed_ = true;
}
void dismiss() noexcept { dismissed_ = true; }
explicit ScopeGuard(const FunctionType &fn)
: function_(fn)
{}
explicit ScopeGuard(const FunctionType &fn) : function_(fn) {}
explicit ScopeGuard(FunctionType &&fn)
: function_(std::move(fn))
{}
explicit ScopeGuard(FunctionType &&fn) : function_(std::move(fn)) {}
ScopeGuard(ScopeGuard &&other)
: dismissed_(other.dismissed_),
@ -38,43 +30,40 @@ public:
}
private:
void* operator new(size_t) = delete;
void *operator new(size_t) = delete;
void execute() noexcept
{
function_();
}
void execute() noexcept { function_(); }
bool dismissed_ = false;
FunctionType function_;
};
template <typename FunctionType>
template<typename FunctionType>
ScopeGuard<typename std::decay<FunctionType>::type>
make_guard(FunctionType &&fn)
{
return ScopeGuard<typename std::decay<FunctionType>::type>{
std::forward<FunctionType>(fn)};
std::forward<FunctionType>(fn)};
}
namespace detail {
enum class ScopeGuardOnExit {};
template <typename FunctionType>
template<typename FunctionType>
ScopeGuard<typename std::decay<FunctionType>::type>
operator+(detail::ScopeGuardOnExit, FunctionType &&fn) {
return ScopeGuard<typename std::decay<FunctionType>::type>(
std::forward<FunctionType>(fn));
operator+(detail::ScopeGuardOnExit, FunctionType &&fn)
{
return ScopeGuard<typename std::decay<FunctionType>::type>(
std::forward<FunctionType>(fn));
}
}
} // namespace scope_guard_util
#define SCOPE_EXIT_CONCAT2(x, y) x ## y
#define SCOPE_EXIT_CONCAT2(x, y) x##y
#define SCOPE_EXIT_CONCAT(x, y) SCOPE_EXIT_CONCAT2(x, y)
#define SCOPE_EXIT \
#define SCOPE_EXIT \
auto SCOPE_EXIT_CONCAT(SCOPE_EXIT_STATE, __LINE__) = \
::scope_guard_util::detail::ScopeGuardOnExit() + [&]() noexcept