Skip to content

Commit

Permalink
vince: Initial changes for caf
Browse files Browse the repository at this point in the history
  • Loading branch information
waiser86 committed Apr 12, 2019
1 parent f4e321b commit e5fc002
Show file tree
Hide file tree
Showing 109 changed files with 856 additions and 43,018 deletions.
3 changes: 2 additions & 1 deletion BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
AUDIO_FEATURE_ENABLED_FLUENCE := true
AUDIO_FEATURE_ENABLED_SND_MONITOR := true
AUDIO_FEATURE_ENABLED_HFP := true
AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
Expand Down Expand Up @@ -218,7 +219,7 @@ TARGET_PROVIDES_QTI_TELEPHONY_JAR := true
TARGET_USES_OLD_MNC_FORMAT := true

# SELinux
include device/qcom/sepolicy/sepolicy.mk
#include device/qcom/sepolicy/sepolicy.mk
BOARD_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy

# Security patch level
Expand Down
16 changes: 6 additions & 10 deletions aosp_vince.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,20 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
$(call inherit-product, device/xiaomi/vince/device.mk)

#all
IS_GO_VERSION := true
TARGET_INCLUDE_STOCK_ARCORE := true
$(call inherit-product, vendor/MiuiCamera/config.mk)

# On for(PE)
$(call inherit-product, vendor/aosp/config/common_full_phone.mk)
#(PE-CAF)
$(call inherit-product, vendor/aosp/config/common.mk)

# Inherit from our common CAF device tree.
include device/qcom/common/common.mk

TARGET_BOOT_ANIMATION_RES := 1080
TARGET_GAPPS_ARCH := arm64
TARGET_MINIMAL_APPS := false
CUSTOM_BUILD_TYPE := OFFICIAL

# On for(AEX)
#$(call inherit-product, vendor/aosp/common.mk)
#TARGET_BOOT_ANIMATION_RES := 2140
#EXTENDED_BUILD_TYPE := OFFICIAL

# Inherit from custom vendor

#Device identifier. This must come after all inclusions
PRODUCT_DEVICE := vince
PRODUCT_NAME := aosp_vince
Expand Down
8 changes: 8 additions & 0 deletions compatibility_matrix.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,12 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.qti.hardware.iop</name>
<version>2.0</version>
<interface>
<name>IIop</name>
<instance>default</instance>
</interface>
</hal>
</compatibility-matrix>
105 changes: 42 additions & 63 deletions configs/media_codecs.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (C) 2013 The Android Open Source Project
Copyright (C) 2015, 2017 The Linux Foundation. All rights reserved.
Copyright (C) 2015-2017 The Linux Foundation. All rights reserved.
Not a contribution.
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.
Expand All @@ -31,18 +28,13 @@
<!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" />
Expand All @@ -51,19 +43,15 @@ can be used:
<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
Expand All @@ -76,27 +64,33 @@ Only the three quirks included above are recognized at this point:
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.
-->

<!--
Decoder capabilities for msm8953
__________ _________________________________________ ___________________
| Codec | W H fps Mbps MB/s | Encode Secure-dec |
|__________|_________________________________________|___________________|
| hevc | 3840 2160 30 100 972000 | Y Y |
| h264 | 3840 2160 30 100 972000 | Y Y |
| h263 | 864 480 30 2 48600 | Y N |
| mpeg4 | 1920 1088 60 60 489600 | Y N |
| mpeg2 | 1920 1088 30 40 244800 | N Y |
| vc1 | 1920 1088 60 60 489600 | N N |
| vp8 | 3840 2160 30 100 972000 | Y N |
| vp9 | 3840 2160 30 100 972000 | N N |
| divx3 | 720 480 30 2 40500 | N N |
| div4/5/6 | 1920 1088 30 10 244800 | N N |
|__________|_________________________________________|___________________|
__________ _________________________________________
| Codec | W H fps Mbps MB/s |
|__________|_________________________________________|
| hevc | 3840 2160 30 100 972000 |
| h264 | 3840 2160 30 100 972000 |
| h263 | 864 480 30 2 48600 |
| mpeg4 | 1920 1088 60 60 489600 |
| mpeg2 | 1920 1088 30 40 244800 |
| vc1 | 1920 1088 60 60 489600 |
| vp8 | 3840 2160 30 100 972000 |
| vp9 | 3840 2160 30 100 972000 |
| divx3 | 720 480 30 2 40500 |
| div4/5/6 | 1920 1088 30 10 244800 |
|__________|_________________________________________|
Secure decoder capabilities for msm8953
__________ _________________________________________
| Codec | W H fps Mbps MB/s |
|__________|_________________________________________|
| hevc | 3840 2160 30 100 972000 |
| h264 | 3840 2160 30 100 972000 |
| mpeg2 | 1920 1088 30 40 244800 |
| vc1 | 1920 1088 60 60 489600 |
|__________|_________________________________________|
-->

