Commit 87796b0c authored by Andrey Filippov's avatar Andrey Filippov

CLAUDE: tp_proc_set_clt — HtoD upload of a per-cam CLT slice (for setCltData / CLT restore)

Co-Authored-By: 's avatarClaude Opus 4.8 (1M context) <noreply@anthropic.com>
parent 8cf5c5a2
......@@ -716,6 +716,10 @@ int tp_proc_exec_convert_direct(TpProc* p, int ref_scene, int erase_clt, int no_
int tp_proc_get_clt(TpProc* p, int cam, int ref_scene, float* out){ if(!p||cam<0||cam>=p->num_cams)return -1; cuCtxSetCurrent(p->mod->ctx);
float* src = (ref_scene? p->clt_ref_h:p->clt_h)[cam];
return cudaMemcpy(out,src,(size_t)p->slice*sizeof(float),cudaMemcpyDeviceToHost)==cudaSuccess?0:-2; }
// Upload a per-cam CLT slice to the device (inverse of tp_proc_get_clt; for setCltData / CLT restore).
int tp_proc_set_clt(TpProc* p, int cam, const float* data, int ref_scene){ if(!p||cam<0||cam>=p->num_cams)return -1; cuCtxSetCurrent(p->mod->ctx);
float* dst = (ref_scene? p->clt_ref_h:p->clt_h)[cam];
return cudaMemcpy(dst,data,(size_t)p->slice*sizeof(float),cudaMemcpyHostToDevice)==cudaSuccess?0:-2; }
// Allocate the imclt (RBG) + correlation buffers and store the corr config params.
int tp_proc_setup_rbg_corr(TpProc* p, int num_pairs, int s0,int s1,int s2,int s3,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment