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

358 Коммитов

Автор SHA1 Сообщение Дата
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
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
Ralph Giles 104d30ab53 Bug 1300219 - Update mp4parse to v0.5.0. r=kinetik
Result of running the update script and updating gecko's
integration crate for the layout change.

MozReview-Commit-ID: GaIMFKmPmtf

--HG--
extra : rebase_source : 0d3a2f1d211840879e562cb56afcc9ef7e38c730
2016-09-02 14:27:50 -07:00
Ralph Giles 3985298455 Bug 1300219 - Update mp4parse vendoring script for v0.5.0. r=kinetik
This release splits the capi into a separate crate and adds
mp4parse_is_fragmented() for vp9 support.

MozReview-Commit-ID: JkwylmdfPa9

--HG--
extra : rebase_source : b74b7e20aaf49fe1b2b7121562352c755db3aff3
2016-09-02 14:04:38 -07:00
Gerald Squelart df2f457e83 Bug 1298710 - Remove ByteReader::DiscardRemaining and AutoByteReader - r=jya
DiscardRemaning was needed to prevent debug-time assertion that the buffer was
read completely or explicitly discarded.

However this required extra work in cases where buffer didn't need to be read
to the end.
And also it could cause crashes (in debug versions) if a buffer was not fully
read, be it because the parser was incorrect or because the media file itself
was wrong (though possibly still readable despite that).
Finding parser issues is still possible by manually instrumenting ByteReader
during development.
And reading media file with small recoverable errors is a bonus.

MozReview-Commit-ID: 2RUYzaYAeRW

--HG--
extra : rebase_source : 26c41758b1b2c87542bf4e41d08e361198ca5b13
2016-09-04 18:33:30 +10:00
Gerald Squelart d56f52d1c6 Bug 1298271 - Make BoxReader use AutoByteReader - r=jya
This is done by moving FlacFrameParsers' AutoByteReader to a more public spot
in libstagefright's bindings.
Using AutoByteReader means there is no more need for explicit calls to
DiscardRemaining(); which means our parsers relying on BoxReader will be more
lenient about boxes that are larger than needed.

MozReview-Commit-ID: 3EERU749WYB

--HG--
extra : rebase_source : 6deba02ac553303b0a2b694c24bfcb54c2e732b1
2016-08-26 18:14:24 +10:00
Gerald Squelart 2088a45732 Bug 1298275 - Make ~AutoByteReader non-virtual - r=jya
Also ByteReader and AutoByteReader are marked RAII, to help prevent misuses.

MozReview-Commit-ID: 7oklXs4QMnq

--HG--
extra : rebase_source : 54fca3168a70d951e6012baea4bf0544827cae11
2016-08-26 17:27:23 +10:00
Gerald Squelart 43add788a7 Bug 1296532 - Use fallible arrays in MoofParser - r=jya
Use fallible allocations for arrays that could get arbitrarily long
(independant of the media file size.)

MozReview-Commit-ID: LWiKFVpYK5d

--HG--
extra : rebase_source : bc603c30214768b9a39c83bd92bc0df31d1498e4
2016-08-25 16:41:50 +10:00
Gerald Squelart 81f1aedf91 Bug 1298259 - better saio check - r=jya
MozReview-Commit-ID: 62nzw9h1f1X

--HG--
extra : rebase_source : 1eb533811082b72e4a1459bb796f1706a570ec3e
2016-08-26 13:01:32 +10:00
Kan-Ru Chen b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Jean-Yves Avenard a18ecfafaa Bug 1280346: [mp4] Always use SPS dimensions if available. r=gerald,rillian
H264 decoders always use those anyway, so may as well use them in the demuxer if SPS NAL is available.
This guarantees that we have correct dimensions when reading the MP4 metadata, and will have the side benefit that when loadedmetadata is fired, the dimensions provided at the time will be final; not having to wait to decode the first frame.

MozReview-Commit-ID: 3j70Xqw8jJY

--HG--
extra : rebase_source : 6bc0f1fa1c2db35bcaa683cc1a68042d122e2892
2016-08-22 06:39:41 +10:00
Jean-Yves Avenard 28274a3ea1 Bug 1195723: [flac] P7. Add flac demuxer. r=kamidphish
MozReview-Commit-ID: 5db0hAsDjji

--HG--
extra : rebase_source : e9c316502f2a4cd7bb06796a43f4c4807d5ac6f3
2016-08-17 15:40:14 +10:00
Jean-Yves Avenard 6a9478d232 Bug 1195723: P5. Add BitReader class. r=kamidphish
Extracted from the H264 codec and using the stagefright one.

