Граф коммитов

571 Коммитов

Автор SHA1 Сообщение Дата
Alfredo.Yang 78a33f04df Bug 1320026 - support crypto info in rust mp4 parser. r=kinetik
MozReview-Commit-ID: 1d8QKXJ1rnh

--HG--
extra : rebase_source : 6be207aa6ecdc689ee30430d00109466794d1cc5
2016-12-12 16:00:24 +08:00
Jean-Yves Avenard 6e751096f7 Bug 1324381: P3. Ignore duration sets to -1. r=gerald
MozReview-Commit-ID: 7RH5deLo0Pm

--HG--
extra : rebase_source : bcc36b2b03687d50242a8d324e88e63966442b1d
2016-12-19 21:04:46 +11:00
Jean-Yves Avenard 778399ee27 Bug 1324381: P2. Adjust existing gtest. r=gerald
The file did set a duration of -1, which is now considered as 0.

MozReview-Commit-ID: 6HMeRw4Q8uT

--HG--
extra : rebase_source : 2292e0e945f9ac0d3d18cd758ab75ed81f412345
2016-12-20 09:59:09 +11:00
Jean-Yves Avenard 8869241ac0 Bug 1323081: [H264] P2. Ignore NAL stop bit and trailing 0. r=gerald
MozReview-Commit-ID: EHoAFqXJFq5

--HG--
extra : rebase_source : 37e00a55ca6dc612862f9363b89b06a45e517019
2016-12-14 17:17:53 +11:00
Jean-Yves Avenard 44d3408838 Bug 1323081: P1. Add native BitReader class. r=gerald
This is a rewrite from Stagefright's ABitReader. The major difference is that you give the original size in bits rather than in bytes. ABitReader always read all bits available. While under some circumstances we want to bound the buffer to a set number of bits.

MozReview-Commit-ID: hdJ7CAwOea

--HG--
extra : rebase_source : 684f02540f46d053f2a12d7007a67f6e0f765057
2016-12-14 15:27:48 +11:00
Jean-Yves Avenard dc0394a1d9 Bug 1322961: Check SPS and PPS attributes value. r=gerald
MozReview-Commit-ID: LSngXbdQqdL

--HG--
extra : rebase_source : 14b1540c3324bf670031f86c45e6574c495cb26f
2016-12-12 21:51:03 +11:00
Alastor Wu 10799fa4e0 Bug 1321164 - part2 : use enum for NAL types. r=jya
In order to increase the readability, use enum value for the NAL types.

MozReview-Commit-ID: 8iwFbB7BEOM

--HG--
extra : rebase_source : 4bfecd012904942f6ad38be9b6b69786d2d732d1
2016-12-08 08:50:42 -10:00
Alastor Wu 1a51e913a5 Bug 1321164 - part1 : handle multiple SPS/PPS. r=jya
Implement the data structure for multuple SPS/PPS, and decode the multiple SPS/PPS from the extra data.

MozReview-Commit-ID: E90fdH1pvlA

--HG--
extra : rebase_source : 4b9c3229b92ec5d1d43ce14a72b8e96da516c59d
2016-12-02 14:52:48 +08:00
Jean-Yves Avenard 549b224ab6 Bug 1309163: P4. Add missing members to SPSData. r=rillian
Those members are required for DXVA2.

MozReview-Commit-ID: 4QRMVuUEJVD

--HG--
extra : rebase_source : a807486ca63810be3cc4157d9f77cae858797574
2016-10-24 23:37:31 +11:00
Jean-Yves Avenard c42150044f Bug 1309163: P3. Add PPS decoder. r=rillian
Currently, only decode the first PPS found.

MozReview-Commit-ID: APzyvUdeSXR

--HG--
extra : rebase_source : ad6b7cf4a16899800a996359a3b6b5e077632168
2016-10-24 23:04:09 +11:00
Jean-Yves Avenard a73c5ed9b6 Bug 1309163: P2. Add AnnexB::HasPPS methods. r=gerald
MozReview-Commit-ID: 7M58OXvCp5q

