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

64 Коммитов

Автор SHA1 Сообщение Дата
Jean-Yves Avenard 0160e2fd09 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 : 293d8e184cc7b326e6b84d038fd98ff94703f31e
2016-08-17 15:27:43 +10:00
Wes Kocher 24cb21d4f6 Backed out 15 changesets (bug 1195723) for various media test failures/unexpected-passes a=backout
Backed out changeset 2a3b10281c9c (bug 1195723)
Backed out changeset c3775a6225d8 (bug 1195723)
Backed out changeset ba0aeb71c672 (bug 1195723)
Backed out changeset 894061e6037e (bug 1195723)
Backed out changeset 4637f8be98bb (bug 1195723)
Backed out changeset c2664064fa55 (bug 1195723)
Backed out changeset 39908ea4c390 (bug 1195723)
Backed out changeset 3fcb5682049a (bug 1195723)
Backed out changeset 867d6507a381 (bug 1195723)
Backed out changeset c938ad9dd11c (bug 1195723)
Backed out changeset 7bdb9540b60f (bug 1195723)
Backed out changeset a4f7a73c04fa (bug 1195723)
Backed out changeset 7f86beff4263 (bug 1195723)
Backed out changeset efb6bcf743e7 (bug 1195723)
Backed out changeset 04eceefa54c7 (bug 1195723)
2016-08-22 10:07:25 -07: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
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
Carsten "Tomcat" Book 336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Nathan Froyd 82f3460a41 Bug 1288390 - avoid a few more warnings in third-party code when compiling with clang; r=mshal 2016-07-21 18:58:37 -04: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
Ralph Giles c95acf92c1 Bug 1243234 - Move mp4parse into a crate subdirectory. r=kinetik
If we can get this to work it will be less confusing, I think.

Byteorder has to be in a subdir while we're treating it as a mod.

We may have to add yet another directory when we have crate support
but until then all the rust code is at least self-contained..


--HG--
rename : media/libstagefright/binding/byteorder/mod.rs => media/libstagefright/binding/mp4parse/byteorder/mod.rs
rename : media/libstagefright/binding/byteorder/new.rs => media/libstagefright/binding/mp4parse/byteorder/new.rs
rename : media/libstagefright/binding/capi.rs => media/libstagefright/binding/mp4parse/capi.rs
rename : media/libstagefright/binding/MP4Metadata.rs => media/libstagefright/binding/mp4parse/lib.rs
2016-01-28 14:25:18 +13:00
Ralph Giles 3c67e8b631 Bug 1229615 - Conditionalize mp4parse.h export. r=kinetik 2015-12-02 17:21:54 -08:00
Matthew Gregan dee904221c Bug 1229615 - Compare track counts between rust and stagefright. r=rillian
Use the new capi calls in rust mp4parse v0.1.5 to query
audio and video track counts and compare with what we
get from stagefright.
2015-12-02 17:21:49 -08:00
Wes Kocher ef60ffb91e Backed out 3 changesets (bug 1229615) for crashtest crashes in 0-timescale.html CLOSED TREE
Backed out changeset aa313047a6de (bug 1229615)
Backed out changeset 80aa7ecf9456 (bug 1229615)
Backed out changeset d7bf9994e1b0 (bug 1229615)

--HG--
extra : commitid : 782ajuO9h9t
2015-12-02 15:00:42 -08:00
Ralph Giles fef6163774 Bug 1229615 - Conditionalize mp4parse.h export. r=kinetik 2015-12-02 12:22:09 -08:00
Matthew Gregan 6b03728600 Bug 1229615 - Compare track counts between rust and stagefright. r=rillian
Use the new capi calls in rust mp4parse v0.1.5 to query
audio and video track counts and compare with what we
get from stagefright.
2015-12-02 12:19:29 -08:00
Nicholas Nethercote 5b34a25af2 Bug 1216020 - Comment all ALLOW_COMPILER_WARNINGS lines. r=glandium.
DONTBUILD because it only changes comments.

This will hopefully prevent confusion like that in bug 1215903.

--HG--
extra : rebase_source : f0a601d77b5f42b4fbe090693234f934e3becc42
2015-10-19 18:05:20 -07:00
Gerald Squelart 60a48742e4 Bug 1211741 - Remove libstagefright ID3 files. r=k17e 2015-10-06 14:24:00 +02:00
Johannes Pfrang 025fee3612 Bug 1202266 - Suppress '-Wformat-security' in libstagefright CXXFLAGS. r=kentuckyfriedtakahe
--HG--
extra : rebase_source : a93c2b3648b6dd14bf0a679fa241e8780c693780
2015-09-10 09:49:00 +02:00
Nicholas Nethercote 24cd9d5226 Bug 1203005 - Remove all traces of -Wdeclaration-after-statement. r=glandium.
Even though we compile C code as C99, we used to need
-Wdeclaration-after-statement because MSVC didn't allow declarations after
statements.

However, Visual Studio 2013 added support, so we can now merrily mix
declarations and statements everywhere. Hooray.

--HG--
extra : rebase_source : 00a89fed733008785429827408a0c6c466971080
2015-09-09 04:57:44 -07:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Alfredo Yang 8393a2233e Bug 1163486 - Remove MP4Reader. r=jya 2015-07-21 02:48:00 +02:00
Carsten "Tomcat" Book de3872af29 Backed out changeset 1704ea727e81 (bug 1163486) for at least b2g bustage 2015-07-21 08:42:54 +02:00
Alfredo Yang 23c919b20e Bug 1163486 - Remove MP4Reader. r=jya 2015-07-20 19:25:00 +02:00
Ralph Giles 35b5a70f29 Bug 1175322 - Import mp4parse v0.0.8 source. r=k17e
Source from https://notabug.org/rillian/mp4parse-rust
2015-06-16 15:50:00 -07:00
Eugen Sawin e03391c07e Bug 1166779 - Rebase MP3 demuxer on MediaDataDemuxer interface. r=kinetik
--HG--
rename : media/libstagefright/binding/MP3TrackDemuxer.cpp => dom/media/MP3Demuxer.cpp
rename : media/libstagefright/binding/include/mp4_demuxer/MP3TrackDemuxer.h => dom/media/MP3Demuxer.h
extra : rebase_source : 1cbc9b841cdba57e9d72c00f6c6ec95eebb3b371
2015-06-05 14:34:19 +02:00
Eugen Sawin 8597d299a4 Bug 1093815 - Add MP3 track demuxer. r=kinetik
---
 media/libstagefright/binding/MP3TrackDemuxer.cpp   | 755 +++++++++++++++++++++
 .../binding/include/mp4_demuxer/MP3TrackDemuxer.h  | 380 +++++++++++
 media/libstagefright/moz.build                     |   2 +
 3 files changed, 1137 insertions(+)
 create mode 100644 media/libstagefright/binding/MP3TrackDemuxer.cpp
 create mode 100644 media/libstagefright/binding/include/mp4_demuxer/MP3TrackDemuxer.h
