diff options
author | Benoit Parrot <bparrot@ti.com> | 2018-10-29 12:11:02 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@iki.fi> | 2018-11-01 16:43:35 +0200 |
commit | 419babcd8ef423e787e122044601567fbff3457c (patch) | |
tree | 10c393b4715da513be6e879904bbb0086a866af5 /utils | |
parent | 47e808023f98f74673906ef7de34e774cd26f52b (diff) |
wbm2m: Add resolution and format to output filename
To make it easier to deal with the resulting file, the filename should
show the resolution and pixel format used.
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Diffstat (limited to 'utils')
-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; |