ffmpeg: integrate into build and enable h.265 hw decoder by default
* Use codec ranks to switch between decoders.
This commit is contained in:
@@ -21,7 +21,7 @@ disable_overscan=1
|
||||
|
||||
# Graphics acceleration
|
||||
dtoverlay=vc4-kms-v3d
|
||||
dtoverlay=cma,cma-384
|
||||
dtoverlay=cma,cma-512
|
||||
|
||||
# I2C
|
||||
#dtparam=i2c_arm=on
|
||||
|
@@ -132,6 +132,10 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml
|
||||
|
||||
# FFmpeg
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.media.c2@1.2-service-ffmpeg
|
||||
|
||||
# Gatekeeper
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.gatekeeper@1.0-service.software
|
||||
|
@@ -17,6 +17,7 @@
|
||||
-->
|
||||
|
||||
<MediaCodecs>
|
||||
<Include href="media_codecs_ffmpeg_c2.xml" />
|
||||
<Include href="media_codecs_v4l2_c2_video.xml" />
|
||||
<Include href="media_codecs_google_c2_audio.xml" />
|
||||
<Include href="media_codecs_google_c2_tv.xml" />
|
||||
|
@@ -15,11 +15,11 @@
|
||||
/dev/ion 0664 system system
|
||||
|
||||
# V4L2
|
||||
/dev/media0 0660 media media
|
||||
/dev/media0 0666 media media
|
||||
/dev/media1 0660 media media
|
||||
/dev/video10 0660 media media
|
||||
/dev/video10 0666 media media
|
||||
/dev/video11 0660 media media
|
||||
/dev/video12 0660 media media
|
||||
/dev/video18 0660 media media
|
||||
/dev/video19 0660 media media
|
||||
/dev/video19 0666 media media
|
||||
/dev/video31 0660 media media
|
||||
|
@@ -38,6 +38,12 @@ ro.hardware.camera=libcamera
|
||||
# Display
|
||||
debug.drm.mode.force=1920x1080
|
||||
|
||||
# FFmpeg
|
||||
persist.ffmpeg_codec2.v4l2.h264=false
|
||||
persist.ffmpeg_codec2.v4l2.h265=true
|
||||
persist.ffmpeg_codec2.rank.audio=16
|
||||
persist.ffmpeg_codec2.rank.video=256
|
||||
|
||||
# Graphics
|
||||
ro.hardware.hwcomposer=drm
|
||||
ro.hardware.vulkan=broadcom
|
||||
|
Reference in New Issue
Block a user