public void Dispose() { if (this.data != null) { this.data.Dispose(); this.data = null; } }
public CompressedAV1Image(CompressedAV1Data data, int width, int height, YUVChromaSubsampling format) { if (data is null) { throw new ArgumentNullException(nameof(data)); } this.data = data; this.Width = width; this.Height = height; this.Format = format; }