summaryrefslogtreecommitdiff
path: root/args.c
AgeCommit message (Collapse)Author
2016-09-27Cast strto[u]l downJohann
Change-Id: I945b2f8754cf484a08e5ba511cfd2d4a44181b08
2016-09-27Add compiler flag -Wsign-compareUrvang Joshi
Also, fix the warnings generated by this flag. (cherry picked from commit ebeb1155d4fa6d28e2f40c92265245f8df097fcb) From AOM. Don't actually add -Wsign-compare. It will be covered by -Wextra. Switch to vpx_integer.h from df9c9d6d4c43f02c58d4e776c53323788e013cbc BUG=webm:1069 Change-Id: I1dc6e61caa5d56af4a55b6692ab620bb3144652a
2016-08-04args.c: add some explicit castsJames Zern
values are range checked before returning; quiets -Wshorten-64-to-32 warnings Change-Id: I806af11b2aaf6760c7ab234a2fe2fdf40e7bece7
2016-07-19top-level: apply clang-formatclang-format
Change-Id: Ibd5395bf8956a80f7c0df4d539c7a42c927a1fc7
2015-05-27Don't #define snprintf in VS 2015 or higher.Johann
In VS 2015 and higher snprintf is supplied and therefore vsnprintf doesn't need to be defined. This also avoids problems caused by _snprintf being different from snprintf. This fixes a build break with VS 2015 and improves security. Originally submitted via chromium by brucedawson@chromium.org https://codereview.chromium.org/1055603003 Additionally break this MSVC-specific tweak to a new file, which will become the home of all such MSVC-specific things. This requires adding a dependency on msvc.h to every example which uses args.c and tools_common.h Change-Id: I35b5f8e7ea00f6627403aabc9ea79b0412557a99
2012-11-06Merge other top-level C codeJohn Koleszar
Change-Id: I0ff77f51595599cc3de5183c6c655fd261e3d925
2012-07-17Restyle codeJohn Koleszar
Approximate the Google style guide[1] so that that there's a written document to follow and tools to check compliance[2]. [1]: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml [2]: http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py Change-Id: Idf40e3d8dddcc72150f6af127b13e5dab838685f
2010-12-17Add psnr/ssim tuning optionJohn Koleszar
Add a new encoder control, VP8E_SET_TUNING, to allow the application to inform the encoder that the material will benefit from certain tuning. Expose this control as the --tune option to vpxenc. The args helper is expanded to support enumerated arguments by name or value. Two tunings are provided by this patch, PSNR (default) and SSIM. Activity masking is made dependent on setting --tune=ssim, as the current implementation hurts speed (10%) and PSNR (2.7% avg, 10% peak) too much for it to be a default yet. Change-Id: I110d969381c4805347ff5a0ffaf1a14ca1965257
2010-10-25usage: fix horizontal alignment of optionsJohn Koleszar
When showing the command usage information for vpxenc and vpxdec, options with both a short and long version that do not take an argument were not properly aligned. Change-Id: I8d65b5ab85bcb5a5dc8bc0d4b293b5189d56dedb
2010-09-09Use WebM in copyright notice for consistencyJohn Koleszar
Changes 'The VP8 project' to 'The WebM project', for consistency with other webmproject.org repositories. Fixes issue #97. Change-Id: I37c13ed5fbdb9d334ceef71c6350e9febed9bbba
2010-06-18cosmetics: trim trailing whitespaceJohn Koleszar
When the license headers were updated, they accidentally contained trailing whitespace, so unfortunately we have to touch all the files again. Change-Id: I236c05fade06589e417179c0444cb39b09e4200d
2010-06-04LICENSE: update with latest textJohn Koleszar
Change-Id: Ieebea089095d9073b3a94932791099f614ce120c
2010-05-18Initial WebM releaseJohn Koleszar