add system files
[GitHub/Stricted/sm-g903f-system.git] / etc / media_codecs_google_video.xml
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 <Included>
18 <Decoders>
19 <!-- MSRND (MPEG2 decoder is disabled due to license issue)
20 <MediaCodec name="OMX.google.mpeg2.decoder" type="video/mpeg2">
21 <Limit name="size" min="16x16" max="1920x1088" />
22 <Limit name="alignment" value="2x2" />
23 <Limit name="block-size" value="16x16" />
24 <Limit name="blocks-per-second" range="1-244800" />
25 <Limit name="bitrate" range="1-20000000" />
26 <Feature name="adaptive-playback" />
27 </MediaCodec>
28 -->
29 <!-- MSRND (Ignore QCOM code.)
30 <MediaCodec name="OMX.google.mpeg4.decoder">
31 <Type name="video/mp4v-es" />
32 -->
33 <!--
34 Use Google mpeg4 decoder for mpeg4 DP content which is not
35 supported by HW. A component can be used to support several
36 mimetypes, so non-DP mpeg4 usecases will not be affected by this.
37 -->
38 <!-- MSRND (Ignore QCOM code.)
39 <Type name="video/mp4v-esdp" />
40 -->
41 <MediaCodec name="OMX.google.mpeg4.decoder" type="video/mp4v-es">
42 <!-- profiles and levels: ProfileSimple : Level3 -->
43 <Limit name="size" min="2x2" max="352x288" />
44 <Limit name="alignment" value="2x2" />
45 <Limit name="block-size" value="16x16" />
46 <Limit name="blocks-per-second" range="12-11880" />
47 <Limit name="bitrate" range="1-384000" />
48 <Feature name="adaptive-playback" />
49 </MediaCodec>
50 <MediaCodec name="OMX.google.h263.decoder" type="video/3gpp">
51 <!-- profiles and levels: ProfileBaseline : Level30, ProfileBaseline : Level45
52 ProfileISWV2 : Level30, ProfileISWV2 : Level45 -->
53 <Limit name="size" min="2x2" max="352x288" />
54 <Limit name="alignment" value="2x2" />
55 <Limit name="bitrate" range="1-384000" />
56 <Feature name="adaptive-playback" />
57 </MediaCodec>
58 <MediaCodec name="OMX.google.h264.decoder" type="video/avc">
59 <!-- profiles and levels: ProfileHigh : Level41 -->
60 <Limit name="size" min="16x16" max="1920x1088" />
61 <Limit name="alignment" value="2x2" />
62 <Limit name="block-size" value="16x16" />
63 <Limit name="blocks-per-second" range="1-244800" />
64 <Limit name="bitrate" range="1-12000000" />
65 <Feature name="adaptive-playback" />
66 </MediaCodec>
67 <MediaCodec name="OMX.google.hevc.decoder" type="video/hevc">
68 <!-- profiles and levels: ProfileMain : MainTierLevel51 -->
69 <Limit name="size" min="2x2" max="2048x2048" />
70 <Limit name="alignment" value="2x2" />
71 <Limit name="block-size" value="8x8" />
72 <Limit name="block-count" range="1-139264" />
73 <Limit name="blocks-per-second" range="1-2000000" />
74 <Limit name="bitrate" range="1-10000000" />
75 <Feature name="adaptive-playback" />
76 </MediaCodec>
77 <MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8">
78 <Limit name="size" min="2x2" max="2048x2048" />
79 <Limit name="alignment" value="2x2" />
80 <Limit name="block-size" value="16x16" />
81 <Limit name="blocks-per-second" range="1-1000000" />
82 <Limit name="bitrate" range="1-40000000" />
83 <Feature name="adaptive-playback" />
84 </MediaCodec>
85 <MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9">
86 <Limit name="size" min="2x2" max="2048x2048" />
87 <Limit name="alignment" value="2x2" />
88 <Limit name="block-size" value="16x16" />
89 <Limit name="blocks-per-second" range="1-500000" />
90 <Limit name="bitrate" range="1-40000000" />
91 <Feature name="adaptive-playback" />
92 </MediaCodec>
93 </Decoders>
94
95 <Encoders>
96 <MediaCodec name="OMX.google.h263.encoder" type="video/3gpp">
97 <!-- profiles and levels: ProfileBaseline : Level45 -->
98 <Limit name="size" min="176x144" max="176x144" />
99 <Limit name="alignment" value="16x16" />
100 <Limit name="bitrate" range="1-128000" />
101 </MediaCodec>
102 <MediaCodec name="OMX.google.h264.encoder" type="video/avc">
103 <!-- profiles and levels: ProfileBaseline : Level41 -->
104 <Limit name="size" min="16x16" max="1920x1088" />
105 <Limit name="alignment" value="2x2" />
106 <Limit name="block-size" value="16x16" />
107 <Limit name="blocks-per-second" range="1-244800" />
108 <Limit name="bitrate" range="1-12000000" />
109 </MediaCodec>
110 <MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es">
111 <!-- profiles and levels: ProfileCore : Level2 -->
112 <Limit name="size" min="16x16" max="176x144" />
113 <Limit name="alignment" value="16x16" />
114 <Limit name="block-size" value="16x16" />
115 <Limit name="blocks-per-second" range="12-1485" />
116 <Limit name="bitrate" range="1-64000" />
117 </MediaCodec>
118 <MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8">
119 <!-- profiles and levels: ProfileMain : Level_Version0-3 -->
120 <Limit name="size" min="2x2" max="2048x2048" />
121 <Limit name="alignment" value="2x2" />
122 <Limit name="bitrate" range="1-40000000" />
123 <Feature name="bitrate-modes" value="VBR,CBR" />
124 </MediaCodec>
125 </Encoders>
126 </Included>