mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-30 01:16:27 -08:00
1a1754044a
* References: 1cba75df74
Co-authored-by: electimon <electimon@gmail.com>
Co-authored-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
173 lines
9.5 KiB
XML
173 lines
9.5 KiB
XML
<?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.avc.encoder" type="video/avc" update="true">
|
|
<Limit name="measured-frame-rate-320x240" range="130-286" />
|
|
<Limit name="measured-frame-rate-720x480" range="75-166" />
|
|
<Limit name="measured-frame-rate-1280x720" range="50-111" />
|
|
<Limit name="measured-frame-rate-1920x1080" range="36-80" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.mtk.hevc.encoder" type="video/hevc" update="true">
|
|
<Limit name="measured-frame-rate-320x240" range="129-283" />
|
|
<Limit name="measured-frame-rate-720x480" range="75-166" />
|
|
<Limit name="measured-frame-rate-1280x720" range="51-113" />
|
|
<Limit name="measured-frame-rate-1920x1080" range="44-96" />
|
|
</MediaCodec>
|
|
<!-- Google codec -->
|
|
<MediaCodec name="c2.android.avc.encoder" type="video/avc" update="true">
|
|
<Limit name="measured-frame-rate-320x240" range="101-223" />
|
|
<Limit name="measured-frame-rate-720x480" range="62-136" />
|
|
<Limit name="measured-frame-rate-1280x720" range="21-46" />
|
|
<Limit name="measured-frame-rate-1920x1080" range="13-29" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.android.hevc.encoder" type="video/hevc" update="true">
|
|
<Limit name="measured-frame-rate-320x240" range="20-43" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.android.h263.encoder" type="video/3gpp" update="true">
|
|
<Limit name="measured-frame-rate-176x144" range="265-584" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.android.mpeg4.encoder" type="video/mp4v-es" update="true">
|
|
<Limit name="measured-frame-rate-176x144" range="243-536" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.android.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
|
|
<Limit name="measured-frame-rate-320x180" range="128-281" />
|
|
<Limit name="measured-frame-rate-640x360" range="65-143" />
|
|
<Limit name="measured-frame-rate-1280x720" range="13-29" />
|
|
<Limit name="measured-frame-rate-1920x1080" range="9-20" />
|
|
</MediaCodec>
|
|
</Encoders>
|
|
<Decoders>
|
|
<!-- MTK codec -->
|
|
<MediaCodec name="c2.mtk.mpeg4.decoder" type="video/mp4v-es" update="true">
|
|
<Limit name="measured-frame-rate-176x144" range="350-1056" />
|
|
<Limit name="measured-frame-rate-480x360" range="136-759" />
|
|
<Limit name="measured-frame-rate-1280x720" range="54-119" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.mtk.h263.decoder" type="video/3gpp" update="true">
|
|
<Limit name="measured-frame-rate-176x144" range="274-602" />
|
|
<Limit name="measured-frame-rate-352x288" range="233-513" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.mtk.avc.decoder" type="video/avc" update="true">
|
|
<Limit name="measured-frame-rate-320x240" range="426-938" />
|
|
<Limit name="measured-frame-rate-720x480" range="193-424" />
|
|
<Limit name="measured-frame-rate-1280x720" range="138-304" />
|
|
<Limit name="measured-frame-rate-1920x1080" range="55-122" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.mtk.hevc.decoder" type="video/hevc" update="true">
|
|
<Limit name="measured-frame-rate-352x288" range="484-1065" />
|
|
<Limit name="measured-frame-rate-640x360" range="362-796" />
|
|
<Limit name="measured-frame-rate-720x480" range="241-530" />
|
|
<Limit name="measured-frame-rate-1280x720" range="184-405" />
|
|
<Limit name="measured-frame-rate-1920x1080" range="69-354" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.mtk.vpx.decoder" type="video/x-vnd.on2.vp8" update="true">
|
|
<Limit name="measured-frame-rate-320x180" range="161-355" />
|
|
<Limit name="measured-frame-rate-640x360" range="132-292" />
|
|
<Limit name="measured-frame-rate-1280x720" range="65-142" />
|
|
<Limit name="measured-frame-rate-1920x1080" range="23-79" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.mtk.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
|
|
<Limit name="measured-frame-rate-320x180" range="237-522" />
|
|
<Limit name="measured-frame-rate-640x360" range="170-373" />
|
|
<Limit name="measured-frame-rate-1280x720" range="89-196" />
|
|
<Limit name="measured-frame-rate-1920x1080" range="55-121" />
|
|
</MediaCodec>
|
|
<!-- Google codec -->
|
|
<MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es" update="true">
|
|
<Limit name="measured-frame-rate-176x144" range="359-790" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.android.h263.decoder" type="video/3gpp" update="true">
|
|
<Limit name="measured-frame-rate-176x144" range="313-688" />
|
|
<Limit name="measured-frame-rate-352x288" range="128-297" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.android.avc.decoder" type="video/avc" update="true">
|
|
<Limit name="measured-frame-rate-320x240" range="110-243" />
|
|
<Limit name="measured-frame-rate-720x480" range="31-68" />
|
|
<Limit name="measured-frame-rate-1280x720" range="20-44" />
|
|
<Limit name="measured-frame-rate-1920x1080" range="13-28" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.android.hevc.decoder" type="video/hevc" update="true">
|
|
<Limit name="measured-frame-rate-352x288" range="114-250" />
|
|
<Limit name="measured-frame-rate-640x360" range="59-129" />
|
|
<Limit name="measured-frame-rate-720x480" range="57-125" />
|
|
<Limit name="measured-frame-rate-1280x720" range="21-46" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.android.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
|
|
<Limit name="measured-frame-rate-320x180" range="345-760" />
|
|
<Limit name="measured-frame-rate-640x360" range="185-406" />
|
|
<Limit name="measured-frame-rate-1280x720" range="49-107" />
|
|
<Limit name="measured-frame-rate-1920x1080" range="20-43" />
|
|
</MediaCodec>
|
|
<MediaCodec name="c2.android.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
|
|
<Limit name="measured-frame-rate-320x180" range="201-442" />
|
|
<Limit name="measured-frame-rate-640x360" range="89-195" />
|
|
<Limit name="measured-frame-rate-1280x720" range="52-115" />
|
|
<Limit name="measured-frame-rate-1920x1080" range="29-64" />
|
|
</MediaCodec>
|
|
</Decoders>
|
|
</MediaCodecs>
|