AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_PgpMgrSetConfigThreshold(AG903_PgpMgrPipelineHandle *handle, uint32_t limit, _Bool spf, _Bool mask, _Bool csc, _Bool hsv_hls, _Bool thr8, uint32_t sel_out, uint32_t sel_clut8) 2: { 3: 4: if ((handle == NULL) || (handle->id != AG903_PGP_MGR_PIPELINE_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: 8: 9: switch (limit) { 10: case AG903_PGP_MGR_LIMIT_NONE: 11: case AG903_PGP_MGR_LIMIT_16_235_AND_240: 12: break; 13: default: 14: return -AG903_EINVAL; 15: } 16: switch (sel_out) { 17: case AG903_PGP_MGR_THR_OUT_SEL_RGB: 18: case AG903_PGP_MGR_THR_OUT_SEL_MUX8: 19: case AG903_PGP_MGR_THR_OUT_SEL_SPF1: 20: case AG903_PGP_MGR_THR_OUT_SEL_LBL: 21: break; 22: default: 23: return -AG903_EINVAL; 24: } 25: switch (sel_clut8) { 26: case AG903_PGP_MGR_THR_CLUT8_OUT_B: 27: case AG903_PGP_MGR_THR_CLUT8_OUT_G: 28: case AG903_PGP_MGR_THR_CLUT8_OUT_R: 29: break; 30: default: 31: return -AG903_EINVAL; 32: } 33: 34: 35: handle->thr_limit = limit; 36: handle->thr_spf1_enable = spf; 37: handle->thr_msk_enable = mask; 38: handle->thr_csc2_enable = csc; 39: handle->thr_hsv2_enable = hsv_hls; 40: handle->thr_thr8bit_enable = thr8; 41: handle->thr_out_sel = sel_out; 42: handle->thr_clut8_sel = sel_clut8; 43: handle->is_config_dirty[AG903_PGP_MGR_CONFIG_THR] = true; 44: handle->is_dirty = true; 45: return AG903_ENONE; 46: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.