v4l2: enable h264 hardware encoder
This commit is contained in:
@@ -183,7 +183,6 @@ PRODUCT_PACKAGES += \
|
|||||||
# Media
|
# Media
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(DEVICE_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
|
$(DEVICE_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
|
||||||
$(DEVICE_PATH)/media/media_codecs_v4l2_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_v4l2_c2_video.xml \
|
|
||||||
frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
|
frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
|
||||||
frameworks/av/media/libstagefright/data/media_codecs_google_c2_tv.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_tv.xml \
|
frameworks/av/media/libstagefright/data/media_codecs_google_c2_tv.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_tv.xml \
|
||||||
frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml
|
frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml
|
||||||
@@ -245,6 +244,9 @@ PRODUCT_PACKAGES += \
|
|||||||
android.hardware.media.c2@1.0-service-v4l2 \
|
android.hardware.media.c2@1.0-service-v4l2 \
|
||||||
libc2plugin_store
|
libc2plugin_store
|
||||||
|
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(DEVICE_PATH)/media/media_codecs_v4l2_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_v4l2_c2_video.xml
|
||||||
|
|
||||||
# Virtualization
|
# Virtualization
|
||||||
$(call inherit-product, packages/modules/Virtualization/apex/product_packages.mk)
|
$(call inherit-product, packages/modules/Virtualization/apex/product_packages.mk)
|
||||||
|
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<Included>
|
<Included>
|
||||||
<!--
|
|
||||||
<Encoders>
|
<Encoders>
|
||||||
<MediaCodec name="c2.v4l2.avc.encoder" type="video/avc">
|
<MediaCodec name="c2.v4l2.avc.encoder" type="video/avc">
|
||||||
<Limit name="size" min="32x32" max="4096x4096" />
|
<Limit name="size" min="32x32" max="4096x4096" />
|
||||||
@@ -29,10 +28,9 @@
|
|||||||
<Limit name="performance-point-1280x720" range="30-30" />
|
<Limit name="performance-point-1280x720" range="30-30" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
</Encoders>
|
</Encoders>
|
||||||
-->
|
|
||||||
|
|
||||||
<Decoders>
|
<Decoders>
|
||||||
<MediaCodec name="c2.v4l2.avc.decoder" type="video/avc" >
|
<MediaCodec name="c2.v4l2.avc.decoder" type="video/avc">
|
||||||
<Limit name="size" min="16x16" max="4096x4096" />
|
<Limit name="size" min="16x16" max="4096x4096" />
|
||||||
<Limit name="alignment" value="2x2" />
|
<Limit name="alignment" value="2x2" />
|
||||||
<Limit name="block-size" value="16x16" />
|
<Limit name="block-size" value="16x16" />
|
||||||
@@ -42,65 +40,5 @@
|
|||||||
<Limit name="performance-point-3840x2160" range="30-30" />
|
<Limit name="performance-point-3840x2160" range="30-30" />
|
||||||
<Feature name="adaptive-playback" />
|
<Feature name="adaptive-playback" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
|
|
||||||
<!--
|
|
||||||
<MediaCodec name="c2.v4l2.vp8.decoder" type="video/x-vnd.on2.vp8" >
|
|
||||||
<Limit name="size" min="16x16" max="4096x4096" />
|
|
||||||
<Limit name="alignment" value="2x2" />
|
|
||||||
<Limit name="block-size" value="16x16" />
|
|
||||||
<Limit name="blocks-per-second" min="1" max="1984500" />
|
|
||||||
<Limit name="bitrate" range="1-62500000" />
|
|
||||||
<Limit name="concurrent-instances" max="8" />
|
|
||||||
<Limit name="performance-point-3840x2160" range="30-30" />
|
|
||||||
<Feature name="adaptive-playback" />
|
|
||||||
</MediaCodec>
|
|
||||||
|
|
||||||
<MediaCodec name="c2.v4l2.vp9.decoder" type="video/x-vnd.on2.vp9" >
|
|
||||||
<Limit name="size" min="16x16" max="4096x4096" />
|
|
||||||
<Limit name="alignment" value="2x2" />
|
|
||||||
<Limit name="block-size" value="16x16" />
|
|
||||||
<Limit name="blocks-per-second" min="1" max="2073600" />
|
|
||||||
<Limit name="bitrate" range="1-62500000" />
|
|
||||||
<Limit name="concurrent-instances" max="8" />
|
|
||||||
<Limit name="performance-point-3840x2160" range="30-30" />
|
|
||||||
<Feature name="adaptive-playback" />
|
|
||||||
</MediaCodec>
|
|
||||||
|
|
||||||
<MediaCodec name="c2.v4l2.avc.decoder.secure" type="video/avc" >
|
|
||||||
<Limit name="size" min="16x16" max="4096x4096" />
|
|
||||||
<Limit name="alignment" value="2x2" />
|
|
||||||
<Limit name="block-size" value="16x16" />
|
|
||||||
<Limit name="blocks-per-second" min="1" max="1879200" />
|
|
||||||
<Limit name="bitrate" range="1-62500000" />
|
|
||||||
<Limit name="concurrent-instances" max="8" />
|
|
||||||
<Limit name="performance-point-3840x2160" range="30-30" />
|
|
||||||
<Feature name="adaptive-playback" />
|
|
||||||
<Feature name="secure-playback" required="true" />
|
|
||||||
</MediaCodec>
|
|
||||||
|
|
||||||
<MediaCodec name="c2.v4l2.vp8.decoder.secure" type="video/x-vnd.on2.vp8" >
|
|
||||||
<Limit name="size" min="16x16" max="4096x4096" />
|
|
||||||
<Limit name="alignment" value="2x2" />
|
|
||||||
<Limit name="block-size" value="16x16" />
|
|
||||||
<Limit name="blocks-per-second" min="1" max="1984500" />
|
|
||||||
<Limit name="bitrate" range="1-62500000" />
|
|
||||||
<Limit name="concurrent-instances" max="8" />
|
|
||||||
<Limit name="performance-point-3840x2160" range="30-30" />
|
|
||||||
<Feature name="adaptive-playback" />
|
|
||||||
<Feature name="secure-playback" required="true" />
|
|
||||||
</MediaCodec>
|
|
||||||
|
|
||||||
<MediaCodec name="c2.v4l2.vp9.decoder.secure" type="video/x-vnd.on2.vp9" >
|
|
||||||
<Limit name="size" min="16x16" max="4096x4096" />
|
|
||||||
<Limit name="alignment" value="2x2" />
|
|
||||||
<Limit name="block-size" value="16x16" />
|
|
||||||
<Limit name="blocks-per-second" min="1" max="2073600" />
|
|
||||||
<Limit name="bitrate" range="1-62500000" />
|
|
||||||
<Limit name="concurrent-instances" max="8" />
|
|
||||||
<Limit name="performance-point-3840x2160" range="30-30" />
|
|
||||||
<Feature name="adaptive-playback" />
|
|
||||||
<Feature name="secure-playback" required="true" />
|
|
||||||
</MediaCodec>
|
|
||||||
-->
|
|
||||||
</Decoders>
|
</Decoders>
|
||||||
</Included>
|
</Included>
|
||||||
|
Reference in New Issue
Block a user