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

Commit 76bbcacd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Revert "transcoding: Use the maximum operating rate from property."""

parents 84f377cf 0d93f0ba
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#define LOG_TAG "VideoTrackTranscoder"

#include <android-base/logging.h>
#include <android-base/properties.h>
#include <media/NdkCommon.h>
#include <media/VideoTrackTranscoder.h>
#include <utils/AndroidThreads.h>
@@ -39,7 +40,8 @@ static constexpr int32_t kColorFormatSurface = 0x7f000789;
// Default key frame interval in seconds.
static constexpr float kDefaultKeyFrameIntervalSeconds = 1.0f;
// Default codec operating rate.
static constexpr int32_t kDefaultCodecOperatingRate = 240;
static int32_t kDefaultCodecOperatingRate =
        base::GetIntProperty("debug.media.transcoding.codec_max_operating_rate", /*default*/ 240);
// Default codec priority.
static constexpr int32_t kDefaultCodecPriority = 1;
// Default bitrate, in case source estimation fails.