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

Commit e0df6e9d authored by Lajos Molnar's avatar Lajos Molnar Committed by Android (Google) Code Review
Browse files

Merge "omx: add OMX_EventDataSpaceChanged" into nyc-dev

parents 985a3525 4c6d82bc
Loading
Loading
Loading
Loading
+1 −0
Original line number 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_EventPortFormatDetected:        return "PortFormatDetected";
        case OMX_EventOutputRendered:            return "OutputRendered";
        case OMX_EventDataSpaceChanged:          return "DataSpaceChanged";
        default:                                 return def;
    }
}
+15 −0
Original line number Diff line number Diff line
@@ -524,6 +524,21 @@ typedef enum OMX_EVENTTYPE
     *  frame.
     */
    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_EVENTTYPE;