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

Commit 775a54cb authored by Lajos Molnar's avatar Lajos Molnar
Browse files

omx: fix constrained profile support

Bug: 64691727
Change-Id: Idd4639466bc53cc2a49e31a6107209adfb250765
parent 086a02a2
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -930,6 +930,14 @@ inline static const char *asString(OMX_VIDEO_AVCLOOPFILTERTYPE i, const char *de
#ifndef AS_STRING_FOR_OMX_VIDEOEXT_H
#define AS_STRING_FOR_OMX_VIDEOEXT_H

inline static const char *asString(OMX_VIDEO_AVCPROFILEEXTTYPE i, const char *def = "??") {
    switch (i) {
        case OMX_VIDEO_AVCProfileConstrainedBaseline:   return "ConstrainedBaseline";
        case OMX_VIDEO_AVCProfileConstrainedHigh:       return "ConstrainedHigh";
        default:                                return asString((OMX_VIDEO_AVCPROFILETYPE)i, def);
    }
}

inline static const char *asString(OMX_VIDEO_VP8PROFILETYPE i, const char *def = "??") {
    switch (i) {
        case OMX_VIDEO_VP8ProfileMain:    return "Main";
+2 −2
Original line number Diff line number Diff line
@@ -59,10 +59,10 @@ typedef struct OMX_NALSTREAMFORMATTYPE{
} OMX_NALSTREAMFORMATTYPE;

/** AVC additional profiles */
typedef enum OMX_VIDEO_AVCPROFILETYPEEXT {
typedef enum OMX_VIDEO_AVCPROFILEEXTTYPE {
    OMX_VIDEO_AVCProfileConstrainedBaseline = 0x10000,   /**< Constrained baseline profile */
    OMX_VIDEO_AVCProfileConstrainedHigh     = 0x80000,   /**< Constrained high profile */
} OMX_VIDEO_AVCPROFILETYPEEXT;
} OMX_VIDEO_AVCPROFILEEXTTYPE;

/** VP8 profiles */
typedef enum OMX_VIDEO_VP8PROFILETYPE {