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

Commit 1a44b343 authored by Shrikara B's avatar Shrikara B Committed by Lajos Molnar
Browse files

Codec2: Initialize InputSurfaceWrapper::Config structure fields

Initialize the fields of Config structure of
InputSurfaceWrapper class. If not initialised, there
is a chance of junk values being used during configure

Bug: 171763471

Change-Id: I387a5444a4507c2c1e0848ae02559471edcba149
(cherry picked from commit a1ab7eb8)
parent 4184a7dd
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -61,24 +61,24 @@ public:
    /// Input Surface configuration
    struct Config {
        // IN PARAMS (GBS)
        float mMinFps; // minimum fps (repeat frame to achieve this)
        float mMaxFps; // max fps (via frame drop)
        float mCaptureFps; // capture fps
        float mCodedFps;   // coded fps
        bool mSuspended; // suspended
        int64_t mTimeOffsetUs; // time offset (input => codec)
        int64_t mSuspendAtUs; // suspend/resume time
        int64_t mStartAtUs; // start time
        bool mStopped; // stopped
        int64_t mStopAtUs; // stop time
        float mMinFps = 0.0; // minimum fps (repeat frame to achieve this)
        float mMaxFps = 0.0; // max fps (via frame drop)
        float mCaptureFps = 0.0; // capture fps
        float mCodedFps = 0.0;   // coded fps
        bool mSuspended = false; // suspended
        int64_t mTimeOffsetUs = 0; // time offset (input => codec)
        int64_t mSuspendAtUs = 0; // suspend/resume time
        int64_t mStartAtUs = 0; // start time
        bool mStopped = false; // stopped
        int64_t mStopAtUs = 0; // stop time

        // OUT PARAMS (GBS)
        int64_t mInputDelayUs; // delay between encoder input and surface input
        int64_t mInputDelayUs = 0; // delay between encoder input and surface input

        // IN PARAMS (CODEC WRAPPER)
        float mFixedAdjustedFps; // fixed fps via PTS manipulation
        float mMinAdjustedFps; // minimum fps via PTS manipulation
        uint64_t mUsage; // consumer usage
        float mFixedAdjustedFps = 0.0; // fixed fps via PTS manipulation
        float mMinAdjustedFps = 0.0; // minimum fps via PTS manipulation
        uint64_t mUsage = 0; // consumer usage
    };

    /**