<!--
Expand Down Expand Up @@ -136,13 +130,14 @@ Only the three quirks included above are recognized at this point:
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Quirk name="requires-loaded-to-idle-after-allocation" />
<Limit name="size" min="96x64" max="3840x2160" />
<Limit name="size" min="96x96" max="3840x2160" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="1" max="972000" />
<Limit name="bitrate" range="1-100000000" />
<Limit name="concurrent-instances" max="16" />
<Feature name="intra-refresh" />
<Feature name="can-swap-width-height" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.encoder.mpeg4" type="video/mp4v-es" >
<Quirk name="requires-allocate-on-input-ports" />
Expand Down Expand Up @@ -180,11 +175,6 @@ Only the three quirks included above are recognized at this point:
</MediaCodec>
</Encoders>
<Decoders>
<!-- Audio Hardware -->
<!-- Audio Software -->
<MediaCodec name="OMX.qti.audio.decoder.flac" type="audio/flac" >
<Limit name="concurrent-instances" max="10" />
</MediaCodec>
<!-- Video Hardware -->
<MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" >
<Quirk name="requires-allocate-on-input-ports" />
Expand All @@ -196,18 +186,19 @@ Only the three quirks included above are recognized at this point:
<Limit name="bitrate" range="1-100000000" />
<Feature name="adaptive-playback" />
<Limit name="concurrent-instances" max="16" />
<Feature name="can-swap-width-height" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.decoder.avc.secure" type="video/avc" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="size" min="64x64" max="3840x2160" />
<Limit name="size" min="64x64" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="1" max="972000" />
<Limit name="bitrate" range="1-100000000" />
<Limit name="blocks-per-second" min="1" max="244800" />
<Limit name="bitrate" range="1-20000000" />
<Feature name="adaptive-playback" />
<Feature name="secure-playback" required="true" />
<Limit name="concurrent-instances" max="3" />
<Limit name="concurrent-instances" max="2" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.decoder.mpeg2" type="video/mpeg2" >
<Quirk name="requires-allocate-on-input-ports" />
Expand All @@ -227,10 +218,10 @@ Only the three quirks included above are recognized at this point:
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="1" max="244800" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="bitrate" range="1-20000000" />
<Feature name="adaptive-playback" />
<Feature name="secure-playback" required="true" />
<Limit name="concurrent-instances" max="10" />
<Limit name="concurrent-instances" max="8" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.decoder.mpeg4" type="video/mp4v-es" >
<Quirk name="requires-allocate-on-input-ports" />
Expand Down Expand Up @@ -265,19 +256,7 @@ Only the three quirks included above are recognized at this point:
<Feature name="adaptive-playback" />
<Limit name="concurrent-instances" max="16" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.decoder.wmv.secure" type="video/x-ms-wmv" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="size" min="64x64" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="1" max="489600" />
<Limit name="bitrate" range="1-60000000" />
<Feature name="adaptive-playback" />
<Feature name="secure-playback" required="true" />
<Limit name="concurrent-instances" max="7" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.decoder.vc1" type="video/wvc1" >
<MediaCodec name="OMX.qcom.video.decoder.vc1" type="video/x-ms-wmv" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="size" min="64x64" max="1920x1088" />
Expand All @@ -288,14 +267,14 @@ Only the three quirks included above are recognized at this point:
<Feature name="adaptive-playback" />
<Limit name="concurrent-instances" max="16" />
</MediaCodec>
<MediaCodec name="OMX.qcom.video.decoder.vc1.secure" type="video/wvc1" >
<MediaCodec name="OMX.qcom.video.decoder.vc1.secure" type="video/x-ms-wmv" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="size" min="64x64" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="1" max="489600" />
<Limit name="bitrate" range="1-60000000" />
<Limit name="blocks-per-second" min="1" max="244800" />
<Limit name="bitrate" range="1-20000000" />
<Feature name="adaptive-playback" />
<Feature name="secure-playback" required="true" />
<Limit name="concurrent-instances" max="7" />
Expand Down Expand Up @@ -369,15 +348,15 @@ Only the three quirks included above are recognized at this point:
<MediaCodec name="OMX.qcom.video.decoder.hevc.secure" type="video/hevc" >
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="size" min="64x64" max="3840x2160" />
<Limit name="size" min="64x64" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="1" max="972000" />
<Limit name="bitrate" range="1-100000000" />
<Limit name="blocks-per-second" min="1" max="244800" />
<Limit name="bitrate" range="1-20000000" />
<Feature name="adaptive-playback" />
<Feature name="secure-playback" required="true" />
<Limit name="concurrent-instances" max="3" />
<Limit name="concurrent-instances" max="2" />
</MediaCodec>
</Decoders>
<Include href="media_codecs_google_video.xml" />
</MediaCodecs>
</MediaCodecs>
Loading

0 comments on commit e5fc002

Please sign in to comment.