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 .
- android.media.cts.EncodeDecodeTest -- testVP8EncodeDecodeVideoFromPersistentSurfaceToSurfaceQCIF
- android.media.cts.CamcorderProfileTest -- testGetWithId
- Android音视频测试之Android CTS Media API Test
- android.video.cts.VideoEncoderDecoderTest 或者android.media.cts.VideoDecoderPerfTest fail分析
- Android CTS
- Android CTS
- Android CTS
- Android CTS
- android CTS
- Android CTS
- android media
- CTS Fail: android.hardware.cts.CameraTest-- testJpegExif
- cts android.bluetooth.cts.BluetoothLeScanTest --testBasicBleScan fail
- cts fail:com.android.cts.aadb.TestDeviceFuncTest
- Android CTS 测试研究
- android 之 CTS
- Android CTS 总结
- Android CTS 总结
- 查看.lib文件具体链接哪个dll文件
- javaScript——正六边形图片裁剪
- powershell 批量添加TMG ISA 域名集
- C#将数据存储为CSV文件格式
- mysql函数和mysqli函数用法详解
- android.media.cts.EncodeDecodeTest -- testVP8EncodeDecodeVideoFromPersistentSurfaceToSurfaceQCIF
- 关于“我”
- Java Socket
- DAG模型的动态规划学习
- STM32-内部结构
- AngularJS select
- 【OpenCV】opencv处理透明图片
- 区块链开发(二)以太坊客户端基本操作命令
- 【OTT】1月2日-1月8日OTT盒子观察报告