Re: [FFmpeg-devel] 15-bit Westwood VQA3 decoding

2021-09-22 Thread Pekka Väänänen
> Pekka Väänänen: > > 1. Is it possible to preserve the pixels of a frame for easy delta > > updates? > > In that 2009 patch set they used an old "FF_BUFFER_HINTS_PRESERVE" > > flag > > that doesn't exist anymore. > > > > You keep a reference to the earlier frame (use av_frame_ref()). The frame

Re: [FFmpeg-devel] 15-bit Westwood VQA3 decoding

2021-09-20 Thread Andreas Rheinhardt
Pekka Väänänen: > 1. Is it possible to preserve the pixels of a frame for easy delta updates? > In that 2009 patch set they used an old "FF_BUFFER_HINTS_PRESERVE" flag > that doesn't exist anymore. > You keep a reference to the earlier frame (use av_frame_ref()). > 2. Is it problematic to derefe

[FFmpeg-devel] 15-bit Westwood VQA3 decoding

2021-09-20 Thread Pekka Väänänen
Hello, This patch adds support for 15-bit VQA3 files that are used in Westwood Studios' video games such as Command & Conquer: Tiberian Sun and Blade Runner. I have tested this change with all VQA files available at http://samples.mplayerhq.hu/game-formats/vqa/ and every video except those in ky