AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_PgpMgrAssignPipeline(void *handle) 2: { 3: uint32_t id; 4: 5: if (handle == NULL) { 6: return -AG903_EINVAL; 7: } 8: 9: 10: id = ((AG903_PgpMgrPipelineHandle *)handle)->id; 11: if ((id != AG903_PGP_MGR_PIPELINE_HANDLE_ID) && (id != AG903_PGP_MGR_FRAME_CALC_HANDLE_ID)) { 12: return -AG903_EINVAL; 13: } 14: 15: if (id == AG903_PGP_MGR_PIPELINE_HANDLE_ID) { 16: AG903_PgpMgrPipelineHandle *p = (AG903_PgpMgrPipelineHandle *)handle; 17: 18: if (p->is_assign == true) { 19: return -AG903_EINVAL; 20: } 21: 22: if (p->input_handle == NULL) { 23: return -AG903_EINVAL; 24: } 25: 26: return PgpMgrAssignPipelineHandle(p); 27: } else { 28: AG903_PgpMgrFrameCalcHandle *f = (AG903_PgpMgrFrameCalcHandle *)handle; 29: 30: if (f->master_handle->is_assign == true) { 31: return -AG903_EINVAL; 32: } 33: 34: if (f->master_handle->input_handle == NULL) { 35: return -AG903_EINVAL; 36: } 37: 38: if (f->slave_pipeline == true) { 39: AG903_PgpMgrPipelineHandle *slave = (AG903_PgpMgrPipelineHandle *)f->slave_handle; 40: if (slave->input_handle == NULL) { 41: return -AG903_EINVAL; 42: } 43: } 44: 45: return PgpMgrAssignFrameCalcHandle(f); 46: } 47: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.