Commit Graph

82 Commits

Author SHA1 Message Date
SupSuper
7dacb67583 VIDEO: Add option to reset playback start time 2024-06-15 09:22:59 +01:00
Hubert Maier
5dc3387644 JANITORIAL: Add apostrophe to seek'ed to distinguish between command and typo in video_decoder.cpp 2024-05-18 13:52:31 +02:00
Matthew Jimenez
5219c99400 GRAPHICS: Move PaletteManager definition to a separate header 2024-03-12 12:24:00 +02:00
Le Philousophe
85952c72bf VIDEO: Move API to Path 2023-12-24 13:19:25 +01:00
Harishankar Kumar
a2d4b152f3 VIDEO: Implement non 0/1 rate with audio
Uses Mixer's setRate() function implemented in pr #4965 to set
video playback rates of movies that are not 0 or 1.

`undome` of 'mediaband' required this feature where the video can
have playback rates other than 0 or 1.
2023-06-25 00:23:46 +03:00
Cameron Cawley
af282b79fb VIDEO: Generic support for DXA videos with embedded audio 2023-04-09 13:03:33 +02:00
Cameron Cawley
5956fa4757 VIDEO: Remove VideoDecoder::setDefaultHighColorFormat() 2023-04-05 12:45:13 +02:00
Cameron Cawley
8a4a5bdc55 VIDEO: Add setOutputPixelFormat() to the VideoDecoder interface 2023-04-05 12:45:13 +02:00
Scott Percival
32f87b27cb VIDEO: Fix VideoDecoder::needsUpdate to work for audio-only files
VideoDecoder::needsUpdate() only returns true if there are frames
remaining to be rendered. This won't work for video files that are
audio-only, so in the event of a such a file, fall back to checking
endOfVideo() which includes audio tracks.

Fixes audio-only DigitalVideoCastMembers in the Director engine.

Fixes playback of the cupcake song in Chop Suey.
2022-10-06 00:05:17 +02:00
Scott Percival
46fe41a77c DIRECTOR: Plug memory leak in AVI loader 2022-09-25 10:35:03 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
djsrv
2eca1126c5 VIDEO: Use Path type in VideoDecoder functions 2021-08-07 10:44:37 +02:00
SupSuper
a7f47d5c81 VIDEO: Allow setting the mixer sound type per audio track 2021-01-31 18:51:10 +00:00
Bastien Bouclet
9b9600a50f VIDEO: Express VideoDecoder::endOfVideo using easier to understand logic 2017-11-02 19:49:43 +01:00
Bastien Bouclet
ec49730711 VIDEO: Allow setting the mixer sound type used to play audio tracks 2017-07-27 06:40:07 +02:00
Paul Gilbert
a897ad9e72 VIDEO: Add method to VideoDecoder to erase a track 2017-06-30 20:34:28 -04:00
Bastien Bouclet
1d349e8244 VIDEO: Fix an off-by-one check in VideoDecoder::getTrack 2016-10-18 13:13:00 +02:00
Matthew Hoops
f6d7c5e176 IMAGE: Add functions to allow for videos to be dithered 2015-04-11 14:36:18 -04:00
Matthew Hoops
bed532587b VIDEO: Fix check to see if the frame rate is a whole number
Thanks to Marisa-Chan for spotting
2014-12-24 10:38:28 -05:00
Matthew Hoops
422922fec2 VIDEO: Add wrapper around setEndTime() to specify an end frame 2014-08-17 12:24:28 -04:00
Johannes Schickel
8f3a923686 VIDEO: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Matthew Hoops
da604b530b VIDEO: Allow for audio track selection in video types that support it 2014-01-11 18:43:41 -05:00
Matthew Hoops
254f0fcc06 VIDEO: Improve accuracy of getFrameTime() and getFrameAtTime() 2013-08-28 00:05:18 -04:00
Matthew Hoops
7a8689538a VIDEO: Use the main isSeekable() in seekToFrame() 2013-08-28 00:05:13 -04:00
Matthew Hoops
85614b0de4 VIDEO: Separate external and internal tracks
Prevents subclasses from having access to any audio track added from another file
2013-08-28 00:05:05 -04:00
Matthew Hoops
6e9390feb8 VIDEO: Don't allow VideoDecoder::seek() to be overridden
A new seekIntern() that performs the actual seeking is to be overriden instead. Having the caller override seek() and then call VideoDecoder::seek() kind of defeated the purpose of stopping/starting the audio.
2013-08-06 22:26:15 -04:00
Matthew Hoops
1d778360fe VIDEO: Fix potential memory leak when adding a stream file track 2013-04-15 18:35:11 -04:00
Matthew Hoops
9ae56146bb VIDEO: Add API changes to allow videos to be played backwards 2012-12-15 20:41:41 -05:00
Matthew Hoops
0bcd441405 VIDEO: Fix seeking when playing with a custom rate 2012-12-13 17:46:02 -05:00
Matthew Hoops
81ea69cd33 VIDEO: Fix setRate when _lastTimeChange is less than a frame
Thanks to bgK for noticing
2012-12-09 13:56:06 -05:00
Matthew Hoops
3b581a3b68 VIDEO: Rework the way the next video track is selected
Fixes missing the last frame in some decoders
2012-12-02 22:15:11 -05:00
Matthew Hoops
121faeaa94 VIDEO: Add preliminary API functions for seeking to a frame 2012-11-26 17:44:36 -05:00
Matthew Hoops
db908fcdc4 VIDEO: Add support for playing videos at a modified speed
Currently this only works for positive (forward) playback, but will eventually work for negative (backward).
2012-11-24 01:03:36 -05:00
Matthew Hoops
64e1483102 VIDEO: Make sure track pause status is reset upon stop too 2012-09-23 21:04:40 -04:00
Matthew Hoops
48c70d872e VIDEO: Fix pausing audio in videos 2012-09-22 15:03:15 -04:00
Matthew Hoops
8b46b64ad4 VIDEO: Fix getTime() after a stop() call 2012-09-19 00:36:03 -04:00
Matthew Hoops
8808393b3a VIDEO: Do not close/rewind videos after a stop()
It makes more sense to do this more like a hard "pause" and let the caller stop()/rewind() if they want
2012-09-11 17:38:33 -04:00
Matthew Hoops
058b9b9aca VIDEO: Restrict setEndTime()'s affects to videos that are playing 2012-09-05 11:27:01 -04:00
Matthew Hoops
ddffd74094 VIDEO: Improve setEndTime()
endOfVideo() and needsUpdate() are now more accurate
2012-08-31 21:47:52 -04:00
Matthew Hoops
dcdb40f79e VIDEO: Adjust start time after calling rewind() in start()
This wasn't an actual bug, but it makes more sense this way
2012-08-23 23:11:09 -04:00
Matthew Hoops
e24fd2ffe6 VIDEO: Cleanup VideoDecoder a bit
Functions and their comments now line up better
2012-08-16 22:49:22 -04:00
Matthew Hoops
18823198ad VIDEO: Merge AdvancedVideoDecoder into VideoDecoder 2012-08-16 14:00:14 -04:00
Matthew Hoops
7569ec7dc0 VIDEO: Rename setStopTime() to setEndTime()
To better differentiate with stop()
2012-08-16 13:34:28 -04:00
Matthew Hoops
fb35c7f46f VIDEO: Remove setSystemPalette() 2012-08-16 13:30:32 -04:00
Matthew Hoops
9e7f0e4753 VIDEO: Begin removing some of the deprecated functions from VideoDecoder 2012-08-16 12:27:05 -04:00
Matthew Hoops
48c591a233 VIDEO: Don't allow adding external stream files to unopened videos 2012-08-12 08:33:45 -04:00
Matthew Hoops
a458b91e7e VIDEO: Add set/getStopTime functions to AdvancedVideoDecoder
A video can now be stopped at a requested time
2012-08-12 00:09:23 -04:00
Matthew Hoops
220ca52f43 VIDEO: Fix getTime() when a video is not playing 2012-08-07 14:24:32 -04:00
Matthew Hoops
dd10e7191e VIDEO: Move Track's start()/stop() functions to AudioTrack 2012-07-29 12:38:51 -04:00
Matthew Hoops
90b72e31e4 VIDEO: Cleanup AdvancedVideoDecoder 2012-07-27 11:01:42 -04:00