This patchset extends the SANM codec handler to support video of
the 1996 CD-ROM Title "StarWars - Making Magic".
The videos all consist of 640x480 codec3 backgrounds, with 320x240
codec48 videos put on top at random x/y offsets.

#1: some video file advertise codec48 compression type 6. The actual
    data is for these stops after the codec headers, and the dos exe
    as well as the codec48 decoder in the MotS game exe don't know of
    it and simply ignore it.

#2: change the FOBJ frame size determination to a whitelist.  With the
    scheme employed by Making Magic, the codec48 dimensions can no
    longer be blindly trusted.

#3: support video of Making Magic.  This patch also brings the fobj
    handling more in line with what the game engines actually do.

Tested with RA1, RA2 (c37), Outlaws (c47), MotS (c48)

See https://ibb.co/73Pt803  for post/pre fix screenshots.

Manuel Lauss (3):
  avcodec/sanm: ignore codec48 compression type 6
  avcodec/sanm: add a whitelist for known FOBJ sizes
  avcodec/sanm: support "StarWars - Making Magic" video

 libavcodec/sanm.c | 98 +++++++++++++++++++++++++++++++++--------------
 1 file changed, 70 insertions(+), 28 deletions(-)

-- 
2.49.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to