Add flag to video capture handler to indicate frame did not change according to render/GFX functions. Add code to AVI writer to support writing NULL non-keyframe video chunks to the AVI instead of feeding unchanged frames to the ZMBV encoder. Add dosbox.conf option to enable this performance and bandwidth optimization with future reminder to enable by default if option does not cause issues

This commit is contained in:
Jonathan Campbell
2019-09-30 23:34:15 -07:00
parent 04d90bebd8
commit e5548cfe18
4 changed files with 66 additions and 44 deletions

View File

@@ -49,6 +49,7 @@ FILE * OpenCaptureFile(const char * type,const char * ext);
void CAPTURE_AddWave(Bit32u freq, Bit32u len, Bit16s * data);
#define CAPTURE_FLAG_DBLW 0x1
#define CAPTURE_FLAG_DBLH 0x2
#define CAPTURE_FLAG_NOCHANGE 0x4
void CAPTURE_AddImage(Bitu width, Bitu height, Bitu bpp, Bitu pitch, Bitu flags, float fps, Bit8u * data, Bit8u * pal);
void CAPTURE_AddMidi(bool sysex, Bitu len, Bit8u * data);