marcobramini / screen-recorder Goto Github PK
View Code? Open in Web Editor NEWA library to capture and record your audio and video devices
License: GNU General Public License v3.0
A library to capture and record your audio and video devices
License: GNU General Public License v3.0
template <typename T, typename ParseContext>
FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx)
-> decltype(ctx.begin())
{
using char_type = typename ParseContext::char_type;
using context = buffer_context<char_type>;
using mapped_type = conditional_t<
mapped_type_constant<T, context>::value != type::custom_type,
decltype(arg_mapper<context>().map(std::declval<const T&>())),
typename strip_named_arg<T>::type>;
return formatter<mapped_type, char_type>().parse(ctx);
}
error log:
vcpkg-2023.06.20\packages\fmt_x64-windows\include\fmt\core.h:2561: error: use of deleted function 'fmt::v10::formatter<T, Char, Enable>::formatter() [with T = AVMediaType; Char = char; Enable = void]'
/// Finds the main video stream in the current device context.
int DeviceContext::find_main_stream(AVMediaType streamType) {
// Build method params for error handling purposes
std::map<std::string, std::string> methodParams = {
{"streamType", std::to_string(streamType)}};
if (avfc == nullptr) {
throw std::runtime_error(Error::build_error_message(
__FUNCTION__, methodParams, "device not initialized"));
}
int streamIndex =
av_find_best_stream(avfc.get(), streamType, -1, -1, nullptr, 0);
if (streamIndex < 0) {
throw std::runtime_error(Error::build_error_message(
__FUNCTION__, methodParams,
fmt::format("error finding main stream for type {}", streamType)));
}
return streamIndex;
}
device_context.cpp:152:21: In template: call to deleted constructor of 'formatter<mapped_type, char_type>' (aka 'formatter<AVMediaType, char>')
core.h:2567:10: error occurred here
core.h:2626:23: in instantiation of function template specialization 'fmt::detail::parse_format_specs<AVMediaType, fmt::detail::compile_parse_context<char>>' requested here
core.h:2775:47: in instantiation of member function 'fmt::detail::format_string_checker<char, AVMediaType>::format_string_checker' requested here
device_context.cpp:152:21: in instantiation of function template specialization 'fmt::basic_format_string<char, AVMediaType &>::basic_format_string<char[38], 0>' requested here
core.h:792:3: 'formatter' has been explicitly marked deleted here
/vcpkg-2023.06.20/packages/fmt_x64-windows/include/fmt/core.h:1691:7: error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
1691 | formattable,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.