Commit Graph

243 Commits

Author SHA1 Message Date
Matt Woodrow
bfd6201948 Bug 1145029 - Disable DXVA for 4k videos on AMD hardware since it performs poorly. r=jya
--HG--
extra : rebase_source : b2b686f7b6774fb04766b47133299c78061793b5
2015-03-19 22:01:47 +13:00
Phil Ringnalda
0400bc353a Back out 59fd15407a79 (bug 1142336) for shutdown hangs
CLOSED TREE
2015-03-18 20:38:43 -07:00
Bobby Holley
7afd45ea42 Bug 1142336 - Create one unified thread pool for media code and run the MDSM task queues on it. r=mattwoodrow
This allows for parallel MDSM execution. \o/
2015-03-18 18:00:49 -07:00
Matt Woodrow
cfd81254b3 Bug 1138967 - Part 2: Create IMFYCbCrImage so that image data copying happens off the decoder thread. r=nical,cpearce
--HG--
extra : rebase_source : f42bec1f1f15eb9e825643df87f3f9285dcb7189
2015-03-19 10:16:23 +13:00
Jean-Yves Avenard
09f736c2cc Bug 1143987: Use SharedDecoderManager with EME PDM. r=cpearce
--HG--
extra : rebase_source : cf3c5fff87bdca3b55d10e41d5b4f44678253c72
2015-03-18 14:10:59 +11:00
Daniel Holbert
082fd9cd7f Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
This patch was generated by a script.  Here's the source of the script for
future reference:

find . \( -iname "*.cpp" -o -iname "*.h" \) | \
  xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Jean-Yves Avenard
ddd2384f4e Bug 1143516: Ignore SPS's aspect ratio if value is nonsensical. r=cpearce 2015-03-17 16:42:02 +11:00
Bobby Holley
9f9d0175f0 Bug 1141785 - Logging fixes. r=jya 2015-03-15 21:29:54 -07: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
Jean-Yves Avenard
2572f7570a Bug 1143339: Part3. FFmpeg decoder can play video/mp4 mimetype. r=edwin 2015-03-16 08:49:19 +11:00
Jean-Yves Avenard
a2d00dfc0a Bug 1143339: Part2. Also wrap mimetype video/mp4 in avcc wrapper. r=cpearce 2015-03-16 08:48:44 +11:00
Jean-Yves Avenard
68dde32c37 Bug 1143339: Part1. Ensure successive calls to Shutdown() won't potentially crash. r=cpearce 2015-03-16 08:48:29 +11:00
Matt Woodrow
10ced0676b Bug 1131638 - Disable hardware decoding if too many frames are invalid. r=cpearce 2015-03-12 22:14:51 +13:00
Jean-Yves Avenard
587ac422b8 Bug 1140688: Only print a warning when VDA decoder couldn't be created. r=rillian
--HG--
extra : rebase_source : 3292410fbd8a8b03469ece9a257d6cd744ce5fef
2015-03-12 11:07:20 +11:00
Jean-Yves Avenard
4c60d0f785 Bug 1141914: Always use video dimensions using extradata's SPS. r=cpearce
--HG--
extra : rebase_source : f8d97ec431cc5147edc9013029e2053d3f2e4a40
2015-03-12 11:07:20 +11:00
Jean-Yves Avenard
100d451a99 Bug 1128381: Part7. Streamline code across platforms. r=cpearce
--HG--
extra : rebase_source : bd3fa9d07c8e37711f2409ef731f60ff882f8dbb
2015-03-12 11:07:20 +11:00
Jean-Yves Avenard
7434c7c6ac Bug 1128381: Part6. Remove unused member functions. r=cpearce
--HG--
extra : rebase_source : f310f0f143662154332963e6f7678a4f87057ad8
2015-03-12 11:07:20 +11:00
Jean-Yves Avenard
51d8526603 Bug 1128381: Part5. Make AVCC wrapper be dormant capable. r=cpearce
This makes the Apple VDA and VideoToolbox as well as EME and FFmpeg decoder
dormant capable.

--HG--
extra : rebase_source : f350d83ea8bb3a2a7d80c51c4861272f1093eee3
2015-03-12 11:07:20 +11:00
Jean-Yves Avenard
83de7dcb78 Bug 1128381: Part4. Make AVCC wrapper work with SharedDecoderManager. r=cpearce
--HG--
extra : rebase_source : 957ef4b523f795804fec06c295c80c5de0da7bde
2015-03-12 11:07:19 +11:00
Jean-Yves Avenard
adf3e336a3 Bug 1128381: Part3. Handle on the fly video format change. r=cpearce
Add monitoring of the current SPS NAL and destroy/recreate H264 decoder as
required.

