Searched refs:ldchCtx (Results 1 – 5 of 5) sorted by relevance
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/aldch/ |
| H A D | rk_aiq_algo_aldch_v21_itf.cpp | 47 LDCHContext_t* ldchCtx = (LDCHContext_t*)hLDCH; in updateCalibConfig() local 54 ldchCtx->camCoeff.cx = calib_ldch->light_center[0]; in updateCalibConfig() 55 ldchCtx->camCoeff.cy = calib_ldch->light_center[1]; in updateCalibConfig() 56 ldchCtx->camCoeff.a0 = calib_ldch->coefficient[0]; in updateCalibConfig() 57 ldchCtx->camCoeff.a2 = calib_ldch->coefficient[1]; in updateCalibConfig() 58 ldchCtx->camCoeff.a3 = calib_ldch->coefficient[2]; in updateCalibConfig() 59 ldchCtx->camCoeff.a4 = calib_ldch->coefficient[3]; in updateCalibConfig() 60 memcpy(ldchCtx->meshfile, calib_ldch->meshfile, sizeof(ldchCtx->meshfile)); in updateCalibConfig() 63 if ((!ldchCtx->ldch_en || calib_ldch->correct_level != hLDCH->correct_level) && \ in updateCalibConfig() 64 ldchCtx->user_config.update_lut_mode == RK_AIQ_LDCH_UPDATE_LUT_ON_LINE) { in updateCalibConfig() [all …]
|
| H A D | rk_aiq_ldch_generate_mesh.cpp | 28 static XCamReturn alloc_ldch_buf(LDCHContext_t* ldchCtx) in alloc_ldch_buf() argument 30 if (!ldchCtx->hasAllocShareMem.load(std::memory_order_acquire)) { in alloc_ldch_buf() 32 release_ldch_buf(ldchCtx); in alloc_ldch_buf() 34 share_mem_config.alloc_param.width = ldchCtx->dst_width; in alloc_ldch_buf() 35 share_mem_config.alloc_param.height = ldchCtx->dst_height; in alloc_ldch_buf() 37 ldchCtx->share_mem_ops->alloc_mem(0, ldchCtx->share_mem_ops, in alloc_ldch_buf() 39 &ldchCtx->share_mem_ctx); in alloc_ldch_buf() 40 if (ldchCtx->share_mem_ctx) { in alloc_ldch_buf() 41 ldchCtx->hasAllocShareMem.store(true, std::memory_order_release); in alloc_ldch_buf() 51 XCamReturn release_ldch_buf(LDCHContext_t* ldchCtx) in release_ldch_buf() argument [all …]
|
| H A D | rk_aiq_algo_aldch_itf.cpp | 34 LDCHContext_t* ldchCtx = (LDCHContext_t*)hLDCH; in updateCalibConfig() local 41 ldchCtx->camCoeff.cx = calib_ldch->light_center[0]; in updateCalibConfig() 42 ldchCtx->camCoeff.cy = calib_ldch->light_center[1]; in updateCalibConfig() 43 ldchCtx->camCoeff.a0 = calib_ldch->coefficient[0]; in updateCalibConfig() 44 ldchCtx->camCoeff.a2 = calib_ldch->coefficient[1]; in updateCalibConfig() 45 ldchCtx->camCoeff.a3 = calib_ldch->coefficient[2]; in updateCalibConfig() 46 ldchCtx->camCoeff.a4 = calib_ldch->coefficient[3]; in updateCalibConfig() 49 if (!ldchCtx->ldch_en || calib_ldch->correct_level != hLDCH->correct_level) { in updateCalibConfig() 60 ldchCtx->ldch_en = calib_ldch->ldch_en; in updateCalibConfig() 61 memcpy(ldchCtx->meshfile, calib_ldch->meshfile, sizeof(ldchCtx->meshfile)); in updateCalibConfig() [all …]
|
| H A D | rk_aiq_ldch_generate_mesh.h | 26 XCamReturn get_ldch_buf(LDCHContext_t* ldchCtx); 27 XCamReturn release_ldch_buf(LDCHContext_t* ldchCtx); 28 bool read_mesh_from_file(LDCHContext_t* ldchCtx, const char* fileName); 29 XCamReturn aiqGenLdchMeshInit(LDCHContext_t* ldchCtx); 30 XCamReturn aiqGenLdchMeshDeInit(LDCHContext_t* ldchCtx); 31 bool aiqGenMesh(LDCHContext_t* ldchCtx, int32_t level); 32 void put_ldch_buf(LDCHContext_t* ldchCtx);
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/aiq_core/algo_handlers/ |
| H A D | RkAiqAldchHandle.cpp | 258 LDCHHandle_t ldchCtx = (LDCHHandle_t)mAlgoCtx->hLDCH; in copyLutFromExtBuffer() local 259 if (!ldchCtx->_lutCache.ptr()) { in copyLutFromExtBuffer() 260 ldchCtx->_lutCache = new LutCache(att->lut.u.buffer.size); in copyLutFromExtBuffer() 261 } else if (att->lut.u.buffer.size != ldchCtx->_lutCache->GetSize()) { in copyLutFromExtBuffer() 262 ldchCtx->_lutCache.release(); in copyLutFromExtBuffer() 263 ldchCtx->_lutCache = new LutCache(att->lut.u.buffer.size); in copyLutFromExtBuffer() 266 if (ldchCtx->_lutCache.ptr()) { in copyLutFromExtBuffer() 267 if (ldchCtx->_lutCache->GetBuffer()) { in copyLutFromExtBuffer() 268 … memcpy(ldchCtx->_lutCache->GetBuffer(), att->lut.u.buffer.addr, att->lut.u.buffer.size); in copyLutFromExtBuffer()
|