Archived
merge 1.12.0: gemma4 E2B/E4B and Nemotron Bolt E4B arrive; the ref2va audio, rows and ABI work carried across
conv1d keeps both stride forms: upstream's causal codec downsample with cu_div (Fish Audio) and the port's explicit-pad non-causal one (the H3 audio encoder's), in libref, libavx and libr4d alike; the ABI takes upstream's 27 on top of the port's RadVideoGenBatch growth.
This commit is contained in:
commit
7c3b5ab7d5
285 files changed
+30500
-2898
No files matched your search
+12
-5
@@ -33,11 +33,18 @@ void Item::coords(int64_t first, int64_t count, int32_t* planes) const {
|
||||
while (s + 1 < n_seg && patch_at(s + 1) <= first + k) ++s;
|
||||
const int64_t within = first + k - patch_at(s);
|
||||
const int64_t bw = seg_w(s) / merge;
|
||||
const int64_t in_col = within % merge;
|
||||
const int64_t in_row = (within / merge) % merge;
|
||||
const int64_t blk = within / (merge * merge);
|
||||
const int64_t row = (blk / bw) * merge + in_row;
|
||||
const int64_t col = (blk % bw) * merge + in_col;
|
||||
int64_t row, col;
|
||||
if (patch_raster) {
|
||||
/* Raster order is its own inverse: patch i is row i / w, column i % w. */
|
||||
row = within / seg_w(s);
|
||||
col = within % seg_w(s);
|
||||
} else {
|
||||
const int64_t in_col = within % merge;
|
||||
const int64_t in_row = (within / merge) % merge;
|
||||
const int64_t blk = within / (merge * merge);
|
||||
row = (blk / bw) * merge + in_row;
|
||||
col = (blk % bw) * merge + in_col;
|
||||
}
|
||||
planes[k] = (int32_t)row;
|
||||
planes[count + k] = (int32_t)col;
|
||||
planes[2 * count + k] = seg_h(s);
|
||||
|
||||
Reference in new issue
Block a user