Versions in this module Expand all Collapse all v1 v1.0.1 Jun 30, 2026 v1.0.0 Jun 30, 2026 Changes in this version + const Max4DDimensions + const MaxANSStateSize + const MaxBitDepth + const MaxChannels + const MaxCodeBlockSize + const MaxDecompLevels + const MaxEventStreamSize + const MaxEventsPerFrame + const MaxFloatExponent + const MaxHDRDynamicRange + const MaxImageHeight + const MaxImagePixels + const MaxImageWidth + const MaxInferenceIterations + const MaxIterations + const MaxJUMBFBoxDepth + const MaxLightFieldViews + const MaxLineBufferSize + const MaxLinkedReferences + const MaxMarkerLength + const MaxMetadataSize + const MaxModelSize + const MaxOutputSize + const MaxPixelCount + const MaxPointCloudPoints + const MaxSegmentSize + const MaxSubbandSize + const MaxTensorDimensions + const MaxTileCount + const MaxTimestampDelta + const MaxToneMapIterations + const MaxWaveletLevels + var ErrDimensionsTooLarge = errors.New("image dimensions exceed maximum limit") + var ErrEventStreamTooLarge = errors.New("event stream exceeds maximum size") + var ErrInvalidANSState = errors.New("invalid ANS decoder state") + var ErrInvalidBitDepth = errors.New("invalid bit depth") + var ErrInvalidCodeblock = errors.New("invalid code-block parameters") + var ErrInvalidDecompLevel = errors.New("decomposition level exceeds maximum limit") + var ErrInvalidHDRValue = errors.New("HDR value exceeds maximum limit") + var ErrInvalidTimestampDelta = errors.New("timestamp delta exceeds maximum limit") + var ErrInvalidWaveletLevel = errors.New("wavelet level exceeds maximum limit") + var ErrJUMBFBoxTooDeep = errors.New("JUMBF box nesting exceeds maximum depth") + var ErrLineBufferTooLarge = errors.New("line buffer exceeds maximum size") + var ErrMalformedMarker = errors.New("malformed marker segment") + var ErrMetadataTooLarge = errors.New("metadata exceeds maximum size") + var ErrModelTooLarge = errors.New("neural network model exceeds maximum size") + var ErrOutputTooLarge = errors.New("decoded output size exceeds maximum limit") + var ErrPixelCountTooLarge = errors.New("pixel count exceeds maximum limit") + var ErrSubbandTooLarge = errors.New("wavelet subband exceeds maximum size") + var ErrTensorDimensionsTooLarge = errors.New("tensor dimensions exceed maximum limit") + var ErrTooManyEvents = errors.New("events per frame exceed maximum limit") + var ErrTooManyIterations = errors.New("exceeded maximum iteration limit") + var ErrTooManyPoints = errors.New("point cloud point count exceeds maximum limit") + var ErrTooManyReferences = errors.New("linked references exceed maximum limit") + var ErrTooManyTiles = errors.New("tile count exceeds maximum limit") + var ErrTooManyViews = errors.New("light field view count exceeds maximum limit") + var ErrTruncatedData = errors.New("truncated or incomplete data") + var ErrZeroChannels = errors.New("zero channels not allowed") + var ErrZeroDimension = errors.New("zero dimension not allowed") + func CheckBounds(index, length int) error + func SafeRead(data []byte, pos, length int) []byte + func SafeSlice(data []byte, start, end int) []byte + func Validate4DDimension(dim int) error + func ValidateBitDepth(bitDepth int) error + func ValidateDecompLevel(level int) error + func ValidateDimensions(width, height int) error + func ValidateEventStreamSize(size int64) error + func ValidateEventsPerFrame(count int) error + func ValidateFloatExponent(exponent int) error + func ValidateHDRDynamicRange(dynamicRange float64) error + func ValidateInferenceIterations(iterations int) error + func ValidateJUMBFBoxDepth(depth int) error + func ValidateLightFieldViews(viewCount int) error + func ValidateLineBufferSize(size int64) error + func ValidateLinkedReferences(count int) error + func ValidateMetadataSize(size int64) error + func ValidateModelSize(size int64) error + func ValidateOutputSize(width, height, channels, bytesPerSample int) error + func ValidatePointCloudPoints(pointCount int64) error + func ValidateSubbandSize(size int64) error + func ValidateTensorDimensions(dims int) error + func ValidateTileCount(count int) error + func ValidateTimestampDelta(delta int64) error + func ValidateToneMapIterations(iterations int) error + func ValidateWaveletLevel(level int) error