init
This commit is contained in:
commit
8710a52d67
123 changed files with 20007 additions and 0 deletions
161
configs/media/media_codecs_c2.xml
Normal file
161
configs/media/media_codecs_c2.xml
Normal file
|
@ -0,0 +1,161 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<MediaCodecs>
|
||||
<Settings>
|
||||
<!-- disable TV and telephony domains by default. These must be opted in by OEMs -->
|
||||
<Domain name="telephony" enabled="false" />
|
||||
<Domain name="tv" enabled="false" />
|
||||
<Variant name="slow-cpu" enabled="false" />
|
||||
</Settings>
|
||||
<Decoders>
|
||||
<MediaCodec name="c2.mtk.adpcm-ms.decoder" type="audio/x-adpcm-ms">
|
||||
<Alias name="OMX.MTK.AUDIO.DECODER.ADPCM.MS" />
|
||||
<Limit name="channel-count" max="8" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.adpcm-dvi-ima.decoder" type="audio/x-adpcm-dvi-ima">
|
||||
<Alias name="OMX.MTK.AUDIO.DECODER.ADPCM.DVI" />
|
||||
<Limit name="channel-count" max="8" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.ape.decoder" type="audio/ape">
|
||||
<Alias name="OMX.MTK.AUDIO.DECODER.APE" />
|
||||
<Limit name="channel-count" max="2" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.alac.decoder" type="audio/alac">
|
||||
<Alias name="OMX.MTK.AUDIO.DECODER.ALAC" />
|
||||
<Limit name="channel-count" max="8" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.wma.decoder" type="audio/x-ms-wma">
|
||||
<Alias name="OMX.MTK.AUDIO.DECODER.WMA" />
|
||||
<Limit name="channel-count" max="2" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.mp3.decoder" type="audio/mpeg" rank="5">
|
||||
<Alias name="OMX.MTK.AUDIO.DECODER.MP3" />
|
||||
<Limit name="channel-count" max="2" />
|
||||
<Limit name="sample-rate" ranges="8000,11025,12000,16000,22050,24000,32000,44100,48000" />
|
||||
<Limit name="bitrate" range="8000-320000" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.hevc.decoder" type="video/hevc" >
|
||||
<Alias name="OMX.MTK.VIDEO.DECODER.HEVC" />
|
||||
<Limit name="size" min="16x16" max="2560x1440" />
|
||||
<Feature name="adaptive-playback"/>
|
||||
<Limit name="concurrent-instances" max="15" />
|
||||
<Limit name="performance-point-1920x1080" value="30" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.hevc.decoder.secure" type="video/hevc" >
|
||||
<Alias name="OMX.MTK.VIDEO.DECODER.HEVC.secure" />
|
||||
<Limit name="size" min="16x16" max="2560x1440" />
|
||||
<Quirk name="wants-NAL-fragments" />
|
||||
<Feature name="secure-playback" required="true" />
|
||||
<Feature name="adaptive-playback"/>
|
||||
<Limit name="concurrent-instances" max="15" />
|
||||
<Limit name="performance-point-1920x1080" value="30" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.mpeg4.decoder" type="video/mp4v-es" >
|
||||
<Alias name="OMX.MTK.VIDEO.DECODER.MPEG4" />
|
||||
<Limit name="size" min="16x16" max="2048x1088" />
|
||||
<Feature name="adaptive-playback"/>
|
||||
<Limit name="concurrent-instances" max="15" />
|
||||
<Limit name="performance-point-1920x1080" value="30" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.h263.decoder" type="video/3gpp" >
|
||||
<Alias name="OMX.MTK.VIDEO.DECODER.H263" />
|
||||
<Limit name="size" min="128x96" max="1408x1152" />
|
||||
<Feature name="adaptive-playback"/>
|
||||
<Limit name="concurrent-instances" max="15" />
|
||||
<Limit name="performance-point-1280x720" value="30" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.avc.decoder" type="video/avc" >
|
||||
<Alias name="OMX.MTK.VIDEO.DECODER.AVC" />
|
||||
<Limit name="size" min="64x64" max="2560x1440" />
|
||||
<Quirk name="wants-NAL-fragments" />
|
||||
<Feature name="adaptive-playback"/>
|
||||
<Limit name="concurrent-instances" max="15" />
|
||||
<Limit name="performance-point-1920x1080" value="30" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.avc.decoder.secure" type="video/avc" >
|
||||
<Alias name="OMX.MTK.VIDEO.DECODER.AVC.secure" />
|
||||
<Limit name="size" min="64x64" max="2560x1440" />
|
||||
<Quirk name="wants-NAL-fragments" />
|
||||
<Feature name="secure-playback" required="true" />
|
||||
<Feature name="adaptive-playback"/>
|
||||
<Limit name="concurrent-instances" max="15" />
|
||||
<Limit name="performance-point-1920x1080" value="30" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.heif.decoder" type="image/vnd.android.heic" >
|
||||
<Alias name="OMX.MTK.VIDEO.DECODER.HEIF" />
|
||||
<Limit name="size" min="16x16" max="16383x16383" />
|
||||
<Feature name="adaptive-playback"/>
|
||||
<Limit name="concurrent-instances" max="15" />
|
||||
<Limit name="performance-point-3840x2160" value="30" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.vp9.decoder" type="video/x-vnd.on2.vp9" >
|
||||
<Alias name="OMX.MTK.VIDEO.DECODER.VP9" />
|
||||
<Limit name="size" min="16x16" max="2560x1440" />
|
||||
<Feature name="adaptive-playback"/>
|
||||
<Limit name="concurrent-instances" max="15" />
|
||||
<Limit name="performance-point-1920x1080" value="30" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.vp9.decoder.secure" type="video/x-vnd.on2.vp9" >
|
||||
<Alias name="OMX.MTK.VIDEO.DECODER.VP9.secure" />
|
||||
<Limit name="size" min="16x16" max="2560x1440" />
|
||||
<Quirk name="wants-NAL-fragments" />
|
||||
<Feature name="secure-playback" required="true" />
|
||||
<Feature name="adaptive-playback"/>
|
||||
<Limit name="concurrent-instances" max="15" />
|
||||
<Limit name="performance-point-1920x1080" value="30" />
|
||||
</MediaCodec>
|
||||
</Decoders>
|
||||
<Encoders>
|
||||
<MediaCodec name="c2.mtk.avc.encoder" type="video/avc" >
|
||||
<Alias name="OMX.MTK.VIDEO.ENCODER.AVC" />
|
||||
<Limit name="size" min="160x160" max="2560x1440" />
|
||||
<Limit name="alignment" value="16x16" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="concurrent-instances" max="10" />
|
||||
<Limit name="performance-point-1920x1080" value="30" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.avc.encoder.secure" type="video/avc" >
|
||||
<Limit name="size" min="160x128" max="1920x1088" />
|
||||
<Limit name="alignment" value="16x16" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="concurrent-instances" max="10" />
|
||||
<Limit name="performance-point-1920x1088" value="30" />
|
||||
<Feature name="special-codec" required="true" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.hevc.encoder" type="video/hevc" >
|
||||
<Alias name="OMX.MTK.VIDEO.ENCODER.HEVC" />
|
||||
<Limit name="size" min="160x128" max="2560x1440" />
|
||||
<Limit name="alignment" value="16x16" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="quality" range="0-100" default="50" />
|
||||
<Limit name="concurrent-instances" max="10" />
|
||||
<Feature name="bitrate-modes" value="VBR,CBR,CQ" />
|
||||
<Limit name="performance-point-1920x1080" value="30" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.heif.encoder" type="image/vnd.android.heic" >
|
||||
<Limit name="size" min="160x128" max="16383x16383" />
|
||||
<Limit name="alignment" value="16x16" />
|
||||
<Limit name="block-size" value="16x16" />
|
||||
<Limit name="quality" range="0-100" default="50" />
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Limit name="concurrent-instances" max="2" />
|
||||
<Feature name="bitrate-modes" value="VBR,CBR,CQ" />
|
||||
<Limit name="performance-point-3840x2160" value="30" />
|
||||
</MediaCodec>
|
||||
</Encoders>
|
||||
</MediaCodecs>
|
131
configs/media/media_codecs_performance.xml
Normal file
131
configs/media/media_codecs_performance.xml
Normal file
|
@ -0,0 +1,131 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright (C) 2012 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<!--
|
||||
<!DOCTYPE MediaCodecs [
|
||||
<!ELEMENT MediaCodecs (Decoders,Encoders)>
|
||||
<!ELEMENT Decoders (MediaCodec*)>
|
||||
<!ELEMENT Encoders (MediaCodec*)>
|
||||
<!ELEMENT MediaCodec (Type*,Quirk*)>
|
||||
<!ATTLIST MediaCodec name CDATA #REQUIRED>
|
||||
<!ATTLIST MediaCodec type CDATA>
|
||||
<!ELEMENT Type EMPTY>
|
||||
<!ATTLIST Type name CDATA #REQUIRED>
|
||||
<!ELEMENT Quirk EMPTY>
|
||||
<!ATTLIST Quirk name CDATA #REQUIRED>
|
||||
]>
|
||||
|
||||
There's a simple and a complex syntax to declare the availability of a
|
||||
media codec:
|
||||
|
||||
A codec that properly follows the OpenMax spec and therefore doesn't have any
|
||||
quirks and that only supports a single content type can be declared like so:
|
||||
|
||||
<MediaCodec name="OMX.foo.bar" type="something/interesting" />
|
||||
|
||||
If a codec has quirks OR supports multiple content types, the following syntax
|
||||
can be used:
|
||||
|
||||
<MediaCodec name="OMX.foo.bar" >
|
||||
<Type name="something/interesting" />
|
||||
<Type name="something/else" />
|
||||
...
|
||||
<Quirk name="requires-allocate-on-input-ports" />
|
||||
<Quirk name="requires-allocate-on-output-ports" />
|
||||
<Quirk name="output-buffers-are-unreadable" />
|
||||
</MediaCodec>
|
||||
|
||||
Only the three quirks included above are recognized at this point:
|
||||
|
||||
"requires-allocate-on-input-ports"
|
||||
must be advertised if the component does not properly support specification
|
||||
of input buffers using the OMX_UseBuffer(...) API but instead requires
|
||||
OMX_AllocateBuffer to be used.
|
||||
|
||||
"requires-allocate-on-output-ports"
|
||||
must be advertised if the component does not properly support specification
|
||||
of output buffers using the OMX_UseBuffer(...) API but instead requires
|
||||
OMX_AllocateBuffer to be used.
|
||||
|
||||
"output-buffers-are-unreadable"
|
||||
must be advertised if the emitted output buffers of a decoder component
|
||||
are not readable, i.e. use a custom format even though abusing one of
|
||||
the official OMX colorspace constants.
|
||||
Clients of such decoders will not be able to access the decoded data,
|
||||
naturally making the component much less useful. The only use for
|
||||
a component with this quirk is to render the output to the screen.
|
||||
Audio decoders MUST NOT advertise this quirk.
|
||||
Video decoders that advertise this quirk must be accompanied by a
|
||||
corresponding color space converter for thumbnail extraction,
|
||||
matching surfaceflinger support that can render the custom format to
|
||||
a texture and possibly other code, so just DON'T USE THIS QUIRK.
|
||||
|
||||
2012/07/13 config for MTK OMX Media Codecs, created by Morris Yang (mtk03147)
|
||||
-->
|
||||
|
||||
<MediaCodecs>
|
||||
<Encoders>
|
||||
<!-- MTK codec -->
|
||||
<MediaCodec name="c2.mtk.mpeg4.encoder" type="video/mp4v-es" update="true">
|
||||
<Limit name="measured-frame-rate-176x144" range="156-343" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.h263.encoder" type="video/3gpp" update="true">
|
||||
<Limit name="measured-frame-rate-176x144" range="79-174" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.avc.encoder" type="video/avc" update="true">
|
||||
<Limit name="measured-frame-rate-320x240" range="97-214" />
|
||||
<Limit name="measured-frame-rate-720x480" range="62-137" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="40-88" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="30-66" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.hevc.encoder" type="video/hevc" update="true">
|
||||
<Limit name="measured-frame-rate-320x240" range="97-214" />
|
||||
<Limit name="measured-frame-rate-720x480" range="61-135" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="41-91" />
|
||||
</MediaCodec>
|
||||
</Encoders>
|
||||
<Decoders>
|
||||
<!-- MTK codec -->
|
||||
<MediaCodec name="c2.mtk.mpeg4.decoder" type="video/mp4v-es" update="true">
|
||||
<Limit name="measured-frame-rate-176x144" range="144-318" />
|
||||
<Limit name="measured-frame-rate-480x360" range="118-260" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="61-134" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.h263.decoder" type="video/3gpp" update="true">
|
||||
<Limit name="measured-frame-rate-176x144" range="145-320" />
|
||||
<Limit name="measured-frame-rate-352x288" range="130-286" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.avc.decoder" type="video/avc" update="true">
|
||||
<Limit name="measured-frame-rate-320x240" range="158-349" />
|
||||
<Limit name="measured-frame-rate-720x480" range="156-343" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="111-244" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="69-152" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.hevc.decoder" type="video/hevc" update="true">
|
||||
<Limit name="measured-frame-rate-352x288" range="181-398" />
|
||||
<Limit name="measured-frame-rate-640x360" range="177-391" />
|
||||
<Limit name="measured-frame-rate-720x480" range="169-372" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="128-282" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="79-174" />
|
||||
</MediaCodec>
|
||||
<MediaCodec name="c2.mtk.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
|
||||
<Limit name="measured-frame-rate-320x180" range="142-312" />
|
||||
<Limit name="measured-frame-rate-640x360" range="120-265" />
|
||||
<Limit name="measured-frame-rate-1280x720" range="76-167" />
|
||||
<Limit name="measured-frame-rate-1920x1080" range="56-124" />
|
||||
</MediaCodec>
|
||||
</Decoders>
|
||||
</MediaCodecs>
|
1679
configs/media/media_profiles_V1_0.xml
Normal file
1679
configs/media/media_profiles_V1_0.xml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue