Commit Graph

174 Commits

Author SHA1 Message Date
Wes Kocher
bd796581dc Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Eric Rahm
ae32743ed2 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 14:31:01 -07:00
Birunthan Mohanathas
399e0c3be3 Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElements calls. r=froydnj 2015-05-28 11:07:43 -07:00
Jean-Yves Avenard
4dc728204b Bug 1163227: Part7. Never do blocking read if we don't have data. r=kentuckyfriedtakahe 2015-05-25 15:09:16 +10:00
Eric Rahm
ccf1ec07c6 Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Eric Rahm
c5e63515bf Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Eric Rahm
5dba223914 Bug 1164622 - Part 1: Remove instances of #ifdef PR_LOGGING in media. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-14 10:13:24 -07:00
Eugen Sawin
6875d494b4 Bug 1093815 - Remove ambiguous typedefs. r=kinetik
---
 media/libstagefright/binding/include/demuxer/TrackDemuxer.h    | 4 ++--
 media/libstagefright/binding/include/mp4_demuxer/DecoderData.h | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)
2015-05-13 15:15:43 +02:00
Eugen Sawin
10546516a1 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
4e426e8b6a Bug 1159027: Part4. Include ftyp box when parsing init segment. r=kentuckyfriedtakahe 2015-05-11 20:57:37 +10:00
Jean-Yves Avenard
c1dc4a31b2 Bug 1159027: Part2. Extend BufferStream to work with external buffer array. r=kentuckyfriedtakahe
Also make BufferStream::AppendBytes fallible
2015-05-11 20:54:59 +10:00
Jean-Yves Avenard
02b49e39b0 Bug 1159027: Part1. Add MP4Metadata method to retrieve init segment byte range. r=cpearce 2015-05-11 20:54:54 +10:00
Jean-Yves Avenard
d6a18ddf1c Bug 1156689: Part9. Remove unused headers. r=kentuckfriedtakahe 2015-05-01 15:26:51 +10:00
Jean-Yves Avenard
b4ad245369 Bug 1156689: Part8. Use new MoofParser::HasMetadata in MP4Metadata. r=kentuckyfriedtakahe
This allows MP4Reader::ReadMetadata() to no be unecessarily blocking on partial
init segment.
2015-05-01 15:26:50 +10:00
Jean-Yves Avenard
345f13f99d Bug 1156689: Part7. Add MoofParser::HasMetadata method. r=kentuckyfriedtakahe
Allows to check if we have a full MP4 metadata's atom available in our stream.
2015-05-01 15:26:50 +10:00
Jean-Yves Avenard
f440878dfa 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
203bd1741a 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
ff1f1bb292 Bug 1156689: Part2. Remove MP4 Index's libstagefright dependency. r=kentuckyfriedtakahe 2015-05-01 15:26:50 +10:00
Jean-Yves Avenard
8b4c79cc59 Bug 1156689: Part1. Remove mp4_demuxer::TrackType. r=cpearce 2015-05-01 15:26:50 +10:00
Blake Wu
a59b6645db Bug 1153876 - Support MPEG-4 Codec, mp4v-es. r=jya. r=cpearce. 2015-04-20 21:57:29 +08:00
Jean-Yves Avenard
adf3258db5 Bug 1153094: Rename LargeDataBuffer and DataBuffer object. r=cpearce
This causes conflicts with webRTC libraries that use those names already. The
linker appears to get it wrong and calls the destructor of the wrong class.
2015-04-15 15:27:38 +10:00
Jean-Yves Avenard
263a15323b Bug 1153049: Part4. Remove redundant mHasAudio/mHasVideo member. r=cpearce 2015-04-14 15:17:51 +10:00
Jean-Yves Avenard
a09efe95ab Bug 1153049: Part3. Using AudioInfo/VideoInfo object. r=cpearce
This remove all remaining references to stagefright/MP4 specific objects.
2015-04-14 15:16:32 +10:00
Jean-Yves Avenard
4ab7cd6c92 Bug 1152658: Use MediaRawDataWriter to access MediaRawData::mCrypto. r=cpearce 2015-04-14 15:15:46 +10:00
Chris Double
935f513b7d Bug 1148203 - Fix build errors with combinations of enable/disable of ffmp4/ffmpeg/eme - r=cpearce,ted
Fixes build error with  all three disabled. Prevents other combinations
that cause build errors by detecting them at configure time and displaying
an error message.
2015-04-13 11:07:14 +12:00
Jean-Yves Avenard
36321df381 Bug 1153097: Use 32 bits int to compare frequencies. r=rillian
Also potentially fix out of bound memory access.
2015-04-12 18:22:07 +10:00
Jean-Yves Avenard
88d8084384 Bug 1152652: Part1. Use mStandardMozillaStyle for crypto classes. r=edwin 2015-04-09 21:14:56 +10:00
Jean-Yves Avenard
6f34756234 Bug 1150853: Part2. Use new MediaRawObject across the board. r=cpearce. 2015-04-09 21:14:55 +10:00
Jean-Yves Avenard
5ed48f784d Bug 1150853: Part1. Create MediaRawData object type. r=cpearce
This object extends MediaData and will be used to contain demuxed compressed
data.
2015-04-09 21:14:55 +10:00
Jean-Yves Avenard
a519f2a93a Bug 1147744: Part2. Properly calculate cropping value. r=k17e
If chroma_format_idc isn't defined, chroma_format_idc shall be inferred to be
equal to 1 (4:2:0 chroma format).
Also, ignore nonsensical cropping values as per spec.
2015-04-08 14:26:38 +10:00
Jean-Yves Avenard
ca52695a18 Bug 1147744: Part1. Round down display size. r=k17e 2015-04-08 14:26:35 +10:00
Jean-Yves Avenard
8a818520ce Bug 1151378: Part3. Fix constness and remove use of reference to refcounted ptr. r=k17e 2015-04-07 20:33:18 +10:00
Jean-Yves Avenard
a391ed4e4a Bug 1151378: Part2. Remove libstagefright depencies from Crypto config. r=edwin 2015-04-07 20:33:18 +10:00
Jean-Yves Avenard
c3605ba928 Bug 1151378: Part1. Remove of now unused code path. r=k17e
libstagefright is now only used to read the metadata.
2015-04-07 20:33:18 +10:00
Jean-Yves Avenard
6be5fedc89 Bug 1145926: Part1. Refactor AVCC wrapper. r=cpearce
Add support for future handling of audio remuxing before conversion.
2015-04-07 20:33:17 +10:00
Jean-Yves Avenard
1a42bca79f Bug 1151360: Allow playback of extended AAC profile audio track. r=k17e 2015-04-07 20:33:17 +10:00
Jean-Yves Avenard
5eadecdf76 Bug 1149278: Limit box reads to resource length. r=k17e
Also, add a safeguard where we will never attempt to read a mp4 box over 32MiB
2015-04-07 20:33:16 +10:00
Edwin Flores
29b990ffae Bug 1147689 - Pass the session ID(s) of an encrypted frame into EME CDMs - r=cpearce 2015-03-26 22:57:36 +13:00
Jean-Yves Avenard
5e847f002d Bug 1145815: Do not report discontinuities less than 35ms. r=k17e 2015-03-25 22:32:21 +11:00
Matt Woodrow
53b24e7491 Bug 1145037 - Remove invalid assertion in MoofParser. r=ajones 2015-03-26 12:57:58 +13:00
Martin Storsjö
72e8225eda Bug 1143491: Parse all trun boxes in MP4 fragments, not only the first one. r=jya 2015-03-23 11:39:27 +02:00
Jean-Yves Avenard
92147becc0 Bug 1146222: use nsAutoCString to store mimetype string. r=karlt
We use a nsAutoCString as the mimetype is typically less than 64 characters
and prevent a heap allocation (and the unecessary fragmentation linked to it)
2015-03-24 14:45:17 +11:00
Ehsan Akhgari
33bb32f549 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Jean-Yves Avenard
e3ec79be6f Bug 1145517: Part2. Follow exactly ITU H.264 7.3.1. r=cpearce
We wouldn't have properly handled sequence of more than two zeros and 0x03.
2015-03-20 19:44:39 +11:00
Jean-Yves Avenard
702d88d999 Bug 1145517: Properly skip the NAL's emulation prevention byte. r=cpearce
Fix typo.
If a sequence of 0x000003 is found, the 0x03 byte is to be skipped.
2015-03-20 18:39:11 +11:00
Jean-Yves Avenard
5e81c329fe Bug 1143516: Ignore SPS's aspect ratio if value is nonsensical. r=cpearce 2015-03-17 16:42:02 +11:00
Jean-Yves Avenard
802039679a Bug 1139271: Part3. Only consider a Box to be available if entire content is available. r=k17e 2015-03-16 23:08:56 +11:00
Jean-Yves Avenard
6d7c84df95 Bug 1139271: Part2. Ignore partial moof. r=k17e 2015-03-16 23:08:56 +11:00
Jean-Yves Avenard
24ffd0669a Bug 1139271: Part1. Add logging when encountering invalid atoms. r=k17e 2015-03-16 23:08:55 +11:00
Bobby Holley
297188ca94 Bug 1141785 - Force all audio samples to be keyframes. r=k17e 2015-03-15 21:29:55 -07:00