struct

RinhaDeBackend::IvfBuilder::Result

Inherits Struct < Value < Object

Constructors

new(blocks : Slice(Int16), labels : Slice(UInt8), block_count : Int32, padded_count : Int32, centroids : Slice(Int16), cell_offsets : Slice(UInt32), cell_radius : Slice(UInt32), max_cell_radius : UInt32, bbox_min : Slice(Int16), bbox_max : Slice(Int16))
Source

Instance methods

bbox_max

bounding box minimum per dim. Computed over real rows only.

bbox_min

break bound

block_count

slot-major. Pad slots carry label 0 (irrelevant since they never enter top-5).

blocks
cell_offsets

2 zero pad — keeps centroid scan on VPMADDWD)

cell_radius

range [off[c]..off[c+1]) with off[c] always even (= 64 B aligned). The range may include a single all-pad alignment block at off[c+1]-1 when the cell's real block count is odd.

centroids
clone
Source
copy_with(blocks _blocks = @blocks, labels _labels = @labels, block_count _block_count = @block_count, padded_count _padded_count = @padded_count, centroids _centroids = @centroids, cell_offsets _cell_offsets = @cell_offsets, cell_radius _cell_radius = @cell_radius, max_cell_radius _max_cell_radius = @max_cell_radius, bbox_min _bbox_min = @bbox_min, bbox_max _bbox_max = @bbox_max)
Source
labels

interleaved (8 vectors per block)

max_cell_radius

distance from quantized centroid c to any vector in cell c (ceil). Computed over real rows only.

padded_count