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

Commit 4c6d82bc authored by Lajos Molnar's avatar Lajos Molnar
Browse files

omx: add OMX_EventDataSpaceChanged

This is used internally by IOMX to signal a dataspace change by a surface
encoder.

Bug: 25684127
Change-Id: I42d4ec1db422fa62c251ce197495c6e8ab1430b3
parent 30f54820
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -292,6 +292,7 @@ inline static const char *asString(OMX_EVENTTYPE i, const char *def = "??") {
//      case OMX_EventDynamicResourcesAvailable: return "DynamicResourcesAvailable";
//      case OMX_EventDynamicResourcesAvailable: return "DynamicResourcesAvailable";
//      case OMX_EventPortFormatDetected:        return "PortFormatDetected";
//      case OMX_EventPortFormatDetected:        return "PortFormatDetected";
        case OMX_EventOutputRendered:            return "OutputRendered";
        case OMX_EventOutputRendered:            return "OutputRendered";
        case OMX_EventDataSpaceChanged:          return "DataSpaceChanged";
        default:                                 return def;
        default:                                 return def;
    }
    }
}
}
+15 −0
Original line number Original line Diff line number Diff line
@@ -524,6 +524,21 @@ typedef enum OMX_EVENTTYPE
     *  frame.
     *  frame.
     */
     */
    OMX_EventOutputRendered = 0x7F000001,
    OMX_EventOutputRendered = 0x7F000001,

    /** For framework internal use only: event sent by OMXNodeInstance when it receives a graphic
     *  input buffer with a new dataspace for encoding. |arg1| will contain the dataspace. |arg2|
     *  will contain the ColorAspects requested by the component (or framework defaults) using
     *  the following bitfield layout:
     *
     *       +----------+-------------+----------------+------------+
     *       |   Range  |  Primaries  |  MatrixCoeffs  |  Transfer  |
     *       +----------+-------------+----------------+------------+
     *  bits:  31....24   23.......16   15...........8   7........0
     *
     *  TODO: We would really need to tie this to an output buffer, but OMX does not provide a
     *  fool-proof way to do that for video encoders.
     */
    OMX_EventDataSpaceChanged,
    OMX_EventMax = 0x7FFFFFFF
    OMX_EventMax = 0x7FFFFFFF
} OMX_EVENTTYPE;
} OMX_EVENTTYPE;