diff options
-rw-r--r-- | utils/wbm2m.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/wbm2m.cpp b/utils/wbm2m.cpp index 4a126a8..e08ffb1 100644 --- a/utils/wbm2m.cpp +++ b/utils/wbm2m.cpp @@ -57,8 +57,6 @@ int main(int argc, char** argv) const uint32_t dst_height = 480; auto dst_fmt = PixelFormat::XRGB8888; - const string filename = "wb-out.raw"; - OptionSet optionset = { Option("f|format=", [&](string s) { @@ -78,6 +76,9 @@ 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()); + VideoDevice vid("/dev/video10"); Card card; |