--HG--
extra : rebase_source : 09fb441ec4c3561f616bbb6dd12042e8a3af12e1
2016-10-24 17:23:02 +11:00
Jean-Yves Avenard 11d2736751 Bug 1309163: Add BitReader::BitsLeft method. r=gerald
MozReview-Commit-ID: 9HOunJRb1ht

--HG--
extra : rebase_source : 6d71fb2afd90fc061b53bbb7285e5eada3bfea4a
2016-10-24 17:22:05 +11:00
Alfredo.Yang 371c0e7711 Bug 1317609 - support avc extra data. r=kinetik
MozReview-Commit-ID: Kza7utcIpFP

--HG--
extra : rebase_source : 80ce1ed379ff764e4a72fba3d2efdaf682f71f7e
2016-11-24 16:36:08 +08:00
Alfredo.Yang f000f87291 Bug 1317609 - update rust mp4 parser to support avc extra data. r=kinetik
MozReview-Commit-ID: 7sWkDrXD8bs

--HG--
extra : rebase_source : cbee895e95f2c0f2ad3c06b03b65ab3c3ad6d34d
2016-11-25 09:08:37 +08:00
Alfredo.Yang c9c1355882 Bug 1313556 - update rust parser for pssh parsing. r=rillian
MozReview-Commit-ID: KH8K7mizUHl

--HG--
extra : rebase_source : 8e53260bbfcee797bbf05c2504810c7a1ad81a55
2016-11-10 14:50:30 +08:00
Alfredo.Yang e080effcaa Bug 1313556 - Implement Crypto() for mp4 rust parser. r=kinetik
MozReview-Commit-ID: LtJp2J46V19

--HG--
extra : rebase_source : e8e56560bd211bfee4baccd8eb3fe44117efa3e2
2016-11-08 15:08:10 +08:00
Ralph Giles b9e0fc97c3 Bug 1314460 - Update rust mp4parse to v0.6.0. r=kinetik
Result of running the update script.

MozReview-Commit-ID: 4rqFqaFJ028

--HG--
extra : rebase_source : 011cd38d524e2609e2656a084c2ac920d407488f
2016-11-01 16:07:32 -07:00
Ralph Giles 5c1056e5fa Bug 1314460 - Update mp4parse import script for v0.6.0. r=kinetik
Update the import script to reference the latest published release.

Add a cargo-update step to the script. Without this the gecko build
will fail if the declared crate versions change from what is recorded
in the in-tree Cargo.lock files.

Also make it fail on first error.

MozReview-Commit-ID: 6IDK6jdkSm1

--HG--
extra : rebase_source : 0e09eb311a8ba59ad4075f43ab0d9f8a07074e89
2016-11-01 15:54:48 -07:00
Alfredo.Yang 3ae304e16a Bug 1309079 - support mp3-in-mp4 in rust mp4 parser. r=kinetik
MozReview-Commit-ID: LieZ5O222LT

--HG--
extra : rebase_source : 5662d37ba5ec01ba55d518725b145a442e61c3e4
2016-10-13 10:12:28 +08:00
Ralph Giles 1f1a694612 Bug 1303888 - Fix a logging typo. r=kinetik
The error message refers to video, not audio tracks. Looks like
a cut-and-paste error.

MozReview-Commit-ID: J6ur36FMSRF

--HG--
extra : rebase_source : 626e4b3287ce268d9daee26610a599c721116148
2016-10-25 16:43:28 -07:00
Ralph Giles a45686ff52 Bug 1303888 - Accept flac from the rust mp4parse demuxer. r=kinetik
Recognize FLAC as an audio mimetype in MP4Metadata and prefer
the rust demuxer for it. Stagefright does not support this.

MozReview-Commit-ID: 7T4tCSCCNBk

--HG--
extra : rebase_source : b69c6e35d4e48c4d419856ee979eae893dbc72b1
2016-10-25 16:42:12 -07:00
Ralph Giles c0890a4a2c Bug 1303888 - Update rust mp4parse. r=kinetik
Update to the latest upstream master, including skipping padding
at the end of some boxes, esds parsing and flac support.

MozReview-Commit-ID: GdHEQIrtyLB

