Commit Graph
21 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 3a51911db2 NANCY: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
fracturehill 85f8bf294d NANCY: Includes cleanup
Reordered and cleaned up #includes in the engine.
2021-04-01 21:25:32 +03:00
fracturehill ff078328bc NANCY: Includes cleanup
Cleaned up the engine's #includes. Also moved the NancyEngine::GameState enum to commontypes.h and renamed it to NancyState.
2021-03-26 01:17:07 +02:00
fracturehill 1907b5f741 NANCY: Remove static members of GraphicsManager
Made GraphicsManager's static members non-static.
2021-03-24 17:20:46 +01:00
fracturehill bfc6586f78 NANCY: Add reserve() calls before initializing arrays
Added calls to reserve() before initializing most arrays in the engine to reduce unnecessary allocations when pushing back elements one by one.
2021-03-24 17:20:46 +01:00
fracturehill af28b38f4b NANCY: Properly read early video format frame IDs
Chunk format 1 video (found in The Vampire Diaries) contains frame IDs as well as frame names. Those were previously skipped over, but are now getting read correctly.
2021-03-24 17:20:46 +01:00
fracturehill e9adea4c4e NANCY: Formatting fixes
Almost every file in the engine code was using spaces instead of tabs, which is now fixed. Also added some missing spaces in a couple of files.
2021-03-24 17:20:46 +01:00
fracturehill 45e5064eff NANCY: Correctly load early AVF type frames
AVF videos with chunk format 1 do not contain the frame size in bytes like previously assumed. The data that I previously thought was the size is now simply skipped, and the size itself gets calculated on the fly.
2021-03-24 17:20:46 +01:00
fracturehill 5440559918 NANCY: Add support for 8-bit color
Added generic methods for getting the pixel format and transparent color. Also added a method for loading an image directly into a ManagedSurface, which also loads the palette and lets The Vampire Diaries logo display properly.
2021-03-24 17:20:46 +01:00
fracturehill c7e0c750bb NANCY: Add support for older video header format
Added support for chunk file format 1.0 (used in The Vampire Diaries), which uses frame names instead of ids and has a different id string. Right now the image gets decoded upside-down, and the palette is still unknown.
2021-03-24 17:20:46 +01:00
fracturehill 4f9f97d40c NANCY: Fix secondary video timings
Nancy1 adds exactly 12ms to every frame of a secondary video, making it visibly slower than what the current implementation was playing. I'm not sure where exactly that happens yet, but this commit adds a (slightly hacky) fix for the problem
2021-03-24 17:20:46 +01:00
fracturehill 3aaf2a9bea NANCY: Major engine rewrite
Rewrote most of the engine using a much more object-oriented approach and using more of ScummVM's common classes. This design deviates quite a lot from the original engine's, but should be more maintainable and extensible in the future.
2021-03-24 17:20:46 +01:00
fracturehill cd66fa975d NANCY: Correct video timing
Added a potentially hacky fix for the wrong timings in video playback.
2021-03-24 17:20:46 +01:00
fracturehill 75ba5e6528 NANCY: Add reverse video playback
Implemented reverse video playback for AVF video. Just like last commit, this is not tested on video type 2 and will almost definitely break.
2021-03-24 17:20:46 +01:00
fracturehill da461f1d6e NANCY: Upgrade video code
Added code to make AVF videos seekable. Not tested on video type 2, but will almost definitely break it. Also updated class definitions to properly mark virtual methods.
2021-03-24 17:20:46 +01:00
fracturehill d97ca12d6c NANCY: Initial commit 2021-03-24 17:20:46 +01:00
Walter van Niftrik 1c93da8699 NANCY: Add support for video frame types 1 and 2 2021-03-24 17:20:46 +01:00
Walter van Niftrik f670e5ad4f NANCY: Load frame time from AVF files 2021-03-24 17:20:46 +01:00
Walter van Niftrik bd7e83cf8e NANCY: Skip unsupported video frame types for now 2021-03-24 17:20:46 +01:00
Walter van Niftrik 3efe6a6f76 NANCY: Add partial .avf video support 2021-03-24 17:20:46 +01:00