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

Commit 4eb89959 authored by Ray Essick's avatar Ray Essick Committed by Automerger Merge Worker
Browse files

Merge "C2SoftAvcDec: Increase maximum output delay to 34" am: 8ae5b5d6 am:...

Merge "C2SoftAvcDec: Increase maximum output delay to 34" am: 8ae5b5d6 am: 45055ad4 am: 9f231233 am: 153c389b am: b1c37d49

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1398270

Change-Id: Ieb201da99d4d8422b72a9429892c586ac7e83bf2
parents 170a4287 b1c37d49
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -34,7 +34,11 @@ namespace {
constexpr size_t kMinInputBufferSize = 2 * 1024 * 1024;
constexpr char COMPONENT_NAME[] = "c2.android.avc.decoder";
constexpr uint32_t kDefaultOutputDelay = 8;
constexpr uint32_t kMaxOutputDelay = 16;
/* avc specification allows for a maximum delay of 16 frames.
   As soft avc decoder supports interlaced, this delay would be 32 fields.
   And avc decoder implementation has an additional delay of 2 decode calls.
   So total maximum output delay is 34 */
constexpr uint32_t kMaxOutputDelay = 34;
constexpr uint32_t kMinInputBytes = 4;
}  // namespace