Matthias Mailänder
6bd631618c
Remove unnecessary value assignment (IDE0059)
2022-10-01 14:15:33 +03:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Eduardo Cáceres
8ced155ca3
Simplify 'always true' expressions
...
Co-authored-by: atlimit8 <atlimit8-vcs@gmx.com >
2022-05-18 11:42:36 -05:00
Eduardo Cáceres
b71402f64d
Convert extension in real extension
2022-05-18 11:42:36 -05:00
penev92
ab09ce21b4
Changed code to use object initializers everywhere
2022-01-23 13:14:57 +01:00
penev92
bf332b6619
Fixed fields missing the readonly modifier
2022-01-22 18:47:06 +00:00
penev92
860ec642b8
Addressed review comments
...
- Renamed `IVideo.CurrentFrameNumber` to `CurrentFrameIndex`
- Improved logged error message in VideoPlayerWidget
- Renumbered fields in ThreadedGraphicsContext
2022-01-11 18:16:31 +01:00
penev92
248b8d1102
Renamed IVideo implementations
...
To match the interface they are implementing.
2022-01-11 18:16:31 +01:00
penev92
cb8530fbae
Reworked internal palettes in video reader classes
...
This removes the need to pack & unpack color bytes as uints for no gain.
2022-01-11 18:16:31 +01:00
penev92
c4ab7041b8
Updated VideoPlayerWidget to play new IVideo data
...
Added optional padding to video frames because that's what VideoPlayerWidget expects.
Keeping the option to not use padding for other use-cases like converting frames to PNG.
2022-01-11 18:16:31 +01:00
penev92
ee29d0f9c7
Changed IVideo.CurrentFrameData uint[,] -> byte[]
2022-01-11 18:16:31 +01:00
penev92
1b5f2f1b39
Removed caching properties from video readers
...
Those seem redundant since the frame number is guaranteed to match the loaded data inside CurrentFrameData.
2022-01-11 18:16:31 +01:00
penev92
0df3b34c52
Did a beautification pass on IVideo and family
...
Removed property backing fields where applicable, introduced C#7 syntax for properties.
Renamed a bunch of interface properties and class private members with more descriptive names.
Did some inconsequential reordering.
2022-01-11 18:16:31 +01:00
penev92
87b92b53a4
Reworked ISoundFormat.LengthInSeconds implementations
2022-01-09 18:40:32 +01:00
penev92
abea3a0f74
Fixed AudFormat and WavFormat implementations of ISoundFormat.LengthInSeconds
...
- Fixed a rounding issue in `WavReader.WaveLength()`.
- Fixed `AudReader.SoundLength()` not resetting the stream position.
- Fixed crashes caused by disposed streams because `LengthInSeconds` would try and calculate the length on the fly. It is now precalculated and cached (making it consistent across all 5 current `ISoundFormat` implementations).
- Fixed a crash in `AudReader.LoadSound()`'s `out Func<Stream> result` because that func would try and access the disposed stream's `Length` property. That works for `SegmentStream`, but not for `FileStream`.
- Fixed frameCount/soundLength label positioning in the AssetBrowser window to avoid text clipping .
2022-01-09 18:40:32 +01:00
RoosterDragon
3bee524c6b
Avoid allocation in PackageEntry.HashFilename
...
This is a very frequently called method during loading, and taking some care to avoid allocations improves performance noticeably.
2021-10-24 21:40:01 +02:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
teinarss
10676be377
Replace F extension with string interpolation
2021-05-08 22:20:59 +02:00
Matthias Mailänder
a02737107e
Add a .wsa file reader.
2021-04-03 11:19:06 +02:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
penev92
1c1af89bb9
Fixed D2k VQA videos crashing the game
2021-02-19 13:38:12 +01:00
Matthias Mailänder
7bc17b59f5
Add a generic video player widget.
2021-01-10 10:21:17 +01:00
Matthias Mailänder
04cda69ef9
This compression is actually not yet supported.
2020-12-24 22:05:37 +00:00
Matthias Mailänder
b4c483ce1a
Fix channels.
2020-12-24 22:05:37 +00:00
Matthias Mailänder
9a9f58d744
Support 8 bit .aud files.
2020-12-24 22:05:37 +00:00
Matthias Mailänder
d8e979d283
Remove dead code.
2020-12-14 20:38:50 +01:00
RoosterDragon
7c8dc5d5f4
XccGlobalDatabase allocation improvements
...
- Use the count to size the capacity of the list.
- Use a char array as a buffer, so will can build each string directly rather than needing a ToArray call first.
2020-10-20 22:53:32 +02:00
Andre Mohren
006a87692a
Removed unused imports.
2020-07-28 18:22:51 +02:00
reaperrr
c10487d635
Move ClassicFacingFudge support to Mods.Cnc
...
This moves the TD/RA-specific re-mapping of sprite facings
and coordinates to Mods.Cnc.
2020-04-24 18:22:35 +02:00
reaperrr
d835090d0b
Move LCWCompression support to Mods.Cnc
2020-02-22 15:40:37 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
reaperrr
82be8d9990
Move AUD support to Mods.Cnc
2019-12-09 22:06:53 +01:00
reaperrr
4751b1a176
Move ShpTDLoader, LZO and XORDelta formats to Mods.Cnc
...
They're pretty much RA/TD-specific formats.
2019-12-08 19:43:51 +00:00
Paul Chote
ebf2ce32c0
Make sure braces for multi-line statements are on their own lines.
2019-06-08 19:26:53 +02:00
Paul Chote
548de12e85
Add newlines after closing braces.
2019-06-08 13:20:14 +02:00
Paul Chote
353db73381
Fix a collection of minor style violations.
...
This enables several new StyleCopAnalyzer rules to
be enabled immediately during migration.
2019-05-09 20:40:08 +02:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Andre Mohren
7323db1492
Unified copyright regions.
2018-11-17 17:23:22 +00:00
RoosterDragon
63810220e4
Improve some usages of Aggregate.
2018-03-18 16:44:17 +01:00
Peter Antal
9ce0bcb0b7
Mop up active Stylecop nits.
...
Style consistency cleanup.
2018-03-03 11:45:35 +00:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
RoosterDragon
6a97502e09
Reuse buffers when loading Xcc databases.
...
We can reuse the list as a buffer when reading strings to avoid throwaway allocations, which will reduce GC pressure during loading.
2017-11-30 02:16:51 +02:00
Paul Chote
34810756c2
Move Voxel code to Mods.Cnc.
2017-06-14 18:56:06 +02:00
Paul Chote
ba7290cc2c
Move classic-mod package loaders and support files to Mods.Cnc.
2017-05-29 12:41:28 +02:00