Unit testing optimized functions in H.264
Hao Zhang, Yuetang Deng, Zhengye Liu, Yuan Fang Zhao, Haiyan Zhan · 2011
Unit testing is a very useful but also very time consuming process to verify the correctness of individual functions or procedures. Although unit testing may have already been widely used by video codec engineers, to the best of our knowledge, designing efficient unit test suites for optimized video codec functions has not been systematically studied. Therefore, the authors propose to attack this problem by firstly summarizing various SIMD (Single Instruction, Multiple Data) related bugs based on past experiences. Then, random testing and manually designed test suites design are exploited to detect those bugs. Random test cases would be sampling uniformly from the admissible values and are shown to be effective detecting those bugs. The manually created test suites are specially designed for some type of errors and can guarantee the bug detection as well as locate those bugs.