MozReview-Commit-ID: ENjsDvB9MYp

--HG--
extra : rebase_source : 51b92215622df8cdcb65453013ab8022923dd9e8
2016-08-17 15:27:43 +10:00
Ralph Giles 9898427959 Bug 1295666 - Build byteorder as a separate crate. r=kinetik
Run the updated import script to split the in-tree byteorder
code into a separate directory and build it as a dependent crate.

MozReview-Commit-ID: EI5X4icOdmM

--HG--
extra : rebase_source : fa0d4cce8503ede5d2fbefc4d4b78735f2140c33
2016-08-16 11:06:46 -07:00
Ralph Giles b803c56c4a Bug 1295666 - Import byteorder as a separate crate. r=kinetik
Now that bug 1231764 has landed cargo support in the build system,
we can remove the patches hacking the byteorder crate into a
module within the mp4parse crate.

This updates the import script to copy the byteorder source
files to a separate directory and removes the obsolete patches.

We update the patch against mp4parse/Cargo.toml to add a dependency
path referring to the new source location. This tells cargo to use
the in-tree copy instead of trying to pull from a registery.

MozReview-Commit-ID: FHMkyEq2HdH

--HG--
extra : rebase_source : 49e893008bb120740da92e81444a4bd43f3265d4
2016-08-16 10:51:46 -07:00
Nathan Froyd f7fb6722a6 Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester
This patch is really two separate changes.

The first change is that rust crates are large, standalone entities that
may contain multitudes of source files.  It therefore doesn't make sense
to keep them in SOURCES, as we have been doing.  Moving to use cargo
will require a higher-level approach, which suggests that we need a
different, higher-level representation for Rust sources in the build
system.

The representation here is to have the build system refer to things
defined in Cargo.toml files as the entities dealt with in the build
system, and let Cargo deal with the details of actually building things.
This approach means that adding a new crate to an existing library just
requires editing Rust and Cargo.toml files, rather than dealing with
moz.build, which seems more natural to Rust programmers.  By having the
source files for libraries (and binaries in subsequent iterations of
this support) checked in to the tree, we can also take advantage of
Cargo.lock files.

The second is that we switch the core build system over to building via
cargo, rather than invoking rustc directly.

We also clean up a number of leftover things from the Old Way of doing
things.  A number of tests are added to confirm that we'll only permit
crates to be built that have dependencies in-tree.
2016-08-06 00:49:26 -04:00
Wes Kocher 9605851be0 Backed out 7 changesets (bug 1231764) for apparently causing linux debug wpt bustage
Backed out changeset 4b71272c92cf (bug 1231764)
Backed out changeset 234d8a930afa (bug 1231764)
Backed out changeset f9b204c2f5a7 (bug 1231764)
Backed out changeset f933119e57e4 (bug 1231764)
Backed out changeset e3af0b1d3473 (bug 1231764)
Backed out changeset 643b03aae1dd (bug 1231764)
Backed out changeset a945dbf63410 (bug 1231764)

--HG--
extra : rebase_source : e71360fa4b5e3e74859c82e74e183e13e6211c4c
2016-08-03 16:27:06 -07:00
Nathan Froyd 6b2618fb44 Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester
This patch is really two separate changes.

The first change is that rust crates are large, standalone entities that
may contain multitudes of source files.  It therefore doesn't make sense
to keep them in SOURCES, as we have been doing.  Moving to use cargo
will require a higher-level approach, which suggests that we need a
different, higher-level representation for Rust sources in the build
system.

The representation here is to have the build system refer to things
defined in Cargo.toml files as the entities dealt with in the build
system, and let Cargo deal with the details of actually building things.
This approach means that adding a new crate to an existing library just
requires editing Rust and Cargo.toml files, rather than dealing with
moz.build, which seems more natural to Rust programmers.  By having the
source files for libraries (and binaries in subsequent iterations of
this support) checked in to the tree, we can also take advantage of
Cargo.lock files.

The second is that we switch the core build system over to building via
cargo, rather than invoking rustc directly.

We also clean up a number of leftover things from the Old Way of doing
things.  A number of tests are added to confirm that we'll only permit
crates to be built that have dependencies in-tree.
2016-08-03 19:40:41 -04:00
Kaku Kuo 3ea8ae9a44 Bug 1274626 part 3 - make the blank video decoder return samples in PTS order; r=jya
MozReview-Commit-ID: EULu34WIcw0

