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

Commit c79f2cb2 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

media: make CodecCapabilities PerformancePoints hashable

- this allows them to be used in HashSets, etc.

Bug: 131430634
Change-Id: I4279a5fc0572857c2b840fd5a1ac0aa3e1b746ee
parent cf263d95
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1677,6 +1677,13 @@ public final class MediaCodecInfo {
                return "PerformancePoint(" + info + ")";
            }

            @Override
            public int hashCode() {
                // only max frame rate must equal between performance points that equal to one
                // another
                return mMaxFrameRate;
            }

            /**
             * Create a detailed performance point with custom max frame rate and macroblock size.
             *