gecko-dev/dom/media/mp4
Bryce Van Dyk 89f408ffff Bug 1549406 - Break out logic to determine encryption scheme for mp4s. r=jya
This is a refactor of the encryption scheme detection used in Index.cpp aside
from one additional check: the new function verifies that if sample group
information is present that it is consistent with other encryption information.

Introduce a new function that contains all the logic to detect the encryption
scheme used for the current sample. This helps separate the logic of scheme
detection from setting scheme specific data on the current sample. This makes
the steps easier to understand and change in isolation.

This function returns a result, with failure cases containing a string
explaining the error. This is motivated by being able to log or surface the
error for failure cases. Logging is not yet implemented, but will be in
bug 1547328.

Driveby add comment documenting GetSampleEncryptionEntry.

Driveby adjust include order to match Mozilla/Google style.

Differential Revision: https://phabricator.services.mozilla.com/D30111

--HG--
extra : moz-landing-system : lando
2019-07-08 18:48:38 +00:00
..
Atom.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
AtomType.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
Box.cpp Bug 1554075 - Allow direct access of source buffer's data from demuxer, eliminating most copies. r=jya 2019-06-11 07:38:16 +00:00
Box.h Bug 1554075 - Allow direct access of source buffer's data from demuxer, eliminating most copies. r=jya 2019-06-11 07:38:16 +00:00
BufferStream.cpp Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika 2019-02-25 16:05:29 -06:00
BufferStream.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
ByteStream.h Bug 1554075 - Allow direct access of source buffer's data from demuxer, eliminating most copies. r=jya 2019-06-11 07:38:16 +00:00
DecoderData.cpp Bug 1513651 - Collect telemetry on sample description box entries when parsing mp4s. r=jya 2019-02-11 20:07:51 +00:00
DecoderData.h Bug 1513042 - Update mp4parse-rust to v0.11.2. r=jya 2018-12-12 15:04:18 +00:00
Index.cpp Bug 1549406 - Break out logic to determine encryption scheme for mp4s. r=jya 2019-07-08 18:48:38 +00:00
Index.h Bug 1549406 - Break out logic to determine encryption scheme for mp4s. r=jya 2019-07-08 18:48:38 +00:00
MP4Decoder.cpp Bug 1562331 - Make media.* static prefs follow the naming convention. r=KrisWright 2019-06-28 14:09:05 +10:00
MP4Decoder.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
MP4Demuxer.cpp Bug 1562331 - Make media.* static prefs follow the naming convention. r=KrisWright 2019-06-28 14:09:05 +10:00
MP4Demuxer.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
MP4Interval.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MP4Metadata.cpp Bug 1523683 - Use mozilla::Variant to select if the MoofParser should parse a single track or multiple. r=jya 2019-02-01 21:34:37 +00:00
MP4Metadata.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
MoofParser.cpp Bug 1554075 - Smooth out small gaps between MP4 samples' CTS across Moof boundaries. r=jya 2019-06-11 07:37:54 +00:00
MoofParser.h Bug 1554075 - Smooth out small gaps between MP4 samples' CTS across Moof boundaries. r=jya 2019-06-11 07:37:54 +00:00
ResourceStream.cpp Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
ResourceStream.h Bug 1204606 - Reformat of dom/media r=jya 2018-11-19 13:25:37 +00:00
SinfParser.cpp Bug 1487416 - Read pattern information in Sinf parser. r=jya 2019-01-11 15:11:05 +00:00
SinfParser.h Bug 1487416 - Read pattern information in Sinf parser. r=jya 2019-01-11 15:11:05 +00:00
moz.build Bug 1528074 - Clean up some media warning flags r=jya 2019-02-22 17:22:12 +00:00