Blender Git Loki

Git Commits -> Revision 2b170f1

Revision 2b170f1 by Lukas Stockner (master)
August 21, 2021, 19:38 (GMT)
Refactor low-level blendfile reading into separate files

Instead of handling mmap, compression etc. all directly in readfile.c, refactor
the code to use a generic FileReader.
This makes it easier to add new compression methods or similar, and allows to
reuse the logic in other places (e.g. thumbnail reading).

Reviewed By: campbellbarton, brecht, mont29

Differential Revision: https://developer.blender.org/D5799

Commit Details:

Full Hash: 2b170f16d6ded9b3bcb428121b27274ae8637555
Parent Commit: 34a05f3
Lines Changed: +667, -444

4 Added Paths:

/source/blender/blenlib/BLI_filereader.h (+79, -0) (View)
/source/blender/blenlib/intern/filereader_file.c (+80, -0) (View)
/source/blender/blenlib/intern/filereader_gzip.c (+108, -0) (View)
/source/blender/blenlib/intern/filereader_memory.c (+145, -0) (View)

11 Modified Paths:

/source/blender/blenlib/BLI_fileops.h (+2, -0) (Diff)
/source/blender/blenlib/CMakeLists.txt (+4, -0) (Diff)
/source/blender/blenlib/intern/fileops.c (+7, -0) (Diff)
/source/blender/blenloader/BLO_undofile.h (+14, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+80, -369) (Diff)
/source/blender/blenloader/intern/readfile.h (+3, -29) (Diff)
/source/blender/blenloader/intern/undofile.c (+95, -0) (Diff)
/source/blender/blenloader/intern/versioning_250.c (+1, -2) (Diff)
/source/blender/blenloader/intern/versioning_legacy.c (+1, -2) (Diff)
/source/blender/blenloader/intern/writefile.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+47, -41) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021