ffmpeg/tests/ref
Connor Worley d5aaed9d4c lavc/dxv: align to 4x4 blocks instead of 16x16
The previous assumption that DXV needs to be aligned to 16x16 was
erroneous. 4x4 works just as well, and FATE decoder tests pass for all
texture formats.

On the encoder side, we should reject input that isn't 4x4 aligned,
like the HAP encoder does, and stop aligning to 16x16. This both solves
the uninitialized reads causing current FATE tests to fail and produces
smaller encoded outputs.

With regard to correctness, I've checked the decoding path by encoding a
real-world sample with git master, and decoding it with
  ffmpeg -i dxt1-master.mov -c:v rawvideo -f framecrc -
The results are exactly the same between master and this patch.

On the encoding side, I've encoded a real-world sample with both master
and this patch, and decoded both versions with
  ffmpeg -i dxt1-{master,patch}.mov -c:v rawvideo -f framecrc -
Under this patch, results for both inputs are exactly the same.

In other words, the extra padding gained by 16x16 alignment over 4x4
alignment has no impact on decoded video.

Signed-off-by: Connor Worley <connorbworley@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2024-02-09 23:47:14 +02:00
..
acodec avformat/riffenc: don't force WAVEFORMATEXTENSIBLE for flt/dbl LPCM 2023-12-28 11:11:33 +05:30
fate lavc/dxv: align to 4x4 blocks instead of 16x16 2024-02-09 23:47:14 +02:00
lavf
lavf-fate
pixfmt
seek avformat/riffenc: don't force WAVEFORMATEXTENSIBLE for flt/dbl LPCM 2023-12-28 11:11:33 +05:30
vsynth avcodec/proresenc_anatoliy: do not write into chroma reserved bitfields 2024-01-10 23:33:02 +01:00