[FFmpeg-devel] [PATCH 8/8] tools: add device_capabilities testing tool
Nicolas George
george at nsup.org
Wed Feb 26 12:27:37 CET 2014
Le quartidi 4 ventôse, an CCXXII, Lukasz Marek a écrit :
> tool allows to test implementations of device caps API.
>
> Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
> ---
> .gitignore | 1 +
> Makefile | 4 +-
> tools/device_capabilities.c | 319 ++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 323 insertions(+), 1 deletion(-)
> create mode 100644 tools/device_capabilities.c
> + av_log(NULL, AV_LOG_INFO, "Select option to set (q for quit, r for reset): ");
> + scanf("%99s", buf);
> + if (argc < 2) {
> + av_log(NULL, AV_LOG_INFO, "Usage: %s device_name\n", argv[0]);
I suspect it would make the program both much simpler and more practical if
you took the commands from argv instead of stdin. Just loop over argv[i],
check it starts with a dash and
"av_opt_set(query, argv[i] + 1, argv[i + 1]);".
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140226/4da52eb2/attachment.asc>
More information about the ffmpeg-devel
mailing list