diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-10-02 12:19:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 12:19:10 +0300 |
commit | 934416e1dfa8222a0a1746a5a0951e2b08d02eae (patch) | |
tree | faec976b3629eaa61335b781d1b0527c66d14c69 /utils/wbm2m.cpp | |
parent | 6140ae4ef4ca98e3dcd9ac4aa5442abcfd44551b (diff) | |
parent | 21de1ab0f0ed584ee99b36134f4c44e9fe0fa403 (diff) |
Merge pull request #37 from tomba/work
Formatting changes and testmodes.py
Diffstat (limited to 'utils/wbm2m.cpp')
-rw-r--r-- | utils/wbm2m.cpp | 10 |
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"); |