Skip to content

Commit

Permalink
Also add mpeg2 support.
Browse files Browse the repository at this point in the history
(frameworks/av commit c83d228e85b187e3112f10003282c8270d18ef71 moved this
 from media_codecs_google_video.xml to new file media_codecs_google_tv.xml
 for reasons not given.)
  • Loading branch information
eMPee584 committed Sep 13, 2018
1 parent c98fe4b commit 05cb1a6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions android/media/media_codecs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@ Only the three quirks included above are recognized at this point:
<MediaCodecs>
<Include href="media_codecs_google_audio.xml" />
<Include href="media_codecs_google_telephony.xml" />
<Include href="media_codecs_google_tv.xml" />
<Include href="media_codecs_google_video.xml" />
</MediaCodecs>
29 changes: 29 additions & 0 deletions android/media/media_codecs_google_tv.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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>
1 change: 1 addition & 0 deletions products/anbox.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ PRODUCT_COPY_FILES += \
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

Expand Down

0 comments on commit 05cb1a6

Please sign in to comment.