• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8" ?>
2<!-- Copyright (C) 2014 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15
16-->
17
18<Included>
19    <Decoders>
20        <MediaCodec name="OMX.google.mp3.decoder" type="audio/mpeg">
21            <Limit name="channel-count" max="2" />
22            <Limit name="sample-rate" ranges="8000,11025,12000,16000,22050,24000,32000,44100,48000" />
23            <Limit name="bitrate" range="8000-320000" />
24        </MediaCodec>
25        <MediaCodec name="OMX.google.amrnb.decoder" type="audio/3gpp">
26            <Limit name="channel-count" max="1" />
27            <Limit name="sample-rate" ranges="8000" />
28            <Limit name="bitrate" range="4750-12200" />
29        </MediaCodec>
30        <MediaCodec name="OMX.google.amrwb.decoder" type="audio/amr-wb">
31            <Limit name="channel-count" max="1" />
32            <Limit name="sample-rate" ranges="16000" />
33            <Limit name="bitrate" range="6600-23850" />
34        </MediaCodec>
35        <MediaCodec name="OMX.google.aac.decoder" type="audio/mp4a-latm">
36            <Limit name="channel-count" max="8" />
37            <Limit name="sample-rate" ranges="7350,8000,11025,12000,16000,22050,24000,32000,44100,48000" />
38            <Limit name="bitrate" range="8000-960000" />
39        </MediaCodec>
40        <MediaCodec name="OMX.google.xaac.decoder" type="audio/mp4a-latm">
41            <Limit name="channel-count" max="8" />
42            <Limit name="sample-rate" ranges="7350,8000,11025,12000,16000,22050,24000,32000,44100,48000" />
43            <Limit name="bitrate" range="8000-960000" />
44        </MediaCodec>
45        <MediaCodec name="OMX.google.g711.alaw.decoder" type="audio/g711-alaw">
46            <Limit name="channel-count" max="1" />
47            <Limit name="sample-rate" ranges="8000-48000" />
48            <Limit name="bitrate" range="64000" />
49        </MediaCodec>
50        <MediaCodec name="OMX.google.g711.mlaw.decoder" type="audio/g711-mlaw">
51            <Limit name="channel-count" max="1" />
52            <Limit name="sample-rate" ranges="8000-48000" />
53            <Limit name="bitrate" range="64000" />
54        </MediaCodec>
55        <MediaCodec name="OMX.google.vorbis.decoder" type="audio/vorbis">
56            <Limit name="channel-count" max="8" />
57            <Limit name="sample-rate" ranges="8000-96000" />
58            <Limit name="bitrate" range="32000-500000" />
59        </MediaCodec>
60        <MediaCodec name="OMX.google.opus.decoder" type="audio/opus">
61            <Limit name="channel-count" max="8" />
62            <Limit name="sample-rate" ranges="48000" />
63            <Limit name="bitrate" range="6000-510000" />
64        </MediaCodec>
65        <MediaCodec name="OMX.google.raw.decoder" type="audio/raw">
66            <Limit name="channel-count" max="8" />
67            <Limit name="sample-rate" ranges="8000-96000" />
68            <Limit name="bitrate" range="1-10000000" />
69        </MediaCodec>
70        <MediaCodec name="OMX.google.flac.decoder" type="audio/flac">
71            <Limit name="channel-count" max="8" />
72            <Limit name="sample-rate" ranges="1-655350" />
73            <Limit name="bitrate" range="1-21000000" />
74        </MediaCodec>
75    </Decoders>
76    <Encoders>
77        <MediaCodec name="OMX.google.aac.encoder" type="audio/mp4a-latm">
78            <Limit name="channel-count" max="6" />
79            <Limit name="sample-rate" ranges="8000,11025,12000,16000,22050,24000,32000,44100,48000" />
80            <!-- also may support 64000, 88200  and 96000 Hz -->
81            <Limit name="bitrate" range="8000-960000" />
82        </MediaCodec>
83        <MediaCodec name="OMX.google.amrnb.encoder" type="audio/3gpp">
84            <Limit name="channel-count" max="1" />
85            <Limit name="sample-rate" ranges="8000" />
86            <Limit name="bitrate" range="4750-12200" />
87            <Feature name="bitrate-modes" value="CBR" />
88        </MediaCodec>
89        <MediaCodec name="OMX.google.amrwb.encoder" type="audio/amr-wb">
90            <Limit name="channel-count" max="1" />
91            <Limit name="sample-rate" ranges="16000" />
92            <Limit name="bitrate" range="6600-23850" />
93            <Feature name="bitrate-modes" value="CBR" />
94        </MediaCodec>
95        <MediaCodec name="OMX.google.flac.encoder" type="audio/flac">
96            <Limit name="channel-count" max="2" />
97            <Limit name="sample-rate" ranges="1-655350" />
98            <Limit name="bitrate" range="1-21000000" />
99            <Limit name="complexity" range="0-8"  default="5" />
100            <Feature name="bitrate-modes" value="CQ" />
101        </MediaCodec>
102    </Encoders>
103</Included>
104