2015-05-13 15:15:36 +02:00
Jean-Yves Avenard a8026d01e4 Bug 1156689: Part6. Add ResourceStream class. r=kentuckyfriedtakahe
A Stream abstract over a MediaResource
2015-05-01 15:26:50 +10:00
Jean-Yves Avenard 0e53bf222b Bug 1156689: Part5. Add MP4Metadata class. r=kentuckyfriedtakahe
This allows to abstract the calls to libstagefright and allow future
replacement with our own code.
2015-05-01 15:26:50 +10:00
Jean-Yves Avenard 6049519f68 Bug 1156689: Part2. Remove MP4 Index's libstagefright dependency. r=kentuckyfriedtakahe 2015-05-01 15:26:50 +10:00
Nathan Froyd be6934841f Bug 1157290 - fix modeline in media/libstagefright/moz.build; r=me, DONTBUILD for comment-only fix 2015-04-22 11:24:10 -04:00
Chris Peterson df594b2b0d Bug 1143336 - Fix and suppress -Wunreachable-code-return warnings in media code. r=cajbir 2015-03-14 13:47:51 -07:00
Anthony Jones 8eff7a3ee8 Bug 1135544 - Create an abstract base class for a track demuxer; r=kinetik 2015-03-05 17:30:44 +13:00
Edwin Flores 629afc55c1 Bug 1118597 - Parse sinf boxes in MoofParser - r=jya 2015-01-19 21:39:00 +13:00
Jean-Yves Avenard c40872326d Bug 1111328: Add H264 SPS NAL decoder. r=kentuckyfriedtakahe 2014-12-24 23:11:35 +11:00
Jean-Yves Avenard 0dabc8a96c Bug 1110534: Add AVC Annex B to AVCC format conversion utility. r=kentuckyfriedtakahe
Based on original code by Baptiste Coudurier extracted from FFmpeg's libavformat
2014-12-23 14:36:09 +11:00
Anthony Jones 92e8ac3174 Bug 1098126 - Add CENC support to MoofParser; r=edwin 2014-12-16 18:10:45 +13:00
Ryan VanderMeulen ba53ff1161 Backed out 5 changesets (bug 1098126) for Windows web-platform-test failures.
Backed out changeset 7cf7a6ea28c2 (bug 1098126)
Backed out changeset 21aab02fb41c (bug 1098126)
Backed out changeset 55dba2167b36 (bug 1098126)
Backed out changeset 73c2707c4f60 (bug 1098126)
Backed out changeset 4d6a52c5fb75 (bug 1098126)
2014-12-05 20:09:54 -05:00
Anthony Jones 4a402212d8 Bug 1098126 - Add CENC support to MoofParser; r=edwin 2014-12-05 14:17:23 -08:00
James Willcox ddccc3f031 Bug 1099305 - Disable verbose logging in libstagefright r=cpearce
--HG--
extra : rebase_source : 266f7f77fc0e7819b5222111d7b45a6c9f931c76
2014-11-18 19:29:12 -06:00
Ralph Giles 0b4170ee69 Bug 1073805 - Export Adts wrapper header. r=kinetik
We need this to be public so we can call it from the Platform
Decoder Modules in gecko.
2014-10-30 15:43:00 -07:00
Anthony Jones 5affff49b6 Bug 1034444 - Unit tests for GetBuffered() and Interval; r=cpearce 2014-06-02 17:38:04 +02:00
Anthony Jones b5c59c078b Bug 1057203 - Remove MoofParser dependency on stagefright; r=edwin 2014-08-26 16:53:48 +12:00
Mike Hommey 9b3caa8d68 Bug 1048064 - Fix libstagefright build on GNU/kFreeBSD. r=ajones 2014-08-05 16:07:28 +09:00
Anthony Jones d66cd54dfd Bug 1045909 - Fix buffer range calculation for fMP4; r=edwin 2014-08-05 18:12:48 +12:00
Wes Kocher 2cccd1da41 Backed out 2 changesets (bug 1045909, bug 1045915) for build failures
Backed out changeset 70e3d6723e8e (bug 1045909)
Backed out changeset d137dd97d955 (bug 1045915)
2014-08-04 19:18:34 -07:00
Anthony Jones 271a7fa9ac Bug 1045909 - Fix buffer range calculation for fMP4; r=edwin 2014-08-05 13:35:04 +12:00
Mike Hommey bc5d6801bb Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
Chris Pearce 2e7b854815 Bug 1041346 - Remove MediaBufferGroup from libstagefright, since it's no longer used. r=kentuckyfriedtakahe 2014-07-21 14:00:42 +12:00
Anthony Jones f156664cf8 Bug 1034444 - Make MP4Reader::GetBuffered() accurate; r=edwin,cpearce 2014-06-02 17:38:04 +02:00