summaryrefslogtreecommitdiff
path: root/test/y4m_test.cc
AgeCommit message (Collapse)Author
2021-01-28Relax constraints on Y4M header parsingElliott Karpilovsky
Previous parser assumed that the header would not exceed 80 characters. However, with latest FFMPEG changes, the header of Y4M files can exceed this limit. New parser can parse up to ~200 characters. Arbitrary parsing in future commit. BUG=aomedia:2876 Change-Id: I2ab8a7930cb5b76004e6731321d0ea20ddf333c1
2021-01-14Relax constraints on Y4M header parsingElliott Karpilovsky
Some refactoring and cleanup -- do not count the first 9 bytes against the header limit. Add a unit test. BUG=aomedia:2876 Change-Id: Id897d565e2917b48460cc77cd082cec4c98b42cb
2020-07-27NULL -> nullptr in CPP filesJerome Jiang
This should clean up clangtidy warnings Change-Id: Ifb5a986121b2d0bd71b9ad39a79dd46c63bdb998
2020-06-18update googletest to v1.10.0James Zern
this moves the framework to c++11 and changes *_TEST_CASE* to _TEST_SUITE BUG=webm:1695 Change-Id: I07f2c20850312a9c7e381b38353d2f9f45889cb1
2019-01-14Use longer test clips in y4m_testYunqing Wang
Used 20-frame clips to replace 10-frame clips in y4m_test. Also, removed unused 10-frame clips. Change-Id: Ib82ad2c3718f1f5f31478957b9ee970593536940
2016-08-08y4m_test: init members in the constructorJames Zern
prevents use of an uninitialized value in the deconstructor should the test fail before tmpfile_ is set. Change-Id: I8b49fd05f0d05e055fdf653bd46983d30f466a68
2016-07-27test: apply clang-formatclang-format
Change-Id: I0d9ab85855eb723f653a7bb09b3d0d31dd6cfd2f
2015-07-29Cosmetics - Fix header file order in unit testsJingning Han
Change-Id: I9582a8d74990125b71e8fe620f7f3f2585a30798
2014-09-02Adds config opt for highbitdepth + misc. vpxDeb Mukherjee
Adds config parameter vp9_highbitdepth, to support highbitdepth profiles. Also includes most vpx level high bit-depth functions. However encode/decode in the highbitdepth profiles will not work until the rest of the code is in place. Change-Id: I34c53b253c38873611057a6cbc89a1361b8985a6
2014-08-15Removes fileno check to prevent valgrind errorDeb Mukherjee
Explicitly makes the fileptr null when close source is called on a temporary file. This avoids a valgrind error. Change-Id: I9c364290eeb6842fde946dd9bf817814c7178aaa
2014-08-12Rework y4mwrite test to pass google3 testsDeb Mukherjee
Reverts to using tmpfile() for non-Windows platforms. On google3 the test directory does not have write permissions, and hence the Y4mWriteTest fails. This patch fixes the issue. On Windows, a temporary file is created in the temp directory that has write permissions. The tests pass on linux, mingw, and MS visual studio. Change-Id: Ibada1d80e25d8b8e5b6a9d3d597533674bd9024c
2014-07-18y4m_test: drop '_t' from local typenamesJames Zern
_t is reserved by posix + switch to camelcase http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Type_Names Change-Id: I2ede16e0903a96225a342609545281fdbb83d638
2014-07-18Use custom mkstemp() to fix Win issue in y4m_testDeb Mukherjee
Uses mkstmp() with directory being the same as the test data directory to create temporary output file. For Windows GetTempFileNameA() function is used. Change-Id: Ie4681b2b4f44f8c22d3b3faf134c44087b484f94
2014-07-05Adds support for reading and writing 10/12-bit y4mDeb Mukherjee
The y4m extension used is the same as the one used in ffmpeg/x264. The patch is adapted from the highbitdepth branch. Also adds unit tests for y4m header parsing and md5 check of the raw frame data, as well as y4m writing. [build fix for Mac/VS by not using tuples with strings] Change-Id: I40897ee37d289e4b6cea6fedc67047d692b8cb46
2014-07-02Reverting "Adds support for reading and writing 10/12-bit y4m" for now ↵Dmitry Kovalev
because of Mac Build Failure. This reverts commit 82dc1332af4b16d3e4ad3c4358498820637b7add Change-Id: I824bf42bf47c7df6985c79e451d6af913030d374
2014-07-02Adds support for reading and writing 10/12-bit y4mDeb Mukherjee
The y4m extension used is the same as the one used in ffmpeg/x264. The patch is adapted from the highbitdepth branch. Also adds unit tests for y4m header parsing and md5 check of the raw frame data, as well as y4m writing. Change-Id: Ie2794daf6dbafd2f128464f9b9da520fc54c0dd6