AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_VidMgrSetTRSParameter(AG903_VidMgrOutputHandle *handle, uint32_t efp, uint32_t ofp, uint32_t vfp, uint32_t href, uint32_t hfp) 2: { 3: 4: if ((handle == NULL) || (handle->id != AG903_VID_MGR_OUTPUT_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: 8: 9: switch (efp) { 10: case AG903_VID_MGR_TRS_EFP_ZERO: 11: case AG903_VID_MGR_TRS_EFP_ONE: 12: break; 13: default: 14: return -AG903_EINVAL; 15: } 16: 17: switch (ofp) { 18: case AG903_VID_MGR_TRS_OFP_ZERO: 19: case AG903_VID_MGR_TRS_OFP_ONE: 20: break; 21: default: 22: return -AG903_EINVAL; 23: } 24: 25: if (vfp == 0 || vfp > AG903_VID_MGR_MAX_TRS_VFP) { 26: return -AG903_EINVAL; 27: } 28: 29: switch (href) { 30: case AG903_VID_MGR_TRS_HREF_EAV: 31: case AG903_VID_MGR_TRS_HREF_SAV: 32: break; 33: default: 34: return -AG903_EINVAL; 35: } 36: 37: if (hfp > AG903_VID_MGR_MAX_TRS_HFP) { 38: return -AG903_EINVAL; 39: } 40: 41: 42: handle->trs_efp = efp; 43: handle->trs_ofp = ofp; 44: handle->trs_vfp = vfp; 45: handle->trs_href = href; 46: handle->trs_hfp = hfp; 47: handle->is_dirty = true; 48: 49: return AG903_ENONE; 50: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.