AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_PgpMgrSetConfigThresholdMask(AG903_PgpMgrPipelineHandle *handle, uint32_t ch, uint32_t h, uint32_t l, uint32_t x, uint32_t hmax, uint32_t hmin, uint32_t lmax, uint32_t lmin) 2: { 3: 4: if ((handle == NULL) || (handle->id != AG903_PGP_MGR_PIPELINE_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: 8: 9: switch (ch) { 10: case AG903_PGP_MGR_THR_CHANNEL_B: 11: case AG903_PGP_MGR_THR_CHANNEL_G: 12: case AG903_PGP_MGR_THR_CHANNEL_R: 13: break; 14: default: 15: return -AG903_EINVAL; 16: } 17: 18: 19: handle->thr_msk_h[ch] = h & THR_MSK_L_MASK; 20: handle->thr_msk_l[ch] = l & THR_MSK_H_MASK; 21: handle->thr_msk_x[ch] = x & THR_MSK_X_MASK; 22: handle->thr_msk_hmax[ch] = hmax & THR_MSK_HMAX_MASK; 23: handle->thr_msk_hmin[ch] = hmin & THR_MSK_HMIN_MASK; 24: handle->thr_msk_lmax[ch] = lmax & THR_MSK_LMAX_MASK; 25: handle->thr_msk_lmin[ch] = lmin & THR_MSK_LMIN_MASK; 26: handle->is_config_dirty[AG903_PGP_MGR_CONFIG_THR_MASK] = true; 27: handle->is_dirty = true; 28: return AG903_ENONE; 29: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.