DescriptionStore SupportedCodecs in KeySystemInfo and KeySystems.
Previously we convert SupportedCodecs (a uint32 bit mask indicating which
codec is supported) to ContainerCodecMap (a map from a container type to a set
of supported codecs in that container). Then we pass ContainerCodecMap to
KeySystems and store it there for easy look up.
This results in a lot of duplicate converting code. This CL stores
SupportedCodecs in KeySystmeInfo and KeySystems so that we don't need to convert
anything. Then when IsTypeSupported() is called, we find the bit masks for
queried container and codec types and compare it with the SupportedCodecs stored
in KeySystems.
BUG=362769
TEST=All existing tests pass.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266148
Patch Set 1 #
Total comments: 4
Patch Set 2 : rebase only #Patch Set 3 : Fix Android build. #
Total comments: 50
Patch Set 4 : fix COMPILE_ASSERT #Patch Set 5 : Address parts of the comments. #Patch Set 6 : UNIT_TEST #Patch Set 7 : Move encrypted_media_codecs.h to content/public/common/ #Patch Set 8 : namespace: media -> content #Patch Set 9 : Ready for review. #
Total comments: 10
Patch Set 10 : Fix Windows build warning. #Patch Set 11 : comments addressed #Patch Set 12 : rebase only #
Total comments: 2
Patch Set 13 : Rename enums. #
Total comments: 2
Patch Set 14 : eme_codec.h #Messages
Total messages: 31 (0 generated)
|