[Scummvm-devel] DXA file format for videos

Eugene Sandulenko sev at scummvm.org
Sat Apr 29 08:03:09 CEST 2006


On Sat, 29 Apr 2006 15:21:20 +0200
Gregory Montoir <cyx at users.sourceforge.net> wrote:

> The files produced with the encode_dxa tool in the SVN repository
> doesn't seem to allow that, though. It seems it encodes the first
> frame as an intra frame and the others frames as difference.
It's just the matter of adding couple lines of code, something like
this:

instead of

  		if (_framecount == 0)
			compType = 2;
		else
			compType = 3;

write

		if (_framecount % 120 == 0)
			compType = 2;
		else
			compType = 3;

That will make a keyframe each 120 frames. compType 2 is a keyframe and
compType 3 is a XOR frame.


Eugene




More information about the Scummvm-devel mailing list