Advertisement
cnxsoft

Allwinner A83T media_codec.xml

Dec 7th, 2014
659
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.94 KB | None | 0 0
  1. shell@C2107:/ $ cat /etc/media_codecs.xml                                      
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!-- Copyright (C) 2012 The Android Open Source Project
  4.  
  5.     Licensed under the Apache License, Version 2.0 (the "License");
  6.     you may not use this file except in compliance with the License.
  7.     You may obtain a copy of the License at
  8.  
  9.          http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.     Unless required by applicable law or agreed to in writing, software
  12.     distributed under the License is distributed on an "AS IS" BASIS,
  13.     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.     See the License for the specific language governing permissions and
  15.     limitations under the License.
  16. -->
  17.  
  18. <!--
  19. <!DOCTYPE MediaCodecs [
  20. <!ELEMENT MediaCodecs (Decoders,Encoders)>
  21. <!ELEMENT Decoders (MediaCodec*)>
  22. <!ELEMENT Encoders (MediaCodec*)>
  23. <!ELEMENT MediaCodec (Type*,Quirk*)>
  24. <!ATTLIST MediaCodec name CDATA #REQUIRED>
  25. <!ATTLIST MediaCodec type CDATA>
  26. <!ELEMENT Type EMPTY>
  27. <!ATTLIST Type name CDATA #REQUIRED>
  28. <!ELEMENT Quirk EMPTY>
  29. <!ATTLIST Quirk name CDATA #REQUIRED>
  30. ]>
  31.  
  32. There's a simple and a complex syntax to declare the availability of a
  33. media codec:
  34.  
  35. A codec that properly follows the OpenMax spec and therefore doesn't have any
  36. quirks and that only supports a single content type can be declared like so:
  37.  
  38.    <MediaCodec name="OMX.foo.bar" type="something/interesting" />
  39.  
  40. If a codec has quirks OR supports multiple content types, the following syntax
  41. can be used:
  42.  
  43.    <MediaCodec name="OMX.foo.bar" >
  44.        <Type name="something/interesting" />
  45.        <Type name="something/else" />
  46.        ...
  47.        <Quirk name="requires-allocate-on-input-ports" />
  48.        <Quirk name="requires-allocate-on-output-ports" />
  49.        <Quirk name="output-buffers-are-unreadable" />
  50.    </MediaCodec>
  51.  
  52. Only the three quirks included above are recognized at this point:
  53.  
  54. "requires-allocate-on-input-ports"
  55.    must be advertised if the component does not properly support specification
  56.    of input buffers using the OMX_UseBuffer(...) API but instead requires
  57.    OMX_AllocateBuffer to be used.
  58.  
  59. "requires-allocate-on-output-ports"
  60.    must be advertised if the component does not properly support specification
  61.    of output buffers using the OMX_UseBuffer(...) API but instead requires
  62.    OMX_AllocateBuffer to be used.
  63.  
  64. "output-buffers-are-unreadable"
  65.    must be advertised if the emitted output buffers of a decoder component
  66.    are not readable, i.e. use a custom format even though abusing one of
  67.    the official OMX colorspace constants.
  68.    Clients of such decoders will not be able to access the decoded data,
  69.    naturally making the component much less useful. The only use for
  70.    a component with this quirk is to render the output to the screen.
  71.    Audio decoders MUST NOT advertise this quirk.
  72.    Video decoders that advertise this quirk must be accompanied by a
  73.    corresponding color space converter for thumbnail extraction,
  74.    matching surfaceflinger support that can render the custom format to
  75.    a texture and possibly other code, so just DON'T USE THIS QUIRK.
  76.  
  77. -->
  78.  
  79. <!--
  80.        <MediaCodec name="OMX.TI.DUCATI1.VIDEO.DECODER" >
  81.            <Type name="video/mp4v-es" />
  82.            <Type name="video/3gpp" />
  83.            <Type name="video/avc" />
  84.            <Quirk name="requires-allocate-on-input-ports" />
  85.            <Quirk name="requires-allocate-on-output-ports" />
  86.        </MediaCodec>
  87.        
  88.        <MediaCodec name="OMX.google.mpeg4.decoder" type="video/mp4v-es" />
  89.        <MediaCodec name="OMX.google.h263.decoder" type="video/3gpp" />
  90.        <MediaCodec name="OMX.google.h264.decoder" type="video/avc" />
  91.        <MediaCodec name="OMX.google.vpx.decoder" type="video/x-vnd.on2.vp8" />
  92. -->
  93. <MediaCodecs>
  94.     <Decoders>
  95.         <MediaCodec name="OMX.allwinner.video.decoder.mjpeg"   type="video/jpeg" />        
  96.         <MediaCodec name="OMX.allwinner.video.decoder.mpeg1"   type="video/mpeg1" />
  97.                 <MediaCodec name="OMX.allwinner.video.decoder.mpeg2"   type="video/mpeg2" />
  98.         <MediaCodec name="OMX.allwinner.video.decoder.mpeg4"   type="video/mp4v-es" />
  99.         <MediaCodec name="OMX.allwinner.video.decoder.msmpeg4v1"   type="video/x-ms-mpeg4v1" />
  100.         <MediaCodec name="OMX.allwinner.video.decoder.msmpeg4v2"   type="video/x-ms-mpeg4v2" />
  101.         <MediaCodec name="OMX.allwinner.video.decoder.divx"    type="video/divx" />
  102.         <MediaCodec name="OMX.allwinner.video.decoder.xvid"    type="video/xvid" />    
  103.         <MediaCodec name="OMX.allwinner.video.decoder.h263"    type="video/3gpp" />
  104.         <MediaCodec name="OMX.allwinner.video.decoder.s263"    type="video/flv1" />
  105.         <MediaCodec name="OMX.allwinner.video.decoder.rxg2"    type="video/rvg2" />
  106.         <MediaCodec name="OMX.allwinner.video.decoder.wmv1"    type="video/wmv1" />
  107.         <MediaCodec name="OMX.allwinner.video.decoder.wmv2"    type="video/wmv2" />
  108.         <MediaCodec name="OMX.allwinner.video.decoder.vc1"     type="video/x-ms-wmv" />
  109.         <MediaCodec name="OMX.allwinner.video.decoder.vp6"     type="video/x-vnd.on2.vp6" />
  110.         <MediaCodec name="OMX.allwinner.video.decoder.vp8"     type="video/x-vnd.on2.vp8" />
  111.         <MediaCodec name="OMX.allwinner.video.decoder.vp9"     type="video/x-vnd.on2.vp9" />       
  112.         <MediaCodec name="OMX.allwinner.video.decoder.avc"     type="video/avc" />
  113.         <MediaCodec name="OMX.allwinner.video.decoder.hevc"    type="video/hevc" />
  114.         <!--the next three codecs named by ourself -->
  115.        
  116.  
  117.        
  118.        
  119.         <!--
  120.         <MediaCodec name="OMX.google.h263.decoder" type="video/3gpp" />
  121.         <MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" />
  122.         -->
  123.         <MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9" />
  124.        
  125.         <MediaCodec name="OMX.google.mp3.decoder" type="audio/mpeg" />
  126.         <MediaCodec name="OMX.google.amrnb.decoder" type="audio/3gpp" />
  127.         <MediaCodec name="OMX.google.amrwb.decoder" type="audio/amr-wb" />
  128.         <MediaCodec name="OMX.google.aac.decoder" type="audio/mp4a-latm" />
  129.         <MediaCodec name="OMX.google.g711.alaw.decoder" type="audio/g711-alaw" />
  130.         <MediaCodec name="OMX.google.g711.mlaw.decoder" type="audio/g711-mlaw" />
  131.         <MediaCodec name="OMX.google.vorbis.decoder" type="audio/vorbis" />
  132.     <MediaCodec name="OMX.google.raw.decoder" type="audio/raw" />  
  133.  
  134.     </Decoders>
  135.  
  136.     <Encoders>
  137.         <MediaCodec name="OMX.allwinner.video.encoder.avc" type="video/avc" />
  138.         <MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" />
  139.         <MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es" />        
  140.         <MediaCodec name="OMX.google.amrnb.encoder" type="audio/3gpp" />
  141.         <MediaCodec name="OMX.google.amrwb.encoder" type="audio/amr-wb" />
  142.         <MediaCodec name="OMX.google.aac.encoder" type="audio/mp4a-latm" />
  143.         <MediaCodec name="OMX.google.flac.encoder" type="audio/flac" />
  144.         <MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8" />
  145.     </Encoders>
  146. </MediaCodecs>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement