Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
anbox
提交
9920d498
A
anbox
项目概览
openeuler
/
anbox
通知
24
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
anbox
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
9920d498
编写于
9月 15, 2018
作者:
S
Simon Fels
提交者:
GitHub
9月 15, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #914 from eMPee584/fix_media_codex
Fix media codecs
上级
104a3203
05cb1a60
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
280 addition
and
2 deletion
+280
-2
android/media/media_codecs.xml
android/media/media_codecs.xml
+1
-0
android/media/media_codecs_google_audio.xml
android/media/media_codecs_google_audio.xml
+97
-0
android/media/media_codecs_google_telephony.xml
android/media/media_codecs_google_telephony.xml
+25
-0
android/media/media_codecs_google_tv.xml
android/media/media_codecs_google_tv.xml
+29
-0
android/media/media_codecs_google_video.xml
android/media/media_codecs_google_video.xml
+122
-0
android/media/media_profiles.xml
android/media/media_profiles.xml
+0
-0
products/anbox.mk
products/anbox.mk
+6
-2
未找到文件。
android/
camer
a/media_codecs.xml
→
android/
medi
a/media_codecs.xml
浏览文件 @
9920d498
...
@@ -80,5 +80,6 @@ Only the three quirks included above are recognized at this point:
...
@@ -80,5 +80,6 @@ Only the three quirks included above are recognized at this point:
<MediaCodecs>
<MediaCodecs>
<Include
href=
"media_codecs_google_audio.xml"
/>
<Include
href=
"media_codecs_google_audio.xml"
/>
<Include
href=
"media_codecs_google_telephony.xml"
/>
<Include
href=
"media_codecs_google_telephony.xml"
/>
<Include
href=
"media_codecs_google_tv.xml"
/>
<Include
href=
"media_codecs_google_video.xml"
/>
<Include
href=
"media_codecs_google_video.xml"
/>
</MediaCodecs>
</MediaCodecs>
android/media/media_codecs_google_audio.xml
0 → 100644
浏览文件 @
9920d498
<?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.
-->
<Included>
<Decoders>
<MediaCodec
name=
"OMX.google.mp3.decoder"
type=
"audio/mpeg"
>
<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=
"OMX.google.amrnb.decoder"
type=
"audio/3gpp"
>
<Limit
name=
"channel-count"
max=
"1"
/>
<Limit
name=
"sample-rate"
ranges=
"8000"
/>
<Limit
name=
"bitrate"
range=
"4750-12200"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.amrwb.decoder"
type=
"audio/amr-wb"
>
<Limit
name=
"channel-count"
max=
"1"
/>
<Limit
name=
"sample-rate"
ranges=
"16000"
/>
<Limit
name=
"bitrate"
range=
"6600-23850"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.aac.decoder"
type=
"audio/mp4a-latm"
>
<Limit
name=
"channel-count"
max=
"8"
/>
<Limit
name=
"sample-rate"
ranges=
"7350,8000,11025,12000,16000,22050,24000,32000,44100,48000"
/>
<Limit
name=
"bitrate"
range=
"8000-960000"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.g711.alaw.decoder"
type=
"audio/g711-alaw"
>
<Limit
name=
"channel-count"
max=
"1"
/>
<Limit
name=
"sample-rate"
ranges=
"8000-48000"
/>
<Limit
name=
"bitrate"
range=
"64000"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.g711.mlaw.decoder"
type=
"audio/g711-mlaw"
>
<Limit
name=
"channel-count"
max=
"1"
/>
<Limit
name=
"sample-rate"
ranges=
"8000-48000"
/>
<Limit
name=
"bitrate"
range=
"64000"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.vorbis.decoder"
type=
"audio/vorbis"
>
<Limit
name=
"channel-count"
max=
"8"
/>
<Limit
name=
"sample-rate"
ranges=
"8000-96000"
/>
<Limit
name=
"bitrate"
range=
"32000-500000"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.opus.decoder"
type=
"audio/opus"
>
<Limit
name=
"channel-count"
max=
"8"
/>
<Limit
name=
"sample-rate"
ranges=
"48000"
/>
<Limit
name=
"bitrate"
range=
"6000-510000"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.raw.decoder"
type=
"audio/raw"
>
<Limit
name=
"channel-count"
max=
"8"
/>
<Limit
name=
"sample-rate"
ranges=
"8000-96000"
/>
<Limit
name=
"bitrate"
range=
"1-10000000"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.flac.decoder"
type=
"audio/flac"
>
<Limit
name=
"channel-count"
max=
"8"
/>
<Limit
name=
"sample-rate"
ranges=
"1-655350"
/>
<Limit
name=
"bitrate"
range=
"1-21000000"
/>
</MediaCodec>
</Decoders>
<Encoders>
<MediaCodec
name=
"OMX.google.aac.encoder"
type=
"audio/mp4a-latm"
>
<Limit
name=
"channel-count"
max=
"6"
/>
<Limit
name=
"sample-rate"
ranges=
"8000,11025,12000,16000,22050,24000,32000,44100,48000"
/>
<!-- also may support 64000, 88200 and 96000 Hz -->
<Limit
name=
"bitrate"
range=
"8000-960000"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.amrnb.encoder"
type=
"audio/3gpp"
>
<Limit
name=
"channel-count"
max=
"1"
/>
<Limit
name=
"sample-rate"
ranges=
"8000"
/>
<Limit
name=
"bitrate"
range=
"4750-12200"
/>
<Feature
name=
"bitrate-modes"
value=
"CBR"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.amrwb.encoder"
type=
"audio/amr-wb"
>
<Limit
name=
"channel-count"
max=
"1"
/>
<Limit
name=
"sample-rate"
ranges=
"16000"
/>
<Limit
name=
"bitrate"
range=
"6600-23850"
/>
<Feature
name=
"bitrate-modes"
value=
"CBR"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.flac.encoder"
type=
"audio/flac"
>
<Limit
name=
"channel-count"
max=
"2"
/>
<Limit
name=
"sample-rate"
ranges=
"1-655350"
/>
<Limit
name=
"bitrate"
range=
"1-21000000"
/>
<Limit
name=
"complexity"
range=
"0-8"
default=
"5"
/>
<Feature
name=
"bitrate-modes"
value=
"CQ"
/>
</MediaCodec>
</Encoders>
</Included>
android/media/media_codecs_google_telephony.xml
0 → 100644
浏览文件 @
9920d498
<?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.
-->
<Included>
<Decoders>
<MediaCodec
name=
"OMX.google.gsm.decoder"
type=
"audio/gsm"
>
<Limit
name=
"channel-count"
max=
"1"
/>
<Limit
name=
"sample-rate"
ranges=
"8000"
/>
<Limit
name=
"bitrate"
range=
"13000"
/>
</MediaCodec>
</Decoders>
</Included>
android/media/media_codecs_google_tv.xml
0 → 100644
浏览文件 @
9920d498
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (C) 2015 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.
-->
<Included>
<Decoders>
<MediaCodec
name=
"OMX.google.mpeg2.decoder"
type=
"video/mpeg2"
>
<!-- profiles and levels: ProfileMain : LevelHL -->
<Limit
name=
"size"
min=
"16x16"
max=
"1920x1088"
/>
<Limit
name=
"alignment"
value=
"2x2"
/>
<Limit
name=
"block-size"
value=
"16x16"
/>
<Limit
name=
"blocks-per-second"
range=
"1-244800"
/>
<Limit
name=
"bitrate"
range=
"1-20000000"
/>
<Feature
name=
"adaptive-playback"
/>
</MediaCodec>
</Decoders>
</Included>
android/media/media_codecs_google_video.xml
0 → 100644
浏览文件 @
9920d498
<?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.
-->
<Included>
<Decoders>
<MediaCodec
name=
"OMX.google.mpeg4.decoder"
type=
"video/mp4v-es"
>
<!-- profiles and levels: ProfileSimple : Level3 -->
<Limit
name=
"size"
min=
"2x2"
max=
"352x288"
/>
<Limit
name=
"alignment"
value=
"2x2"
/>
<Limit
name=
"block-size"
value=
"16x16"
/>
<Limit
name=
"blocks-per-second"
range=
"12-11880"
/>
<Limit
name=
"bitrate"
range=
"1-384000"
/>
<Feature
name=
"adaptive-playback"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.h263.decoder"
type=
"video/3gpp"
>
<!-- profiles and levels: ProfileBaseline : Level30, ProfileBaseline : Level45
ProfileISWV2 : Level30, ProfileISWV2 : Level45 -->
<Limit
name=
"size"
min=
"2x2"
max=
"352x288"
/>
<Limit
name=
"alignment"
value=
"2x2"
/>
<Limit
name=
"bitrate"
range=
"1-384000"
/>
<Feature
name=
"adaptive-playback"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.h264.decoder"
type=
"video/avc"
>
<!-- profiles and levels: ProfileHigh : Level52 -->
<Limit
name=
"size"
min=
"2x2"
max=
"4080x4080"
/>
<Limit
name=
"alignment"
value=
"2x2"
/>
<Limit
name=
"block-size"
value=
"16x16"
/>
<Limit
name=
"block-count"
range=
"1-32768"
/>
<!-- max 4096x2048 equivalent -->
<Limit
name=
"blocks-per-second"
range=
"1-1966080"
/>
<Limit
name=
"bitrate"
range=
"1-48000000"
/>
<Feature
name=
"adaptive-playback"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.hevc.decoder"
type=
"video/hevc"
>
<!-- profiles and levels: ProfileMain : MainTierLevel51 -->
<Limit
name=
"size"
min=
"2x2"
max=
"4096x4096"
/>
<Limit
name=
"alignment"
value=
"2x2"
/>
<Limit
name=
"block-size"
value=
"8x8"
/>
<Limit
name=
"block-count"
range=
"1-196608"
/>
<!-- max 4096x3072 -->
<Limit
name=
"blocks-per-second"
range=
"1-2000000"
/>
<Limit
name=
"bitrate"
range=
"1-10000000"
/>
<Feature
name=
"adaptive-playback"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.vp8.decoder"
type=
"video/x-vnd.on2.vp8"
>
<Limit
name=
"size"
min=
"2x2"
max=
"2048x2048"
/>
<Limit
name=
"alignment"
value=
"2x2"
/>
<Limit
name=
"block-size"
value=
"16x16"
/>
<Limit
name=
"block-count"
range=
"1-16384"
/>
<Limit
name=
"blocks-per-second"
range=
"1-1000000"
/>
<Limit
name=
"bitrate"
range=
"1-40000000"
/>
<Feature
name=
"adaptive-playback"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.vp9.decoder"
type=
"video/x-vnd.on2.vp9"
>
<Limit
name=
"size"
min=
"2x2"
max=
"2048x2048"
/>
<Limit
name=
"alignment"
value=
"2x2"
/>
<Limit
name=
"block-size"
value=
"16x16"
/>
<Limit
name=
"block-count"
range=
"1-16384"
/>
<Limit
name=
"blocks-per-second"
range=
"1-500000"
/>
<Limit
name=
"bitrate"
range=
"1-40000000"
/>
<Feature
name=
"adaptive-playback"
/>
</MediaCodec>
</Decoders>
<Encoders>
<MediaCodec
name=
"OMX.google.h263.encoder"
type=
"video/3gpp"
>
<!-- profiles and levels: ProfileBaseline : Level45 -->
<Limit
name=
"size"
min=
"176x144"
max=
"176x144"
/>
<Limit
name=
"alignment"
value=
"16x16"
/>
<Limit
name=
"bitrate"
range=
"1-128000"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.h264.encoder"
type=
"video/avc"
>
<!-- profiles and levels: ProfileBaseline : Level41 -->
<Limit
name=
"size"
min=
"16x16"
max=
"2048x2048"
/>
<Limit
name=
"alignment"
value=
"2x2"
/>
<Limit
name=
"block-size"
value=
"16x16"
/>
<Limit
name=
"block-count"
range=
"1-8192"
/>
<!-- max 2048x1024 -->
<Limit
name=
"blocks-per-second"
range=
"1-245760"
/>
<Limit
name=
"bitrate"
range=
"1-12000000"
/>
<Feature
name=
"intra-refresh"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.mpeg4.encoder"
type=
"video/mp4v-es"
>
<!-- profiles and levels: ProfileCore : Level2 -->
<Limit
name=
"size"
min=
"16x16"
max=
"176x144"
/>
<Limit
name=
"alignment"
value=
"16x16"
/>
<Limit
name=
"block-size"
value=
"16x16"
/>
<Limit
name=
"blocks-per-second"
range=
"12-1485"
/>
<Limit
name=
"bitrate"
range=
"1-64000"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.vp8.encoder"
type=
"video/x-vnd.on2.vp8"
>
<!-- profiles and levels: ProfileMain : Level_Version0-3 -->
<Limit
name=
"size"
min=
"2x2"
max=
"2048x2048"
/>
<Limit
name=
"alignment"
value=
"2x2"
/>
<Limit
name=
"block-size"
value=
"16x16"
/>
<!-- 2016 devices can encode at about 10fps at this block count -->
<Limit
name=
"block-count"
range=
"1-16384"
/>
<Limit
name=
"bitrate"
range=
"1-40000000"
/>
<Feature
name=
"bitrate-modes"
value=
"VBR,CBR"
/>
</MediaCodec>
<MediaCodec
name=
"OMX.google.vp9.encoder"
type=
"video/x-vnd.on2.vp9"
>
<!-- profiles and levels: ProfileMain : Level_Version0-3 -->
<Limit
name=
"size"
min=
"2x2"
max=
"2048x2048"
/>
<Limit
name=
"alignment"
value=
"2x2"
/>
<Limit
name=
"block-size"
value=
"16x16"
/>
<!-- 2016 devices can encode at about 8fps at this block count -->
<Limit
name=
"block-count"
range=
"1-3600"
/>
<!-- max 1280x720 -->
<Limit
name=
"bitrate"
range=
"1-40000000"
/>
<Feature
name=
"bitrate-modes"
value=
"VBR,CBR"
/>
</MediaCodec>
</Encoders>
</Included>
android/
camer
a/media_profiles.xml
→
android/
medi
a/media_profiles.xml
浏览文件 @
9920d498
文件已移动
products/anbox.mk
浏览文件 @
9920d498
...
@@ -43,8 +43,12 @@ PRODUCT_COPY_FILES += \
...
@@ -43,8 +43,12 @@ PRODUCT_COPY_FILES += \
vendor/anbox/android/init.goldfish.rc:root/init.goldfish.rc
\
vendor/anbox/android/init.goldfish.rc:root/init.goldfish.rc
\
vendor/anbox/android/init.goldfish.sh:system/etc/init.goldfish.sh
\
vendor/anbox/android/init.goldfish.sh:system/etc/init.goldfish.sh
\
vendor/anbox/android/ueventd.goldfish.rc:root/ueventd.goldfish.rc
\
vendor/anbox/android/ueventd.goldfish.rc:root/ueventd.goldfish.rc
\
vendor/anbox/android/camera/media_profiles.xml:system/etc/media_profiles.xml
\
vendor/anbox/android/media/media_profiles.xml:system/etc/media_profiles.xml
\
vendor/anbox/android/camera/media_codecs.xml:system/etc/media_codecs.xml
\
vendor/anbox/android/media/media_codecs.xml:system/etc/media_codecs.xml
\
vendor/anbox/android/media/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml
\
vendor/anbox/android/media/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml
\
vendor/anbox/android/media/media_codecs_google_tv.xml:system/etc/media_codecs_google_tv.xml
\
vendor/anbox/android/media/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml
\
hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf
hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf
PRODUCT_CHARACTERISTICS
:=
emulator
PRODUCT_CHARACTERISTICS
:=
emulator
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录