[CTS10R3]android.media.cts.HeifWriterTest

问题描述

 CtsMediaTestCases
android.media.cts.HeifWriterTest#testInputBitmap_Grid_Handler
android.media.cts.HeifWriterTest#testInputBitmap_Grid_NoHandler
android.media.cts.HeifWriterTest#testInputBitmap_NoGrid_Handler
android.media.cts.HeifWriterTest#testInputBitmap_NoGrid_NoHandler
android.media.cts.HeifWriterTest#testInputBuffer_Grid_Handler
android.media.cts.HeifWriterTest#testInputBuffer_Grid_NoHandler
android.media.cts.HeifWriterTest#testInputBuffer_NoGrid_Handler
android.media.cts.HeifWriterTest#testInputBuffer_NoGrid_NoHandler
android.media.cts.HeifWriterTest#testInputSurface_Grid_Handler
android.media.cts.HeifWriterTest#testInputSurface_Grid_NoHandler
android.media.cts.HeifWriterTest#testInputSurface_NoGrid_Handler
android.media.cts.HeifWriterTest#testInputSurface_NoGrid_NoHandler
Fail:
java.lang.NullPointerException

解决方案

According to CDD 10, HEVC encoder should support Main Profile Level 3.
Since MTK SW HEVC encoder cannot achieve such requirement, it’s been removed from Android Q.
從Android CDD 10開始規範若平台支持HEVC編碼,必須符合Main Profile Level 3 (參考自章節5.2.5)
由於K63原先搭載的軟件HEVC編碼無法到達此標準,自去年起MTK便移除HEVC encoder
 Details:
1. Remove hevc encoder in media_codecs_mediatek_video.xml
2. Marked enable as false for google c2 hevc encoder.

<MediaCodec name="c2.android.hevc.encoder" type="video/hevc" update="true" enabled="false">
<!-- profiles and levels: ProfileMain : MainTierLevel51 -->
<Limit name="size" min="2x2" max="512x512" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="8x8" />
<Limit name="block-count" range="1-4096" /> <!-- max 512x512 -->
<Limit name="blocks-per-second" range="1-122880" />
<Limit name="frame-rate" range="1-120" />
<Limit name="bitrate" range="1-10000000" />
<Limit name="complexity" range="0-10" default="0" />
<Limit name="quality" range="0-100" default="80" />
<Feature name="bitrate-modes" value="VBR,CBR,CQ" />
</MediaCodec>

平台:MT6763,MT6771

申请patch:ALPS04937811

作者: RESSRC

个人资源站

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据