--HG--
extra : rebase_source : 97e1d09725d813e0f2b31bed6ce80e16b0701fbe
2016-10-25 19:25:18 -07:00
Gerald Squelart 8f130692e8 Bug 1307945 - ByteWriter asserts that all writes should succeed - r=jya
Writes should always be small, so if any fails, we are in big trouble anyway.
(Effectively ByteWriter is infallible.)

MozReview-Commit-ID: CJVsrTx0PFh

--HG--
extra : rebase_source : fa4dd3230382620a393c8555338e8956df83f748
2016-10-16 19:10:42 +11:00
Gerald Squelart 6b07d57631 Bug 1307945 - Minor style fix - r=jya
MozReview-Commit-ID: 6kTDaJoM9hG

--HG--
extra : rebase_source : 58576b7d4239b03e76ad37b28a8bbed43f5849c3
2016-10-13 15:33:53 +11:00
Sebastian Hengst cdcc9e20da Bug 1304829 - rename RELEASE_BUILD to RELEASE_OR_BETA: main part. r=ted,Mossop
MozReview-Commit-ID: 1lCt0xTMV5O
2016-10-08 11:14:49 +02:00
Jean-Yves Avenard 4a7fd611df Bug 1301869: P1. Only add SPS/PPS on the first keyframe. r=cpearce
When we add SPS/PPS NAL in front of each keyframe data, this somehow makes the WMF decoder to misbehave and to always return an invalid timestamp.

MozReview-Commit-ID: 2SzTiwP0ii1

--HG--
extra : rebase_source : b499c83d504df772e6d722053630ff4d92306d4f
2016-10-06 11:38:52 +11:00
Ralph Giles 17ec242a0b Bug 1306755 - Copy rust mp4parse tests into the tree. r=kinetik
Having these files in-tree makes it possible to run
`cargo test` to verify changes.

MozReview-Commit-ID: 6x4XZaw4UtD

--HG--
extra : rebase_source : 293572cbbc21929b43a735bf53ddb5521503bcd2
2016-09-30 14:37:54 -07:00
Alfredo.Yang 880bc1789a Bug 1304254 - Use fragment_duration as track duration. r=rillian
MozReview-Commit-ID: 6Y8kFiDmE1y

--HG--
extra : rebase_source : dcce69cfee361edd92fdcb3d41d198a915bc3a48
2016-09-22 19:30:11 +08:00
Ralph Giles ac89e3a7ca Bug 1306164 - Drop byteorder from mp4parse update script. r=kinetik
The byteorder dependency was moved to $topsrcdir/third_party/rust/
in bug 1298422 but this import script wasn't updated.

MozReview-Commit-ID: CzoxsFPYpIm

--HG--
extra : rebase_source : 18bcc2e3351887f0593e2167acc59c6c4f6003e8
2016-09-29 15:28:31 -07:00
Alfredo.Yang a5e375a095 Bug 1306164 - Update rust parser for fragmented file. r=rillian
MozReview-Commit-ID: BzRxyH9tYZL

--HG--
extra : rebase_source : c217dab83d6646c37e74985cee5ce743c9f880b5
2016-09-29 08:56:48 +08:00
Matthew Gregan 318e608e57 Bug 1305596 - Convert debug-only asserts added in bug 1303247 to release asserts. r=rillian 2016-09-27 13:09:21 +13:00
Alfredo.Yang 849aca37da Bug 1304820 - use stagefright instead of rust parser when rust parser fails to parse a file. r=kinetik
MozReview-Commit-ID: 8tjl9MICvWo

