android.media.cts.EncodeDecodeTest -- testVP8EncodeDecodeVideoFromPersistentSurfaceToSurfaceQCIF

来源:互联网 发布:尔雅网络通识课官网 编辑:程序博客网 时间:2024/06/02 05:53

android.media.cts.EncodeDecodeTest
– testVP8EncodeDecodeVideoFromPersistentSurfaceToSurfaceQCIF
fail

junit.framework.AssertionFailedError: Found 29 bad frames at junit.framework.Assert.fail(Assert.java:50)
– testVP8EncodeDecodeVideoFromPersistentSurfaceToSurfaceQVGA
fail

junit.framework.AssertionFailedError: Found 29 bad frames at junit.framework.Assert.fail(Assert.java:50)
– testVP8EncodeDecodeVideoFromSurfaceToSurfaceQCIF
fail

junit.framework.AssertionFailedError: Found 29 bad frames at junit.framework.Assert.fail(Assert.java:50)
– testVP8EncodeDecodeVideoFromSurfaceToSurfaceQVGA
fail

junit.framework.AssertionFailedError: Found 29 bad frames at junit.framework.Assert.fail(Assert.java:50)

[DESCRIPTION]
遇到大量类似的fail:
android.media.cts.DecodeEditEncodeTest
testVideoEditQCIF fail junit.framework.AssertionFailedError: Found 29 bad frames at junit.framework.Assert.fail(Assert.java:50)
testVideoEditQVGA fail junit.framework.AssertionFailedError: Found 29 bad frames at junit.framework.Assert.fail(Assert.java:50)
……

查看device log或者mobilelog发现:
01-01 16:55:39.975 8370 8387 W DecodeEditEncode: Bad frame 1 (rect=0: rgb=0,0,157 vs. expected 0,0,136)
01-01 16:55:39.984 8370 8387 W DecodeEditEncode: Bad frame 2 (rect=0: rgb=0,0,157 vs. expected 0,0,136)
……
01-01 16:59:42.898 8606 8623 I DecodeEditEncode: Largest color delta: 21
01-01 16:55:40.278 8370 8383 I TestRunner: failed: testVideoEditQCIF(android.media.cts.DecodeEditEncodeTest)
01-01 16:55:40.279 8370 8383 I TestRunner: —– begin exception —–
01-01 16:55:40.279 8370 8383 I TestRunner: junit.framework.AssertionFailedError: Found 29 bad frames

并且从mtklog/mobilelog/APLog/properties文件中可以看出persist.sys.pq.adl.idx 这个属性值是1(或者使用此命令查看:adb shell getprop persist.sys.pq.adl.idx).

[SOLUTION]

因为客户打开了”Dynamic Contrast”这个feature,这个feature会在播放视频时动态改变contrast,pixel等内容从而导致CTS fail。
所以CTS测试请关闭Dynamic Contrast:
修改alps/vendor/mediatek/proprietary/platform/mt67XX/hardware/pq/cust_color.h这份档案

define PQ_ADL_INDEX_DEFAULT “1”

改为

define PQ_ADL_INDEX_DEFAULT “0”

关于Dynamic Contrast的更多细节,可以搜索并参考敝司DCC上面的文档:Dynamic Contrast_Application Note .

0 1
原创粉丝点击