--HG--
extra : rebase_source : fbab04b0ae3b4be42eea34a1c6f1b19bf39ad2f0
2015-03-12 11:07:19 +11:00
Chris Pearce
46dba701ac Bug 1141241 - Add nullcheck for mDecoder in WMFMediaDataDecoder::ProcessDrain(). r=mattwoodrow 2015-03-11 22:01:19 +13:00
Brian Birtles
78cbd39cef Bug 1134487 - Remove delegated constructors in GMP{Audio,Video}Decoder since they're not supported by GCC 4.6. r=cpearce 2015-02-19 10:37:29 +09:00
Jean-Yves Avenard
52763888a3 Bug 1139779: Part5. Move picture/display size calculations in AVCC wrapper. r=rillian 2015-03-10 21:19:42 +11:00
Jean-Yves Avenard
313c854fd3 Bug 1139779: Part4. Make FFmpeg video decoder use AVCC. r=edwin
FFmpeg h264 decoder doesn't handle change of SPS in-band and only use the first
found.
2015-03-10 21:19:42 +11:00
Jean-Yves Avenard
b849b45758 Bug 1139779: Part3. Use dispay size extracted from SPS NAL. r=edwin
This also adds proper aspect ratio support.
2015-03-10 21:19:41 +11:00
Jean-Yves Avenard
85f78b847d Bug 1139779: Part2. Use display dimension from SPS NAL. r=rillian 2015-03-10 21:19:41 +11:00
Mike Taylor
6cd22be51a Bug 1136877 - Collect telemetry on SPS.max_num_ref_frames. r=jya 2015-03-06 08:18:00 -05:00
Mike Taylor
df74a152aa Bug 1136877 - Collect telemetry on constraint_set flags from decoded SPS. r=jya 2015-03-06 08:17:00 -05:00
Jean-Yves Avenard
3a14d38778 Bug 1128380: Make AmpleVideoFrames calculation dynamic. r=cpearce 2015-03-09 14:17:30 +11:00
Jean-Yves Avenard
24c09255ca Bug 1128380: Add IsHardwareAccelerated implementation for AVCC and mac decoder. r=cpearce 2015-03-09 14:17:27 +11:00
Karl Tomlinson
b0c623a54e bug 1138229 GetOutputStreamInfo() after each SetOutputType() r=cpearce
--HG--
extra : rebase_source : 8c4153a0f9d1c7fb65fed93ee1c2945adfecf1cd
2015-02-26 17:59:37 +13:00
Karl Tomlinson
fe56d5c8a5 bug 1138238 reset video frame geometry on each init r=cpearce
--HG--
extra : rebase_source : 44ed6d25db75458ece530d0537f0a5f69b4a992a
2015-02-26 15:25:55 +13:00
Karl Tomlinson
49b9f7e466 bug 1138238 ensure mUseHwAccel is set appropriately when WMFVideoMFTManager::Init() is called after Shutdown() r=cpearce
--HG--
extra : rebase_source : 3e7603db676772e161d3743a63f21b16d98fe424
2015-02-26 14:24:33 +13:00
Karl Tomlinson
19c1032182 bug 1138238 remove unused member variables from WMFVideoMFTManager r=cpearce
--HG--
extra : rebase_source : 019138f4e4ea5b80c795b8cc271410fa7b689ba1
2015-02-26 14:40:47 +13:00
Carsten "Tomcat" Book
4c5ee903cd Backed out changeset 72a843ecfb92 (bug 1128380) for m3 test failures on a CLOSED TREE 2015-03-05 08:40:45 +01:00
Carsten "Tomcat" Book
248ef21229 Backed out changeset 5d97bad42411 (bug 1128380) 2015-03-05 08:38:47 +01:00
Jean-Yves Avenard
370ed231e4 Bug 1128380: Make AmpleVideoFrames calculation dynamic. r=cpearce 2015-03-05 16:53:47 +11:00
Jean-Yves Avenard
e5a7c9c6c1 Bug 1128380: Add IsHardwareAccelerated implementation for AVCC and mac decoder. r=cpearce 2015-03-05 16:53:44 +11: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
Jean-Yves Avenard
9916686463 Bug 1137100: Don't skip audio samples with a negative presentation time. r=cpearce
This allows for having the same decoding behavior across all platforms.
2015-03-03 16:29:28 +11:00
Anthony Jones
69c0b09ad3 Bug 1138253 - Count dropped frames directly; r=cpearce 2015-03-03 17:46:48 +13:00
Anthony Jones
c4f6a5ccbb Bug 1138253 - Clean up AutoNotifyDecoded; r=cpearce 2015-03-03 17:46:46 +13:00
Nigel Babu
16d71fc156 Backed out changeset a622dbe33efb (bug 1135544) for ASAN mochitest-3 bustage on CLOSED TREE 2015-03-02 18:13:39 +05:30
Anthony Jones
ad3b3d35da Bug 1135544 - Create an abstract base class for a track demuxer; r=kinetik 2015-03-02 16:34:44 +13:00
Jean-Yves Avenard
79e326a1c4 Bug 1137529: Prefer Apple's VDA hardware acceleration for Hi-Def videos. r=rillian
With some GPUs (such as Intel HD-x000), Apple VideoTool box provides poor
decoding speed, causing us to drop frames for most HD videos.
VDA is around 50 times faster on those machines (31ms average to decode a 4K
frame with VT, while 0.6ms average with VDA)
2015-03-02 10:48:28 +11:00
Chris Pearce
42473ae7f6 Bug 1137957 - Fix non-unified build failure in GMPVideoDecoder. r=kinetik 2015-02-28 16:15:29 +13:00
Chris Pearce
9c393b31d4 Bug 1136986 - Disable SharedDecoderManager for EME video. r=kentuckyfriedtakahe 2015-02-28 10:23:29 +13:00
Matt Woodrow
9f1b1ecd84 Bug 1136984 - Always call DrainComplete in response to Drain, even if it wasn't called on the active decoder. r=cpearce 2015-02-27 11:47:12 +13:00
Matt Woodrow
d9b857ba4f Bug 1132757 - Don't crash if we call WMFVideoMFTManager after we've initiated shutdown. r=cpearce 2015-02-27 11:46:10 +13:00
James Willcox
ef1854ac4e Bug 1090300 - Repopulate input buffers when necessary in Android media decoder r=gcp 2015-02-20 23:03:40 -06:00