Commit Graph

27 Commits

Author SHA1 Message Date
Max Preussner
19d2aaa9ec Media: Added placeholders for fast-path texture binding
This is a new API that allows for bypassing the slow CPU-copied deferred updates of media textures by writing directly into RHI texture resources. MarcusW already implemented it for PS4; we should implement it for the remaining player plug-ins as well. I added placeholders that you can fill in as needed. When all plug-ins are updated, I will switch UMediaTexture to always use the fast path.

#CodeReview: chris.babcock, michael.trepka

[CL 2624561 by Max Preussner in Main branch]
2015-07-17 13:49:42 -04:00
Max Preussner
5b153b4d0a Media: Updated comments
[CL 2624522 by Max Preussner in Main branch]
2015-07-17 13:32:41 -04:00
Marcus Wassmer
b174b812b7 Switch to Decoder2 and GPU conversion to RGBA for PS4 MediaFramework.
#codereview Max.Preussner

[CL 2624481 by Marcus Wassmer in Main branch]
2015-07-17 13:12:34 -04:00
Max Preussner
25f66e2835 Media: API refactor in preparation for performance improvements
This is an API breaking change. IMediaTrack has been renamed to IMediaStream. There are three new interfaces for tracks: IMediaAudioTrack, IMediaCaptionTrack and IMediaVideoTrack.

#CodeReview: chris.babcock, marcus.wassmer

[CL 2622306 by Max Preussner in Main branch]
2015-07-15 16:06:57 -04:00
Max Preussner
12118185e8 Media: Fixed race condition crash in media sample buffer
[CL 2617395 by Max Preussner in Main branch]
2015-07-10 17:53:22 -04:00
Max Preussner
5e7a0d565a Media: Added support for tracks changing during playback or asynchronously after opening media
[CL 2603263 by Max Preussner in Main branch]
2015-06-27 09:08:05 -04:00
Max Preussner
dbfec7de75 Media: Refactored IMediaPlayer.Open to take an FArchive instead of byte array; removed pre-caching of media into memory
#UpgradeNotes: This is an API breaking change. If you implemented a plug-in for the Media Framework then you have to update your media player's Open() method to match the new signature. Take a look at the changes in the WmfMedia plug-in to see the differences between loading from a buffer and an archive.

[CL 2603213 by Max Preussner in Main branch]
2015-06-26 21:42:39 -04:00
Max Preussner
ecf866c330 Media: Buffer parameter in IMediaPlayer::Open is now thread-safe
#UpgradeNotes: If you implement the IMediaPlayer interface, make sure to update the function signature of the Open() method.

[CL 2595884 by Max Preussner in Main branch]
2015-06-22 14:51:17 -04:00
Max Preussner
5b5c04d01d Media: Removed deprecated file Media.h
[CL 2473065 by Max Preussner in Main branch]
2015-03-09 17:20:45 -04:00
Max Preussner
acda4407c0 Removed redundant comments.
[CL 2472989 by Max Preussner in Main branch]
2015-03-09 16:28:56 -04:00
Max Preussner
643ba3cea8 Media: Added support for extension-less streaming media URI schemes by removing assumptions about media URL formats
#UpgradeNotes
- IMediaModule::GetSupportedFormats() has been renamed to IMediaModule::GetSupportedFileTypes()
- FMediaFormats has been renamed to FMediaFileTypes
- IMediaPlayerFactory::GetSupportedFormats() has been renamed to IMediaPlayerFactory::GetSupportedFileTypes()
- IMediaPlayerFactory::SupportsFile() has been replaced with IMediaPlayerFactory::SupportsUrl(), which must now be implemented by media plug-ins

[CL 2466800 by Max Preussner in Main branch]
2015-03-02 15:37:53 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Max Preussner
c1b7307aa9 Media: Deprecating Media.h
#UpgradeNotes:
- Instead of including Media.h, please include the interface header files that you actually use, i.e. IMediaPlayer.h and/or IMediaTrack.h

[CL 2341697 by Max Preussner in Main branch]
2014-10-27 18:58:44 -04:00
Max Preussner
2d469fd73a Media: Made public headers compilable individually
[CL 2340742 by Max Preussner in Main branch]
2014-10-27 07:54:32 -04:00
Max Preussner
9e65b49894 Media: Moving towards "include what you use"
[CL 2340595 by Max Preussner in Main branch]
2014-10-24 21:13:09 -04:00
Max Preussner
887a9f8829 Media: Fixed formatting of parentheses
[CL 2331861 by Max Preussner in Main branch]
2014-10-16 13:33:44 -04:00
Max Preussner
ad5ce10092 Media: Media assets now pick a suitable default track if none is selected
[CL 2292686 by Max Preussner in Main branch]
2014-09-10 13:33:24 -04:00
Max Preussner
aefc373a7b Media: Properly initializing media assets on startup and when media is loaded/unloaded
[CL 2284035 by Max Preussner in Main branch]
2014-09-04 01:32:22 -04:00
Max Preussner
d7e5cea7c8 Media: Added API for retrieving media information
[CL 2265230 by Max Preussner in Main branch]
2014-08-20 19:05:01 -04:00
Max Preussner
b2e5b5b9f7 Media: various improvements
- slightly changed MediaAsset API for Play, Pause and SetRate
- exposed MediaAssets as BP variables
- better logic for MediaAsset toolbar buttons

[CL 2263370 by Max Preussner in Main branch]
2014-08-19 19:24:17 -04:00
Max Preussner
daf4b652c0 Media: added missing code comments
[CL 2261213 by Max Preussner in Main branch]
2014-08-18 15:00:02 -04:00
Michael Trepka
4fb445c4e9 More fixes for Clang warnings
[CL 2244821 by Michael Trepka in Main branch]
2014-08-05 18:02:04 -04:00
Max Preussner
ad6d3f3a15 Media: Implemented basic playback looping support
[CL 2240500 by Max Preussner in Main branch]
2014-08-01 20:35:14 -04:00
Max Preussner
cc9b6d0f56 Media: Added display name API to media tracks
[CL 2240094 by Max Preussner in Main branch]
2014-08-01 14:23:47 -04:00
Max Preussner
5a84564eaa Media: added missing virtual destructor; cosmetic changes
[CL 2239263 by Max Preussner in Main branch]
2014-07-31 20:05:07 -04:00