OSDN Git Service

stagefright-plugins: Update codec list with capabilities
authorSteve Kondik <steve@cyngn.com>
Tue, 23 Jun 2015 19:51:11 +0000 (12:51 -0700)
committerSteve Kondik <steve@cyngn.com>
Wed, 24 Jun 2015 01:10:04 +0000 (18:10 -0700)
 * Needed for CTS.

Change-Id: I73a92f4a8c77c2c51990d2599f13de91a3b84daf

data/media_codecs_ffmpeg.xml

index a29c46a..caa41e4 100644 (file)
     <Decoders>
 
         <!--  ffmpeg audio codecs -->
-        <MediaCodec name="OMX.ffmpeg.aac.decoder"    type="audio/mp4a-latm" />
-        <MediaCodec name="OMX.ffmpeg.ac3.decoder"    type="audio/ac3" />
-        <MediaCodec name="OMX.ffmpeg.ape.decoder"    type="audio/x-ape" />
-        <MediaCodec name="OMX.ffmpeg.atrial.decoder" type="audio/ffmpeg" />
-        <MediaCodec name="OMX.ffmpeg.dts.decoder"    type="audio/vnd.dts" />
-        <MediaCodec name="OMX.ffmpeg.flac.decoder"   type="audio/flac" />
-        <MediaCodec name="OMX.ffmpeg.mp2.decoder"    type="audio/mpeg-L2" />
-        <MediaCodec name="OMX.ffmpeg.ra.decoder"     type="audio/vnd.rn-realaudio" />
-        <MediaCodec name="OMX.ffmpeg.wma.decoder"    type="audio/x-ms-wma" />
+        <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 name="OMX.ffmpeg.ac3.decoder"    type="audio/ac3" >
+            <Limit name="channel-count" max="8" />
+            <Limit name="sample-rate" ranges="8000-192000" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.ape.decoder"    type="audio/x-ape" >
+            <Limit name="channel-count" max="8" />
+            <Limit name="sample-rate" ranges="8000-192000" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.atrial.decoder" type="audio/ffmpeg" >
+            <Limit name="channel-count" max="8" />
+            <Limit name="sample-rate" ranges="8000-192000" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.dts.decoder"    type="audio/vnd.dts" >
+            <Limit name="channel-count" max="8" />
+            <Limit name="sample-rate" ranges="8000-192000" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.flac.decoder"   type="audio/flac" >
+            <Limit name="channel-count" max="8" />
+            <Limit name="sample-rate" ranges="8000-192000" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.mp2.decoder"    type="audio/mpeg-L2" >
+            <Limit name="channel-count" max="8" />
+            <Limit name="sample-rate" ranges="8000-192000" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.mp3.decoder"    type="audio/mpeg" >
+            <Limit name="channel-count" max="8" />
+            <Limit name="sample-rate" ranges="8000-192000" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.ra.decoder"     type="audio/vnd.rn-realaudio" >
+            <Limit name="channel-count" max="8" />
+            <Limit name="sample-rate" ranges="8000-192000" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.vorbis.decoder" type="audio/vorbis" >
+            <Limit name="channel-count" max="8" />
+            <Limit name="sample-rate" ranges="8000-192000" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.wma.decoder"    type="audio/x-ms-wma" >
+            <Limit name="channel-count" max="8" />
+            <Limit name="sample-rate" ranges="8000-192000" />
+        </MediaCodec>
 
         <!--  ffmpeg video codecs -->
-        <MediaCodec name="OMX.ffmpeg.divx.decoder"   type="video/divx" />
-        <MediaCodec name="OMX.ffmpeg.flv1.decoder"   type="video/x-flv" />
-        <MediaCodec name="OMX.ffmpeg.mpeg2.decoder"  type="video/mpeg2" />
-        <MediaCodec name="OMX.ffmpeg.mpeg4.decoder"  type="video/mp4v-es" />
-        <MediaCodec name="OMX.ffmpeg.hevc.decoder"   type="video/hevc" />
-        <MediaCodec name="OMX.ffmpeg.rv.decoder"     type="video/vnd.rn-realvideo" />
-        <MediaCodec name="OMX.ffmpeg.vc1.decoder"    type="video/vc1" />
-        <MediaCodec name="OMX.ffmpeg.vp8.decoder"    type="video/vp8" />
-        <MediaCodec name="OMX.ffmpeg.vtrial.decoder" type="video/ffmpeg" />
-        <MediaCodec name="OMX.ffmpeg.wmv.decoder"    type="video/x-ms-wmv" />
+        <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" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.flv1.decoder"   type="video/x-flv">
+            <Limit name="size" min="2x2" max="2048x2048" />
+            <Limit name="alignment" value="2x2" />
+            <Feature name="adaptive-playback" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.mpeg2.decoder"  type="video/mpeg2">
+            <Limit name="size" min="2x2" max="2048x2048" />
+            <Limit name="alignment" value="2x2" />
+            <Feature name="adaptive-playback" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.mpeg4.decoder"  type="video/mp4v-es">
+            <Limit name="size" min="2x2" max="2048x2048" />
+            <Limit name="alignment" value="2x2" />
+            <Feature name="adaptive-playback" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.h263.decoder"   type="video/3gpp">
+            <Limit name="size" min="2x2" max="2048x2048" />
+            <Limit name="alignment" value="2x2" />
+            <Feature name="adaptive-playback" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.h264.decoder"   type="video/avc">
+            <Limit name="size" min="2x2" max="2048x2048" />
+            <Limit name="alignment" value="2x2" />
+            <Feature name="adaptive-playback" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.hevc.decoder"   type="video/hevc">
+            <Limit name="size" min="2x2" max="2048x2048" />
+            <Limit name="alignment" value="2x2" />
+            <Feature name="adaptive-playback" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.rv.decoder"     type="video/vnd.rn-realvideo">
+            <Limit name="size" min="2x2" max="2048x2048" />
+            <Limit name="alignment" value="2x2" />
+            <Feature name="adaptive-playback" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.vc1.decoder"    type="video/vc1">
+            <Limit name="size" min="2x2" max="2048x2048" />
+            <Limit name="alignment" value="2x2" />
+            <Feature name="adaptive-playback" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.vtrial.decoder" type="video/ffmpeg">
+            <Limit name="size" min="2x2" max="2048x2048" />
+            <Limit name="alignment" value="2x2" />
+            <Feature name="adaptive-playback" />
+        </MediaCodec>
+        <MediaCodec name="OMX.ffmpeg.wmv.decoder"    type="video/x-ms-wmv">
+            <Limit name="size" min="2x2" max="2048x2048" />
+            <Limit name="alignment" value="2x2" />
+            <Feature name="adaptive-playback" />
+        </MediaCodec>
     </Decoders>
 </Included>