From 1c729275988d742d9fd7bdad5f738ba042c20866 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 30 Aug 2026 05:44:19 +1000 Subject: [PATCH] Verify HEVC filtering across profile matrix --- .../Formats/Heif/Hevc/HevcPictureDecoderTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/ImageSharp.Tests/Formats/Heif/Hevc/HevcPictureDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Heif/Hevc/HevcPictureDecoderTests.cs index 2c1dc2c06..61efebccb 100644 --- a/tests/ImageSharp.Tests/Formats/Heif/Hevc/HevcPictureDecoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Heif/Hevc/HevcPictureDecoderTests.cs @@ -98,10 +98,14 @@ public class HevcPictureDecoderTests ConvertAnnexBStillPicture(annexB, bitDepth, chromaFormat, out byte[] configurationData, out byte[] itemData); HevcCodecConfiguration configuration = new(configurationData); HevcImageItemBitstream bitstream = new(itemData, configuration); - using HevcPictureDecoder decoder = new(Configuration.Default, bitstream.SliceSegments[0].PictureParameterSet); + HevcSliceSegmentHeader sliceHeader = bitstream.SliceSegments[0]; + HevcSequenceParameterSet sequenceParameterSet = sliceHeader.PictureParameterSet.SequenceParameterSet; + using HevcPictureDecoder decoder = new(Configuration.Default, sliceHeader.PictureParameterSet); decoder.Decode(bitstream); + Assert.True(sequenceParameterSet.SampleAdaptiveOffsetEnabled); + Assert.False(sliceHeader.DeblockingFilterDisabled); Assert.Equal(bitDepth, decoder.Picture.BitDepthLuma); Assert.Equal(chromaFormat, decoder.Picture.ChromaFormat); int expectedLength = decoder.Picture.GetWidth(HevcPlane.Y) * decoder.Picture.GetHeight(HevcPlane.Y) * (bitDepth > 8 ? 2 : 1);