--HG--
extra : rebase_source : 7bb71369eb969fd762d99079dbc7f174e1f0d75e
2016-09-23 14:37:07 +08:00
Matthew Gregan 269fe42c7e Bug 1304303 - Speed up default initialization of SampleInfoSize table. r=gerald
MozReview-Commit-ID: 9dValMxqVkh
2016-09-22 17:40:48 +12:00
Phil Ringnalda c9972b98e7 Backed out changeset 9b7d9479690e (bug 1304303) for gtest and mda failures
CLOSED TREE
2016-09-21 19:56:58 -07:00
Matthew Gregan db1ebdc0cf Bug 1304303 - Speed up default initialization of SampleInfoSize table. r=gerald
MozReview-Commit-ID: 9dValMxqVkh
2016-09-22 12:59:27 +12:00
Matthew Gregan 8a99e587f7 Bug 1303247 - Add a dev-only pref to treat mismatches between Rust and Stagefright as a fatal error. r=rillian
MozReview-Commit-ID: Jl69N9VQTXR
2016-09-21 17:45:47 +12:00
Matthew Gregan e98062c24c Bug 1303247 - Fix track indexing and AudioInfo initialization in Rust metadata parser. r=rillian 2016-09-21 17:45:46 +12:00
Iris Hsiao b7a1f3a808 Backed out changeset 516597939e1a (bug 1303247)
CLOSED TREE
2016-09-21 12:25:49 +08:00
Iris Hsiao 2b06627798 Backed out changeset 85cacbef3243 (bug 1303247) for GTest Assertion failures
CLOSED TREE
2016-09-21 12:25:36 +08:00
Matthew Gregan 1b172c6726 Bug 1303247 - Add a dev-only pref to treat mismatches between Rust and Stagefright as a fatal error. r=rillian 2016-09-19 14:31:45 +12:00
Matthew Gregan f1cda1cfce Bug 1303247 - Fix track indexing and AudioInfo initialization in Rust metadata parser. r=rillian 2016-09-21 14:30:04 +12:00
Gerald Squelart 1bd0c30faa Bug 1301293 - Create gtest for test case from bug 1301065. r=kinetik
Altered copies of the base test case helps verify different duration overflow
boundaries.

Track durations are now checked (including for previous test cases).

MozReview-Commit-ID: CeOtnAAg1mg
2016-09-14 11:04:22 +10:00
Gerald Squelart 2bb436aaa7 Bug 1301293 - Catch duration overflows in mdhd and mehd. r=kinetik
A better timescaled units to microseconds routine lessens the likelihood of
overflows.

MozReview-Commit-ID: J0J8ZTG3Rq
2016-09-13 22:46:03 +10:00
Matthew Gregan 9bfc545de2 Bug 1302926 - Report MP4Parse telemetry for all tracks, not just the first one. r=gerald 2016-09-16 12:54:38 +12:00
Carsten "Tomcat" Book 25a074d342 merge mozilla-inbound to mozilla-central a=merge 2016-09-15 11:59:50 +02:00
Ted Mielczarek e254cc07b8 bug 1298422 - vendor byteorder into third-party/rust. r=froydnj
MozReview-Commit-ID: ChKCKiIVEfq

--HG--
extra : rebase_source : c0da7411a2f0b7fc171c9ebb99fce91361944aa5
2016-09-08 15:12:34 -07:00
Ralph Giles 73dcf90f19 Bug 1301065 - Update rust mp4parse to v0.5.1. r=kinetik
Result of running the update script, followed by `cargo update`
in tookit/library/rust/.

MozReview-Commit-ID: LNdvuOqVx9a

--HG--
extra : rebase_source : 70b263d1ba1867b5b2b907530fab4beedc25ae56
2016-09-13 09:16:44 -07:00
Ralph Giles 83e928ac66 Bug 1301065 - Bump requested rust mp4parse to v0.5.1. r=kinetik
MozReview-Commit-ID: IlWKJcV3xWB

--HG--
extra : rebase_source : a4d1ddce386e188ffbee5ffbdc75d5ffc9418794
2016-09-13 08:31:47 -07:00
Alfredo.Yang 2488fefb27 Bug 1240412 - add VP9-in-MP4 support to Rust demuxer. r=rillian
MozReview-Commit-ID: 1Yq8OOV3kvM

--HG--
extra : rebase_source : d6ee4404eafef8a476767ebfd17a195f81dcf275
2016-08-29 14:37:22 +08:00
Jean-Yves Avenard 4b2bec7900 Bug 1300296: P1. Add method to determine if an H264 frame is an I-Frame. r=jesup
We do so by checking the frame data for NAL of type 5 as per ISO IEC 14496-2.

MozReview-Commit-ID: JFeLysrZ6aG

--HG--
extra : rebase_source : edf599210fd3a995f3538a7e54e083894620bf9e
2016-09-04 21:28:24 +10:00