AG903ライブラリリファレンス
Body Source
AG903_PgpMgrSetConfigThresholdSpatialFilter1Bit 関数
本文ソース
コピコード
1: int32_t AG903_PgpMgrSetConfigThresholdSpatialFilter1Bit(
AG903_PgpMgrPipelineHandle
*handle, int32_t coeff[9], int32_t thr) 2: { 3: int32_t i; 4: 5: 6:
if
((handle == NULL) || (handle->id !=
AG903_PGP_MGR_PIPELINE_HANDLE_ID
)) { 7:
return
-
AG903_EINVAL
; 8: } 9: 10: 11:
if
(coeff == NULL) { 12:
return
-
AG903_EINVAL
; 13: } 14: 15: 16:
for
(i = 0; i < 9; i++) { 17: handle->thr_spf1_coeff[i] = coeff[i] & THR_SPF1_COEFF_MASK; 18: } 19: handle->thr_spf1_thr = thr & THR_SPF1_THR_MASK; 20: handle->is_config_dirty[
AG903_PGP_MGR_CONFIG_THR_SP_FILTER_1BIT
] =
true
; 21: handle->is_dirty =
true
; 22:
return
AG903_ENONE
; 23: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム