Commit Graph

45 Commits

Author SHA1 Message Date
Torbjörn Andersson
f104cf5903 ZVISION: Move code to determine amplification to its own function
As suggested by bluegr.
2019-02-10 16:32:02 +02:00
Torbjörn Andersson
9785d5007a ZVISION: Boost volume for MPEG cutscenes
The high-resolution videos play back at much lower volume than the
original ones. This adds hard-coded values for how much to amplify
each cutscene. It's all done by ear, and it does introduce some
clipping, but I think it should be acceptable.

Of course, it could also be a problem with the audio decoder, so
this may be the wrong approach entirely.
2019-02-10 16:32:02 +02:00
Thierry Crozat
e2935acfe4 ZVISION: Disable MPEG movies when liba52 is not enabled 2018-11-04 22:33:22 +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
Eugene Sandulenko
dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +02:00
Eugene Sandulenko
fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
Filippos Karapetis
2dc27b57a6 ZVISION: Properly handle monophonic videos in the demo version of ZGI 2015-09-09 17:23:23 +03:00
Matthew Hoops
561d1a1d62 VIDEO: Switch to all packetized streams for AVI
ZVision does not currently, but that's OK
2015-08-30 21:01:39 -04:00
Matthew Hoops
de2f4e6982 VIDEO: Add support for MP3 in AVI 2015-08-30 19:53:53 -04:00
Matthew Hoops
ba4469da6a ZVISION: Cleanup the AVI decoder subclass 2015-08-30 19:53:53 -04:00
Torbjörn Andersson
53cd90b32c ZVISION: Fix GCC signed/unsigned warning 2015-03-05 07:28:40 +01:00
Torbjörn Andersson
4e1ffc9434 ZVISION: Delete stream if there is no audio stream to queue to
This probably never happens, but is consistent with our common AVI
decoder.
2015-01-24 14:57:47 +01:00
Torbjörn Andersson
ca83ecd8c2 ZVISION: Fix lag at beginning of cutscenes
We have to update _curChunk when decoding audio, otherwise it will
decode the entire audio track on the first frame. For the ZGI intro
this would take 700-800 ms, and since the audio started playing
before the video it looked to me as if it had to play the first bit
faster to catch up.

Thanks to fuzzie for setting me on the right track with an off-hand
remark about the Zork AVI decoder (I was looking at the standard
AVI decoder), and for finding the cause a few seconds before I did.
2015-01-24 14:57:47 +01:00
Fedor
08b6a5b486 ZVISION: Fix comparison between signed and unsigned integers 2015-01-19 23:25:40 +03:00
Sven Hesse
3f66f28624 ZVISION: Remove trailing whitespace 2015-01-18 20:35:51 +01:00
Filippos Karapetis
899cf4813c ZVISION: Change screen resolution for the hires DVD videos to 800x600
Also, this hooks up the MPEG-PS decoder, but only if libmpeg2 is
compiled in. The DVD videos are still disabled until AC3 audio support
is implemented.
The hires DVD videos are encoded a 720x480 resolution, with double the
frame rate of the lowres ones (29.97FPS up from 15FPS)
2015-01-10 21:32:15 +02:00
Filippos Karapetis
4ffaf4df37 ZVISION: Add stubs for the hires VOB MPEG2 videos of ZGI DVD
VOB file handling is based on clone2727's work. The lowres videos are
played for now, until AC3 sound handling is implemented
2015-01-07 11:42:27 +02:00
Filippos Karapetis
e4969a98f8 ZVISION: Fix typo in include 2015-01-07 11:42:27 +02:00
Filippos Karapetis
88ba96aa3c ZVISION: Fix an off-by-one error in the RLF decoder
A regression from 7f61a09478. The current frame is the currently
displayed frame, not the frame that should be displayed next. Thanks to
clone2727 and Marisa-Chan for the explanation and fixes
2014-12-30 12:55:52 +02:00
Filippos Karapetis
7182b4f704 ZVISION: Initialize the starting frame to -1 in RLF animations 2014-12-30 03:51:15 +02:00
Filippos Karapetis
f4d5b150f1 ZVISION: Show system messages when subtitles are disabled
Thanks to Marisa-Chan for spotting this
2014-12-29 12:34:55 +02:00
Willem Jan Palenstijn
02eada1d0d ZVISION: Fix Zork AVI audio on BE systems 2014-12-27 23:13:08 +01:00
Ori Avtalion
b3712cc877 ZVISION: Remove dead code (uint is always > 0) 2014-12-27 16:37:20 +02:00
Filippos Karapetis
36c851d0e4 ZVISION: Fix frame rate for RLF videos and remove hack in AnimationNode
_frameTime refers to msec, not ticks
2014-12-25 16:22:36 +02:00
Filippos Karapetis
5f8418394b ZVISION: Set all the internal graphics operations to use RGB555 (2/2)
This is the second part of the changes to make the engine use RGB555
internally again. This is done to simplify the rendering pipeline -
the engine will use RGB555 internally, but will output to RGB565.
The overall changes have been broken into two commits, with this
commit finishing all the changes.

This is needed, as the game uses RGB555 graphics internally, but
its AVI animations (full screen and in-game) use RGB565
2014-12-24 22:56:56 +02:00
Filippos Karapetis
e8e21fabe4 ZVISION: Set all the internal graphics operations to use RGB555 (1/2)
This is the first part of the changes to make the engine use RGB555
internally again. This is done to simplify the rendering pipeline -
the engine will use RGB555 internally, but will output to RGB565.
The overall changes have been broken into two commits, thus this
first commit will break all the game colors
2014-12-24 22:56:55 +02:00
Filippos Karapetis
6afeec1295 ZVISION: Handle animation rewinding outside the RLF encoder 2014-12-23 21:55:42 +02:00
Filippos Karapetis
78ba3e3246 ZVISION: Add error checking when loading in-game animations and videos 2014-12-23 21:46:20 +02:00
Filippos Karapetis
15154641ac ZVISION: Move all of the text related code together 2014-12-23 01:53:40 +02:00
Filippos Karapetis
eb4645cda8 ZVISION: Spacing 2014-12-23 00:10:12 +02:00
Filippos Karapetis
fb924089fc ZVISION: Avoid using color masks for in-game animations
This fixes the transparency for some in-game animations. Since colors
can be truncated with color masks, and since accurate colors are
required for transparency, color masks can't be used. This fixes the
transparency of the in-game item examination interface in ZGI
2014-12-23 00:07:45 +02:00
Filippos Karapetis
7630e3204e ZVISION: Move all the remaining utility classes into the core 2014-12-16 01:58:56 +02:00
Filippos Karapetis
7f61a09478 ZVISION: Make the RLF decoder a subclass of the common video decoder
This way, the redundant MetaAnimation class can now be removed
2014-12-16 01:58:55 +02:00
Filippos Karapetis
3315522ba1 ZVISION: Move the RLF decoder 2014-12-16 01:58:53 +02:00
Filippos Karapetis
ec1fdeb25a ZVISION: Implement several advanced engine features and ScummVM dialogs
The functionality to return to launcher, list saves, delete saves, load
games from the launcher and load and save games during runtime has been
implemented. Also, ScummVM save/load dialogs have been implemented.
Saved games now have three numbers in their file extension, bumping the
possible save game slots up to 999
2014-12-08 01:08:27 +02:00
Filippos Karapetis
dab4ce1f7b ZVISION: Move the subtitle class 2014-12-03 02:38:06 +02:00
Filippos Karapetis
2a4a6df5f2 ZVISION: Remove superfluous spacing and reorder some includes 2014-12-03 01:12:35 +02:00
Marisa-Chan
d40caba5b7 ZVISION: If ZorkAVIAudioTrack got another format call AVIAudioTrack::queueSound 2014-11-04 10:09:27 +06:00
Marisa-Chan
3f21de4694 ZVISION: Make ZorkAVIAudioTrack resetable 2014-11-04 10:08:07 +06:00
Marisa-Chan
ace0e5e88f ZVISION: Fix compilation errors with latest scummvm 2014-06-14 15:18:24 +07:00
Marisa-Chan
45589950c0 Merge remote-tracking branch 'upstream/master' into zvision
Conflicts:
	engines/zvision/animation/rlf_animation.cpp
	engines/zvision/animation_control.h
	engines/zvision/core/console.cpp
	engines/zvision/core/events.cpp
	engines/zvision/cursors/cursor.cpp
	engines/zvision/cursors/cursor_manager.cpp
	engines/zvision/cursors/cursor_manager.h
	engines/zvision/fonts/truetype_font.cpp
	engines/zvision/graphics/render_manager.cpp
	engines/zvision/graphics/render_manager.h
	engines/zvision/inventory/inventory_manager.h
	engines/zvision/inventory_manager.h
	engines/zvision/meta_animation.h
	engines/zvision/module.mk
	engines/zvision/scripting/actions.cpp
	engines/zvision/scripting/control.h
	engines/zvision/scripting/controls/animation_control.cpp
	engines/zvision/scripting/controls/animation_control.h
	engines/zvision/scripting/controls/input_control.cpp
	engines/zvision/scripting/controls/lever_control.cpp
	engines/zvision/scripting/controls/timer_node.cpp
	engines/zvision/scripting/controls/timer_node.h
	engines/zvision/scripting/puzzle.h
	engines/zvision/scripting/scr_file_handling.cpp
	engines/zvision/scripting/script_manager.cpp
	engines/zvision/scripting/script_manager.h
	engines/zvision/sidefx.cpp
	engines/zvision/sound/zork_raw.cpp
	engines/zvision/sound/zork_raw.h
	engines/zvision/video/video.cpp
	engines/zvision/video/zork_avi_decoder.h
	engines/zvision/zvision.cpp
	engines/zvision/zvision.h
2014-06-13 21:43:04 +07:00
Johannes Schickel
aa4c5d46f7 ZVISION: Make GPL headers consistent in themselves. 2014-02-18 02:39:40 +01:00
Strangerke
0b63ea185d ZVISION: Janitorial - Remove trailing spaces 2014-02-16 18:45:17 +01:00
RichieSams
e50797d6b1 ZVISION: Update includes to use the new file structure 2013-11-01 02:52:57 -05:00
RichieSams
5842c5098f ZVISION: Create a folder structure for ZVision source files
I personally used filters within my IDE, but since others are now joining the project,
it was brought to my attention that some better organization would be nice.
2013-11-01 02:52:57 -05:00