fix(web): stride-correct CropBounds Fill rendering in compositor (take-23)

This commit is contained in:
2026-09-08 12:07:54 -07:00
parent 84aa70f532
commit f6802c7124
2 changed files with 44 additions and 35 deletions
+3 -3
View File
@@ -29,9 +29,9 @@ public sealed class VideoFrame
/// <summary>WebSource crop metadata: the alpha bounding box of the widget content
/// within the full canvas (X/Y/W/H in pixels). When set, the compositor uses these
/// bounds for Fill-style scaling (stretch to cover, no aspect preservation) instead
/// of UniformToFill. The transparent margins of the full canvas are preserved so
/// they reveal layers beneath — the crop defines the actual content region.</summary>
/// bounds for Fill-style scaling (stretch to cover, no aspect preservation) instead of
/// UniformToFill. The transparent margins of the full canvas are preserved so they
/// reveal layers beneath — the crop defines the actual content region.</summary>
public (int X, int Y, int W, int H)? CropBounds { get; init; }
public VideoFrame(int width, int height, byte[] bgraPixels)