summaryrefslogtreecommitdiff
path: root/utils/wbm2m.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/wbm2m.cpp')
-rw-r--r--utils/wbm2m.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/wbm2m.cpp b/utils/wbm2m.cpp
index b69bb28..71a26a5 100644
--- a/utils/wbm2m.cpp
+++ b/utils/wbm2m.cpp
@@ -6,6 +6,7 @@
#include <fstream>
#include <map>
#include <system_error>
+#include <fmt/format.h>
#include <kms++/kms++.h>
#include <kms++util/kms++util.h>
@@ -101,8 +102,13 @@ int main(int argc, char** argv)
exit(-1);
}
- const string filename = sformat("wb-out-%ux%u_%4.4s.raw", dst_width, dst_height,
- PixelFormatToFourCC(dst_fmt).c_str());
+ printf("%ux%u-%s -> %ux%u-%s\n", src_width, src_height, PixelFormatToFourCC(src_fmt).c_str(),
+ dst_width, dst_height, PixelFormatToFourCC(dst_fmt).c_str());
+
+ const string filename = fmt::format("wb-out-{}x{}-{}.raw", dst_width, dst_height,
+ PixelFormatToFourCC(dst_fmt));
+
+ printf("writing to %s\n", filename.c_str());
VideoDevice vid("/dev/video10");