implement DEV workspace and project automation authority
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package p.studio.api.automation;
|
||||
import java.util.Objects;
|
||||
/** Lossless PNG bytes; stride describes the original RGBA8888 buffer, not PNG padding. */
|
||||
public record CanonicalCapture(String sessionId, String buildId, long logicalFrameIndex,
|
||||
long frameId, int width, int height, int stridePixels, byte[] png) {
|
||||
public CanonicalCapture {
|
||||
Objects.requireNonNull(sessionId); Objects.requireNonNull(buildId); Objects.requireNonNull(png);
|
||||
if (width <= 0 || height <= 0 || stridePixels < width) throw new IllegalArgumentException("invalid frame layout");
|
||||
png = png.clone();
|
||||
}
|
||||
@Override public byte[] png() { return png.clone(); }
|
||||
}
|
||||
Reference in New Issue
Block a user