Commit Graph

16 Commits

Author SHA1 Message Date
Chris Pearce
3c3331c94e Bug 1047824 - Make Apple PDM handle Shutdown() call on non-main thread. r=rillian 2014-08-03 19:29:19 +12:00
Ralph Giles
2e9e69a4dc Bug 1046301 - AppleATDecoder: call DrainComplete. r=cpearce
Propagate changes from bug 1039128.
2014-07-30 16:07:00 -07:00
Ralph Giles
c6fb82a56d Bug 1046301 - AppleVTDecoder: call DrainComplete. r=cpearce
Propagate changes from bug 1039128 and some other cleanup.
2014-07-30 16:06:00 -07:00
Daniel Holbert
aa377700c6 Bug 1046282 part 4: Make Create*Decoder functions return already_AddRefed. r=rillian 2014-07-30 18:40:21 -07:00
Daniel Holbert
07ea0b12df Bug 1046282 part 1: Make Create*Decoder function-signatures use a consistent style. r=rillian 2014-07-30 18:40:14 -07:00
Ralph Giles
42bbe06969 Bug 941296 - Fix non-unified build. r=bustage CLOSED TREE
We need to include a headers defining nsrefcnt and NS_IsMainThread(),
and make sure we reference the CMLinker versions of the CoreMedia
functions rather than the system ones.
2014-07-30 11:43:05 -07:00
Ralph Giles
f43eae08fb Bug 1043695 - Fix comment formatting. r=cpearce 2014-07-26 23:45:00 -07:00
Ralph Giles
b56cc112f0 Bug 1043695 - Add a frame reorder queue. r=cpearce
This fixes the frame drops on test.mp4. For now it just
assumes a reorder depth of 3, but we need to plumb the
actual value through the demuxer.

Based on now-removed code from Edwin's FFmpegH264Decoder.
2014-07-24 17:08:00 -07:00
Ralph Giles
9fcd06be4b Bug 1043695 - Try passing zero for DTS instead of PTS. r=cpearce
Suggestion from ajones to make it fail more obviously if the lack
of DTS values causes a problem. Doesn't seem to make a difference.
2014-07-24 16:58:00 -07:00
Ralph Giles
ac294c190a Bug 1043695 - Log output frame metadata. r=cpearce
Also cleans up the input sample log so they're easier to compare.
2014-07-24 16:57:00 -07:00
Ralph Giles
6ff640055a Bug 1043695 - Wrap FrameRef in an nsAutoPtr. r=cpearce
Everything else auto-releases, might as well do this too.
2014-07-24 16:56:00 -07:00
Jean-Yves Avenard
2f471276ca Bug 1046005 - Fix compilation on OS X 10.9. r=rillian
We never directly link against the CoreVideo framework,
as such no external definition will be resolved
2014-07-30 22:32:58 +12:00
Ralph Giles
ee6e2e7884 Bug 941296 - Fix type conversion errors on 32-bit MacOS. r=cpearce
UInt32 is an unsigned long on i686 while uint32_t is an unsigned int.
The compiler can't covert from a pointer to one to the pointer to
the other, so just use the MacOS type.

There's no problem on 64-bit.
2014-07-26 23:43:00 -07:00
Ralph Giles
74a7e5cb1c Bug 941296 - AAC platform decoder for OS X. r=edwin,cpearce
Implement an AAC decoder based on the AudioToolbox wrapper
in AppleMP3Decoder.
2014-07-24 16:30:00 -07:00
Ralph Giles
e9104482d2 Bug 941296 - Fix warnings from debug-only code. r=cpearce
These reported as unused variable warnings in non-debug builds.
2014-07-26 23:40:00 -07:00
Ralph Giles
a998be842d Bug 941296 - h.264 platform decoder for OS X. r=cpearce
Implement an h.264 decoder using Apple's VideoToolbox framework.
Based on gstreamer's vtdec because there's very little documentation
for this API beyond the framework's header file.

Reuse the MOZ_APPLEMEDIA define from the mp3 decoder.

AAC decoding is stubbed to use the BlankDecoderModule's 440A tone.

Provide a stub header for the VideoToolbox framework and load
it dynamically at run time so we can build and run on versions
prior to MacOS X 10.8 where it's not available.

Dynamically load the CoreMedia framework as well, but build
against its headers since it's available on MacOS X 10.7 or
later, which is our minimum build version.
2014-07-24 13:47:00 -07:00