--HG--
rename : dom/media/platforms/apple/ReorderQueue.h => dom/media/platforms/ReorderQueue.h
extra : transplant_source : %05%DF%05%26%B4B%CF%CEv_%A7%3C9%EDo%1B%C6%B0%1Eh
2016-08-03 15:22:49 +08:00
Carsten "Tomcat" Book 2bcc300cca Backed out changeset 12e3777de139 (bug 1274626)
--HG--
rename : dom/media/platforms/ReorderQueue.h => dom/media/platforms/apple/ReorderQueue.h
2016-08-02 17:47:29 +02:00
Kaku Kuo d22560cfe6 Bug 1274626 - Part 3 - make the blank video decoder return samples in PTS order; r=jya
MozReview-Commit-ID: EULu34WIcw0

--HG--
rename : dom/media/platforms/apple/ReorderQueue.h => dom/media/platforms/ReorderQueue.h
extra : transplant_source : %3F%DF%9F%E7%C8%AC%9F%3B%FB%94%8C%09%0A%16%D8%9F%0D%1F%9F%3E
2016-08-01 19:04:30 +08:00
Iris Hsiao b3cb3cf81f Backed out changeset 128c1454e51f (bug 1280346) for Mochitest failed 2016-07-19 13:01:53 +08:00
Jean-Yves Avenard e1a20915fc Bug 1280346: Only consider a video info as invalid if image dimensions are null. r=rillian
Display dimensions are actually determined from the SPS NAL with h264 and as such we don't really care on what is found in the container (which may be incorrect).

MozReview-Commit-ID: 7JmxIawNOOn

--HG--
extra : rebase_source : 9454b07742af880cd992a92517880788bd18a712
2016-07-12 16:46:33 +10:00
Ralph Giles 705dbc4fe9 Bug 1284589 - Result of running the update script. r=kinetik
Implement the changes by running the new update script.

MozReview-Commit-ID: 2gbmdq4Mlri

--HG--
rename : media/libstagefright/binding/mp4parse/boxes.rs => media/libstagefright/binding/mp4parse/src/boxes.rs
rename : media/libstagefright/binding/mp4parse/byteorder/mod.rs => media/libstagefright/binding/mp4parse/src/byteorder/mod.rs
rename : media/libstagefright/binding/mp4parse/byteorder/new.rs => media/libstagefright/binding/mp4parse/src/byteorder/new.rs
rename : media/libstagefright/binding/mp4parse/capi.rs => media/libstagefright/binding/mp4parse/src/capi.rs
rename : media/libstagefright/binding/mp4parse/lib.rs => media/libstagefright/binding/mp4parse/src/lib.rs
rename : media/libstagefright/binding/mp4parse/tests.rs => media/libstagefright/binding/mp4parse/src/tests.rs
extra : rebase_source : dee1bc8dc923d4d8edc060a2ef14161d78c5e4dc
2016-07-05 11:10:15 -07:00
Ralph Giles df3f69672e Bug 1284589 - Move mp4parse source to match upstream. r=kinetik
Make Cargo.toml, build.rs and standard cargo source package
layout available in-tree to facilitate testing cargo-driven
builds of rust code.

Update the moz.build script to build using plain rustc as
before, but referencing the new source location.

MozReview-Commit-ID: 11zuebic9tU

--HG--
extra : rebase_source : 1cb71896ae5dd33d1237ca04ec27da60b2256dad
2016-07-05 11:08:37 -07:00
Alexandre Lissy a09dfe4799 Bug 1283439 - Include OpusDecoder.h only for Rust MP4 parsing r=kinetik
MozReview-Commit-ID: 9zzhvYowlkX

--HG--
extra : rebase_source : d10ddb0632a6bf35d4f92080438a5f01f6466b72
2016-06-30 19:13:53 +02:00
Ralph Giles b9106558db Bug 1282963 - Share CodecDelay prepend code. r=kinetik
Both the WebM and mp4 demuxers need to pack this value into
the the CodecSpecificConfig, so move the shared implementation
to the OpusDecoder, near where it is unpacked so the two can
be kept in sync.

MozReview-Commit-ID: 2pQaruJoAWr
2016-06-29 15:49:04 -07:00
Ralph Giles af27dceab2 Bug 1267887 - Document MP4AudioInfo::IsValid(). r=jya
Jean-Yves and I both found this logic confusing.

MozReview-Commit-ID: C5phemRPDQZ
2016-06-29 09:13:15 -07:00