configs: media: finetune media_codecs and remove non-working ffmpeg video codecs

This commit is contained in:
Moyster 2018-01-17 19:12:44 +01:00
parent 45a66c9257
commit 0932243b92
2 changed files with 21 additions and 19 deletions

View File

@ -75,6 +75,9 @@ Only the three quirks included above are recognized at this point:
-->
<MediaCodecs>
<Settings>
<Setting name="max-video-encoder-input-buffers" value="10" />
</Settings>
<Decoders>
<!-- Mtk codecs -->
<MediaCodec name="OMX.MTK.VIDEO.DECODER.MPEG4" type="video/mp4v-es" >
@ -82,51 +85,51 @@ Only the three quirks included above are recognized at this point:
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="16" />
<Limit name="concurrent-instances" max="8" />
</MediaCodec>
<MediaCodec name="OMX.MTK.VIDEO.DECODER.H263" type="video/3gpp" >
<Limit name="size" min="128x96" max="1408x1152" />
<Limit name="size" min="16x16" max="1920x1080" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="16" />
<Limit name="concurrent-instances" max="8" />
</MediaCodec>
<MediaCodec name="OMX.MTK.VIDEO.DECODER.AVC" type="video/avc" >
<Limit name="size" min="64x64" max="1920x1088" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="16" />
<Limit name="concurrent-instances" max="6" />
</MediaCodec>
<MediaCodec name="OMX.MTK.VIDEO.DECODER.VC1" type="video/x-ms-wmv" >
<Limit name="size" min="16x16" max="1920x1088" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="concurrent-instances" max="16" />
<Limit name="concurrent-instances" max="8" />
</MediaCodec>
<MediaCodec name="OMX.MTK.VIDEO.DECODER.DIVX" type="video/divx" >
<Limit name="size" min="16x16" max="1920x1088" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="concurrent-instances" max="16" />
<Limit name="concurrent-instances" max="8" />
</MediaCodec>
<MediaCodec name="OMX.MTK.VIDEO.DECODER.DIVX3" type="video/divx3" >
<Limit name="size" min="16x16" max="1920x1088" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="concurrent-instances" max="16" />
<Limit name="concurrent-instances" max="8" />
</MediaCodec>
<MediaCodec name="OMX.MTK.VIDEO.DECODER.XVID" type="video/xvid" >
<Limit name="size" min="16x16" max="1920x1088" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="concurrent-instances" max="16" />
<Limit name="concurrent-instances" max="8" />
</MediaCodec>
<MediaCodec name="OMX.MTK.VIDEO.DECODER.S263" type="video/flv1" >
<Limit name="size" min="16x16" max="1920x1088" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="concurrent-instances" max="16" />
<Limit name="concurrent-instances" max="8" />
</MediaCodec>
</Decoders>
@ -137,7 +140,7 @@ Only the three quirks included above are recognized at this point:
<Limit name="block-size" value="16x16" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="concurrent-instances" max="16" />
<Limit name="concurrent-instances" max="8" />
</MediaCodec>
<MediaCodec name="OMX.MTK.VIDEO.ENCODER.H263" type="video/3gpp" >
<Limit name="size" min="176x144" max="176x144" />
@ -145,16 +148,15 @@ Only the three quirks included above are recognized at this point:
<Limit name="block-size" value="16x16" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="concurrent-instances" max="16" />
<Limit name="concurrent-instances" max="8" />
</MediaCodec>
<MediaCodec name="OMX.MTK.VIDEO.ENCODER.AVC" type="video/avc" >
<Limit name="size" min="128x96" max="1920x1080" />
<Limit name="alignment" value="2x2" />
<Limit name="size" min="64x64" max="1920x1080" />
<Limit name="alignment" value="16x16" />
<Limit name="block-size" value="16x16" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="concurrent-instances" max="16" />
<Feature name="can-swap-width-height" />
<Limit name="concurrent-instances" max="8" />
</MediaCodec>
</Encoders>
<Include href="media_codecs_ffmpeg.xml" />

View File

@ -18,10 +18,10 @@
<Decoders>
<!-- ffmpeg audio codecs -->
<MediaCodec name="OMX.ffmpeg.aac.decoder" type="audio/mp4a-latm">
<!-- MediaCodec name="OMX.ffmpeg.aac.decoder" type="audio/mp4a-latm">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="8000-192000" />
</MediaCodec>
</MediaCodec -->
<MediaCodec name="OMX.ffmpeg.ac3.decoder" type="audio/ac3" >
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="8000-192000" />
@ -68,7 +68,7 @@
</MediaCodec>
<!-- ffmpeg video codecs -->
<MediaCodec name="OMX.ffmpeg.divx.decoder" type="video/divx">
<!-- MediaCodec name="OMX.ffmpeg.divx.decoder" type="video/divx">
<Limit name="size" min="2x2" max="2048x2048" />
<Limit name="alignment" value="2x2" />
<Feature name="adaptive-playback" />
@ -107,6 +107,6 @@
<Limit name="size" min="2x2" max="2048x2048" />
<Limit name="alignment" value="2x2" />
<Feature name="adaptive-playback" />
</MediaCodec>
</MediaCodec -->
</Decoders>
</Included>