Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70fb1013 authored by Surajit Podder's avatar Surajit Podder Committed by Linux Build Service Account
Browse files

video: Add support for MPEG4 DP video clips

Hardware decoder does not support MPEG4 DP clips
Add changes to use software decoder MPEG4 DP streams:
* Add mapping for MPEG4DP mime to compression type
* Add MPEG4 DP mime to software MPEG4 decoder

Change-Id: Ic763b7b5714ce6533c07e8bb65f0ecd09dc24e9e
parent 3036a0da
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3120,6 +3120,7 @@ static const struct VideoCodingMapEntry {
    { MEDIA_MIMETYPE_VIDEO_AVC, OMX_VIDEO_CodingAVC },
    { MEDIA_MIMETYPE_VIDEO_HEVC, OMX_VIDEO_CodingHEVC },
    { MEDIA_MIMETYPE_VIDEO_MPEG4, OMX_VIDEO_CodingMPEG4 },
    { MEDIA_MIMETYPE_VIDEO_MPEG4_DP, OMX_VIDEO_CodingMPEG4 },
    { MEDIA_MIMETYPE_VIDEO_H263, OMX_VIDEO_CodingH263 },
    { MEDIA_MIMETYPE_VIDEO_MPEG2, OMX_VIDEO_CodingMPEG2 },
    { MEDIA_MIMETYPE_VIDEO_VP8, OMX_VIDEO_CodingVP8 },
+8 −1
Original line number Diff line number Diff line
@@ -16,7 +16,14 @@

<Included>
    <Decoders>
        <MediaCodec name="OMX.google.mpeg4.decoder" type="video/mp4v-es">
        <MediaCodec name="OMX.google.mpeg4.decoder">
            <Type name="video/mp4v-es" />
            <!--
                Use Google mpeg4 decoder for mpeg4 DP content which is not
                supported by HW. A component can be used to support several
                mimetypes, so non-DP mpeg4 usecases will not be affected by this.
            -->
            <Type name="video/mp4v-esdp" />
            <!-- profiles and levels:  ProfileSimple : Level3 -->
            <Limit name="size" min="2x2" max="352x288" />
            <Limit name="alignment" value="2x2" />